Install SDL on Linux/ubuntu


http://www.libsdl.org/


To compile and install SDL:

    1.  Run './configure; make; make install'

        If you are compiling for Windows using gcc, read the FAQ at:
        http://www.libsdl.org/faq.php?action=listentries&category=4#42

        If you are compiling using Visual C++ on Win32, you should read
        the file VisualC.html

    2.  Look at the example programs in ./test, and check out the HTML
        documentation in ./docs to see how to use the SDL library.

    3.  Join the SDL developer mailing list by sending E-mail to
        [email protected]
        and put "subscribe" in the subject of the message.

        Or alternatively you can use the web interface:
            http://www.libsdl.org/mailing-list.php

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Libraries have been installed in:

   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/bash ./libtool --mode=install /usr/bin/install -c build/libSDLmain.la /usr/local/lib/libSDLmain.la
libtool: install: /usr/bin/install -c build/.libs/libSDLmain.lai /usr/local/lib/libSDLmain.la
libtool: install: /usr/bin/install -c build/.libs/libSDLmain.a /usr/local/lib/libSDLmain.a
libtool: install: chmod 644 /usr/local/lib/libSDLmain.a
libtool: install: ranlib /usr/local/lib/libSDLmain.a
libtool: finish: PATH="/opt/ros/fuerte/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/bash build-scripts/mkinstalldirs /usr/local/share/aclocal
mkdir -p -- /usr/local/share/aclocal
/usr/bin/install -c -m 644 ./sdl.m4 /usr/local/share/aclocal/sdl.m4
/bin/bash build-scripts/mkinstalldirs /usr/local/lib/pkgconfig
/usr/bin/install -c -m 644 sdl.pc /usr/local/lib/pkgconfig
/bin/bash build-scripts/mkinstalldirs /usr/local/share/man/man3
for src in ./docs/man3/*.3; do \
        file=`echo $src | sed -e 's|^.*/||'`; \
        /usr/bin/install -c -m 644 $src /usr/local/share/man/man3/$file; \
    done

你可能感兴趣的:(Install SDL on Linux/ubuntu)