You don't have to edit macros.cmake, with ccmake or cmake-gui, enable advanced options and add the libs to FFMPEG_LIBRARIES,
eg: FFMPEG_LIBRARIES asound;avformat;avcodec;avutil;avdevice;swscale;bz2 We could make this automatic by using pkg-config: eg: pkg-config --libs libavcodec libavutil libswscale alsa On Wed, Sep 7, 2011 at 10:44 AM, Mathias Panzenböck <[email protected]> wrote: > In order to make blender link with ffmpeg enabled I had to make these changes: > > Index: build_files/cmake/macros.cmake > =================================================================== > --- build_files/cmake/macros.cmake (revision 39983) > +++ build_files/cmake/macros.cmake (working copy) > @@ -286,7 +286,7 @@ > target_link_libraries(${target} ${OPENJPEG_LIBRARIES}) > endif() > if(WITH_CODEC_FFMPEG) > - target_link_libraries(${target} ${FFMPEG_LIBRARIES}) > + target_link_libraries(${target} ${FFMPEG_LIBRARIES} asound > bz2) > endif() > if(WITH_OPENCOLLADA) > if(WIN32 AND NOT UNIX) > > > Now this is not the right place to add these two libraries, but you surly > know better where to fix > it properly. I just wanted to let you know about it. > > -panzi > _______________________________________________ > Bf-committers mailing list > [email protected] > http://lists.blender.org/mailman/listinfo/bf-committers > -- - Campbell _______________________________________________ Bf-committers mailing list [email protected] http://lists.blender.org/mailman/listinfo/bf-committers
