[FFmpeg-user] configure error with enabling libmodplug
Kimio Miyamura
xanadu at apost.plala.or.jp
Mon Sep 1 03:02:58 CEST 2014
Hi,
I'm trying to build ffmpeg with libmodplug codec.
When I run "./configure --enable-libmodplug", it always ends with error libmodplug not found.
$ ./configure --enable-libmodplug
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
ERROR: libmodplug not found
I searched web and found that modification of ffmpeg configure script is required:
https://trac.macports.org/ticket/36942 <https://trac.macports.org/ticket/36942>
-enabled libmodplug && require libmodplug libmodplug/modplug.h ModPlug_Load -lmodplug
+enabled libmodplug && require libmodplug libmodplug/modplug.h ModPlug_Load -lmodplug -lstdc++
or
-enabled libmodplug && require libmodplug libmodplug/modplug.h ModPlug_Load -lmodplug
+enabled libmodplug && require libmodplug libmodplug/modplug.h ModPlug_Load -lmodplug -lc++
I have tested with Mac OS X. Both of them (adding -lstdc++ or -lc++ to enabled libmodplug line) result in good. I can build ffmpeg fine.
I think either of them should be added to ffmpeg compile script. How do you think?
// Miya
More information about the ffmpeg-user
mailing list