62 | | }}} |
63 | | |
64 | | Alternative prefixes for SDL and FFMPEG may be specified with '''{{{--with-sdl}}}''' and '''{{{-with-ffmpeg}}}''' options respectively. This points to the ''{{{prefix}}}'' value that was supplied when building SDL and/or FFMPEG. For example, if {{{libavformat.a}}} is in {{{/usr/local/lib}}}, then the prefix is {{{/usr/local}}}. |
| 65 | ... |
| 66 | }}} |
| 67 | |
| 68 | The above output shows the SDL version detected, 1.3.0 in this case, and the ffmpeg packages found (libavformat, libavcodec, etc.). Note that for this particular build, alternative locations (prefixes) are specified for both SDL and ffmpeg with '''{{{--with-sdl}}}''' and '''{{{-with-ffmpeg}}}''' options respectively. |
| 69 | |
| 70 | '''Note on ffmpeg libraries dependencies:''' |
| 71 | |
| 72 | The ''pkg-config'' tool is used to detect the correct compilation settings and library dependency for the ffmpeg packages. The ''pkg-config'' is not installed by default on Mac, as the output above shows, hence we use the alternate ''pkgconfig.py'' script. You need to have Python installed to run this script of course, and the configure script detects its availability automatically. If Python is not available, you will need to supply the correct CFLAGS and LDFLAGS manually prior to running ''{{{configure}}}'' so that it is able to detect ffmpeg libraries. |
| 73 | |
| 74 | For example, if ffmpeg was built with x264 and mp3 encoder support, you will need to pass additional "{{{-lx264 -lmp3lame}}}" flags when linking libavformat. With manual checking in the configure script, the {{{AC_CHECK_LIB(avformat)}}} would not be able to detect that it needs to add "{{{-lx264 -lmp3lame}}}" as the dependency, hence you need to put this in the LDFLAGS prior to running configure. |
| 75 | |