Re: [FFmpeg-user] Configure error with fontconfig

2024-05-01 Thread Ferdi Scholten

On Apr 30, 2024, at 13:53, Jim Worrall  wrote:




On Apr 30, 2024, at 11:29, Jim Worrall  wrote:




On Apr 30, 2024, at 09:41, Jim Worrall  wrote:




On Apr 29, 2024, at 23:00, Ferdi Scholten  wrote:

This may not be due to ffmpeg itself, but I would appreciate some help.

Configure says that pkg-config can’t find fontconfig.pc, but it seems to be
in the PKG_CONFIG_PATH.

# ./configure --cc=/usr/bin/gcc \
--prefix=$TARGET \
--pkg-config-flags="--static" \
--extra-cflags="-I/usr/local/include" \
--extra-ldflags="-L/usr/local/lib" \
--extra-libs="-lpthread -ldl -lstdc++" \
--enable-static --disable-shared \
--enable-nonfree --enable-gpl --enable-version3 \
--enable-libfribidi --enable-libfreetype --enable-libfontconfig \
--enable-libfdk-aac --enable-libx264 --enable-libx265 --disable-lzma
ERROR: fontconfig not found using pkg-config

ffbuild/config.log:
. . .
require_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
check_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
test_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
pkg-config --exists --print-errors fontconfig
Package fontconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `fontconfig.pc'
to the PKG_CONFIG_PATH environment variable
Package 'fontconfig', required by 'virtual:world', not found
ERROR: fontconfig not found using pkg-config

Here is fontconfig.pc:
# ll /usr/local/ffmpeg/packages/pkg-config/check/gtk/
total 224K
drwxr-xr-x 2 root root  28 Apr 28 11:14 ./
drwxr-xr-x 7 root root  72 Apr 28 11:14 ../
-rw-r--r-- 1 root root 232 Apr 28 11:14 atk.pc
-rw-r--r-- 1 root root 287 Apr 28 11:14 cairo-gobject.pc
-rw-r--r-- 1 root root 388 Apr 28 11:14 cairo.pc
-rw-r--r-- 1 root root 269 Apr 28 11:14 fontconfig.pc

The last path in PKG_CONFIG_PATH contains fontconfig.pc:

# echo $PKG_CONFIG_PATH
/lib:/usr/lib:usr/local:/usr/local/lib:/usr/local/lib/pkgconfig:
/usr/libdata/pkgconfig:/usr/local/libdata/:/usr/local/libdata/pkgconfig:
/usr/local/ffmpeg/target/lib:/usr/local/ffmpeg/target/lib/pkgconfig:
/usr/local/ffmpeg/target/share/pkgconfig:
/usr/local/ffmpeg/build/pkg-config/check/gtk/
___

Most likely the fontconfig package on your system is a shared library, it is 
not distributed as a static library. It therefor cannot be used in a static 
build with --disable-shared.


Try building ffmpeg with shared libraries if you need fontconfig.

Thank you.  Before changing all the ffmpeg dependencies to shared libraries,
I tried making a static fontconfig.  I removed the packaged fontconfig parts
and built my own static fontconfig, but got the same “fontconfig not found" 
error.
There is no .so file on the system with *fontconfig* in its name.

The relevant files may be:
/usr/local/ffmpeg/target/include/fontconfig/fontconfig.h
/usr/local/ffmpeg/target/lib/libfontconfig.la
/usr/local/ffmpeg/target/lib/pkgconfig/fontconfig.pc
/usr/local/ffmpeg/target/lib/libfontconfig.a



fontconfig.pc contains:
# cat /usr/local/ffmpeg/target/lib/pkgconfig/fontconfig.pc
prefix=/usr/local/ffmpeg/target
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
sysconfdir=${prefix}/etc
localstatedir=${prefix}/var
PACKAGE=fontconfig
confdir=${sysconfdir}/fonts
cachedir=${localstatedir}/cache/${PACKAGE}

Name: Fontconfig
Description: Font configuration and customization library
Version: 2.15.0
Requires:  freetype2 >= 21.0.15
Requires.private:  libxml-2.0 >= 2.6
Libs: -L${libdir} -lfontconfig
Libs.private:
Cflags: -I${includedir}

fontconfig.pc seems to be pointing to the right places (except 
sysconfdir=${prefix}/etc doesn’t exist; I don’t know what it would be looking 
for there).  I’m perplexed.

Small error; ${prefix}/etc DOES exist.  It contains a fonts directory.


Many times the problem seems to actually be not finding lzma.
But I have --disable-lzma in my configure command.
Here’s the end of config.log this time:
. . .
brotlicommon -lxml2 -licui18n -licuuc -licudata -lz -llzma -lm
/usr/bin/ld: cannot find -llzma: No such file or directory
collect2: error: ld returned 1 exit status
ERROR: fontconfig not found using pkg-config


Problem solved, although a bit confusing.  It seems there
may have been two problems.  After I provided a static fontconfig,
it still complained that it couldn’t find fontconfig.  But really it was
lzma.  When I built a static lzma (actually xz, which also produces lzma),
the build worked fine.

So it seems the —disable-lzma option doesn’t work; it still
tries to incorporate lzma. But I don’t really understand it.



My guess is that fontconfig probably returns an error, because one of 
its dependencies (libfreetype) depends on several types of file 
compression. (there are many types of compressed fonts), WOFF being a 
common example.

___
ffmpeg-user mailing list

Re: [FFmpeg-user] Configure error with fontconfig

2024-04-30 Thread Jim Worrall


> On Apr 30, 2024, at 13:53, Jim Worrall  wrote:
> 
> 
> 
>> On Apr 30, 2024, at 11:29, Jim Worrall  wrote:
>> 
>> 
>> 
>>> On Apr 30, 2024, at 09:41, Jim Worrall  wrote:
>>> 
>>> 
>>> 
 On Apr 29, 2024, at 23:00, Ferdi Scholten  wrote:
 
 This may not be due to ffmpeg itself, but I would appreciate some help.
> Configure says that pkg-config can’t find fontconfig.pc, but it seems to 
> be
> in the PKG_CONFIG_PATH.
> 
> # ./configure --cc=/usr/bin/gcc \
> --prefix=$TARGET \
> --pkg-config-flags="--static" \
> --extra-cflags="-I/usr/local/include" \
> --extra-ldflags="-L/usr/local/lib" \
> --extra-libs="-lpthread -ldl -lstdc++" \
> --enable-static --disable-shared \
> --enable-nonfree --enable-gpl --enable-version3 \
> --enable-libfribidi --enable-libfreetype --enable-libfontconfig \
> --enable-libfdk-aac --enable-libx264 --enable-libx265 --disable-lzma
> ERROR: fontconfig not found using pkg-config
> 
> ffbuild/config.log:
> . . .
> require_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
> check_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
> test_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
> pkg-config --exists --print-errors fontconfig
> Package fontconfig was not found in the pkg-config search path.
> Perhaps you should add the directory containing `fontconfig.pc'
> to the PKG_CONFIG_PATH environment variable
> Package 'fontconfig', required by 'virtual:world', not found
> ERROR: fontconfig not found using pkg-config
> 
> Here is fontconfig.pc:
> # ll /usr/local/ffmpeg/packages/pkg-config/check/gtk/
> total 224K
> drwxr-xr-x 2 root root  28 Apr 28 11:14 ./
> drwxr-xr-x 7 root root  72 Apr 28 11:14 ../
> -rw-r--r-- 1 root root 232 Apr 28 11:14 atk.pc
> -rw-r--r-- 1 root root 287 Apr 28 11:14 cairo-gobject.pc
> -rw-r--r-- 1 root root 388 Apr 28 11:14 cairo.pc
> -rw-r--r-- 1 root root 269 Apr 28 11:14 fontconfig.pc
> 
> The last path in PKG_CONFIG_PATH contains fontconfig.pc:
> 
> # echo $PKG_CONFIG_PATH
> /lib:/usr/lib:usr/local:/usr/local/lib:/usr/local/lib/pkgconfig:
> /usr/libdata/pkgconfig:/usr/local/libdata/:/usr/local/libdata/pkgconfig:
> /usr/local/ffmpeg/target/lib:/usr/local/ffmpeg/target/lib/pkgconfig:
> /usr/local/ffmpeg/target/share/pkgconfig:
> /usr/local/ffmpeg/build/pkg-config/check/gtk/
> ___
 
 Most likely the fontconfig package on your system is a shared library, it 
 is not distributed as a static library. It therefor cannot be used in a 
 static build with --disable-shared.
 
 
 Try building ffmpeg with shared libraries if you need fontconfig.
>>> 
>>> Thank you.  Before changing all the ffmpeg dependencies to shared 
>>> libraries, 
>>> I tried making a static fontconfig.  I removed the packaged fontconfig 
>>> parts 
>>> and built my own static fontconfig, but got the same “fontconfig not found" 
>>> error.  
>>> There is no .so file on the system with *fontconfig* in its name.
>>> 
>>> The relevant files may be:
>>> /usr/local/ffmpeg/target/include/fontconfig/fontconfig.h
>>> /usr/local/ffmpeg/target/lib/libfontconfig.la 
>>> /usr/local/ffmpeg/target/lib/pkgconfig/fontconfig.pc
>>> /usr/local/ffmpeg/target/lib/libfontconfig.a
>>> 
>>> 
>>> 
>>> fontconfig.pc contains:
>>> # cat /usr/local/ffmpeg/target/lib/pkgconfig/fontconfig.pc
>>> prefix=/usr/local/ffmpeg/target
>>> exec_prefix=${prefix}
>>> libdir=${exec_prefix}/lib
>>> includedir=${prefix}/include
>>> sysconfdir=${prefix}/etc
>>> localstatedir=${prefix}/var
>>> PACKAGE=fontconfig
>>> confdir=${sysconfdir}/fonts
>>> cachedir=${localstatedir}/cache/${PACKAGE}
>>> 
>>> Name: Fontconfig
>>> Description: Font configuration and customization library
>>> Version: 2.15.0
>>> Requires:  freetype2 >= 21.0.15
>>> Requires.private:  libxml-2.0 >= 2.6
>>> Libs: -L${libdir} -lfontconfig
>>> Libs.private:  
>>> Cflags: -I${includedir}  
>>> 
>>> fontconfig.pc seems to be pointing to the right places (except 
>>> sysconfdir=${prefix}/etc doesn’t exist; I don’t know what it would be 
>>> looking for there).  I’m perplexed.
>> 
>> Small error; ${prefix}/etc DOES exist.  It contains a fonts directory.
>> 
> 
> Many times the problem seems to actually be not finding lzma.  
> But I have --disable-lzma in my configure command.
> Here’s the end of config.log this time:
> . . .
> brotlicommon -lxml2 -licui18n -licuuc -licudata -lz -llzma -lm
> /usr/bin/ld: cannot find -llzma: No such file or directory
> collect2: error: ld returned 1 exit status
> ERROR: fontconfig not found using pkg-config
> 

Problem solved, although a bit confusing.  It seems there 
may have been two problems.  After I provided a static fontconfig,
it still complained that it couldn’t find fontconfig.  But really it was

Re: [FFmpeg-user] Configure error with fontconfig

2024-04-30 Thread Jim Worrall


> On Apr 30, 2024, at 11:29, Jim Worrall  wrote:
> 
> 
> 
>> On Apr 30, 2024, at 09:41, Jim Worrall  wrote:
>> 
>> 
>> 
>>> On Apr 29, 2024, at 23:00, Ferdi Scholten  wrote:
>>> 
>>> This may not be due to ffmpeg itself, but I would appreciate some help.
 Configure says that pkg-config can’t find fontconfig.pc, but it seems to be
 in the PKG_CONFIG_PATH.
 
 # ./configure --cc=/usr/bin/gcc \
 --prefix=$TARGET \
 --pkg-config-flags="--static" \
 --extra-cflags="-I/usr/local/include" \
 --extra-ldflags="-L/usr/local/lib" \
 --extra-libs="-lpthread -ldl -lstdc++" \
 --enable-static --disable-shared \
 --enable-nonfree --enable-gpl --enable-version3 \
 --enable-libfribidi --enable-libfreetype --enable-libfontconfig \
 --enable-libfdk-aac --enable-libx264 --enable-libx265 --disable-lzma
 ERROR: fontconfig not found using pkg-config
 
 ffbuild/config.log:
 . . .
 require_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
 check_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
 test_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
 pkg-config --exists --print-errors fontconfig
 Package fontconfig was not found in the pkg-config search path.
 Perhaps you should add the directory containing `fontconfig.pc'
 to the PKG_CONFIG_PATH environment variable
 Package 'fontconfig', required by 'virtual:world', not found
 ERROR: fontconfig not found using pkg-config
 
 Here is fontconfig.pc:
 # ll /usr/local/ffmpeg/packages/pkg-config/check/gtk/
 total 224K
 drwxr-xr-x 2 root root  28 Apr 28 11:14 ./
 drwxr-xr-x 7 root root  72 Apr 28 11:14 ../
 -rw-r--r-- 1 root root 232 Apr 28 11:14 atk.pc
 -rw-r--r-- 1 root root 287 Apr 28 11:14 cairo-gobject.pc
 -rw-r--r-- 1 root root 388 Apr 28 11:14 cairo.pc
 -rw-r--r-- 1 root root 269 Apr 28 11:14 fontconfig.pc
 
 The last path in PKG_CONFIG_PATH contains fontconfig.pc:
 
 # echo $PKG_CONFIG_PATH
 /lib:/usr/lib:usr/local:/usr/local/lib:/usr/local/lib/pkgconfig:
 /usr/libdata/pkgconfig:/usr/local/libdata/:/usr/local/libdata/pkgconfig:
 /usr/local/ffmpeg/target/lib:/usr/local/ffmpeg/target/lib/pkgconfig:
 /usr/local/ffmpeg/target/share/pkgconfig:
 /usr/local/ffmpeg/build/pkg-config/check/gtk/
 ___
>>> 
>>> Most likely the fontconfig package on your system is a shared library, it 
>>> is not distributed as a static library. It therefor cannot be used in a 
>>> static build with --disable-shared.
>>> 
>>> 
>>> Try building ffmpeg with shared libraries if you need fontconfig.
>> 
>> Thank you.  Before changing all the ffmpeg dependencies to shared libraries, 
>> I tried making a static fontconfig.  I removed the packaged fontconfig parts 
>> and built my own static fontconfig, but got the same “fontconfig not found" 
>> error.  
>> There is no .so file on the system with *fontconfig* in its name.
>> 
>> The relevant files may be:
>> /usr/local/ffmpeg/target/include/fontconfig/fontconfig.h
>> /usr/local/ffmpeg/target/lib/libfontconfig.la 
>> /usr/local/ffmpeg/target/lib/pkgconfig/fontconfig.pc
>> /usr/local/ffmpeg/target/lib/libfontconfig.a
>> 
>> 
>> 
>> fontconfig.pc contains:
>> # cat /usr/local/ffmpeg/target/lib/pkgconfig/fontconfig.pc
>> prefix=/usr/local/ffmpeg/target
>> exec_prefix=${prefix}
>> libdir=${exec_prefix}/lib
>> includedir=${prefix}/include
>> sysconfdir=${prefix}/etc
>> localstatedir=${prefix}/var
>> PACKAGE=fontconfig
>> confdir=${sysconfdir}/fonts
>> cachedir=${localstatedir}/cache/${PACKAGE}
>> 
>> Name: Fontconfig
>> Description: Font configuration and customization library
>> Version: 2.15.0
>> Requires:  freetype2 >= 21.0.15
>> Requires.private:  libxml-2.0 >= 2.6
>> Libs: -L${libdir} -lfontconfig
>> Libs.private:  
>> Cflags: -I${includedir}  
>> 
>> fontconfig.pc seems to be pointing to the right places (except 
>> sysconfdir=${prefix}/etc doesn’t exist; I don’t know what it would be 
>> looking for there).  I’m perplexed.
> 
> Small error; ${prefix}/etc DOES exist.  It contains a fonts directory.
> 

Many times the problem seems to actually be not finding lzma.  
But I have --disable-lzma in my configure command.
Here’s the end of config.log this time:
. . .
brotlicommon -lxml2 -licui18n -licuuc -licudata -lz -llzma -lm
/usr/bin/ld: cannot find -llzma: No such file or directory
collect2: error: ld returned 1 exit status
ERROR: fontconfig not found using pkg-config



___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Configure error with fontconfig

2024-04-30 Thread Jim Worrall


> On Apr 30, 2024, at 09:41, Jim Worrall  wrote:
> 
> 
> 
>> On Apr 29, 2024, at 23:00, Ferdi Scholten  wrote:
>> 
>> This may not be due to ffmpeg itself, but I would appreciate some help.
>>> Configure says that pkg-config can’t find fontconfig.pc, but it seems to be
>>> in the PKG_CONFIG_PATH.
>>> 
>>> # ./configure --cc=/usr/bin/gcc \
>>> --prefix=$TARGET \
>>> --pkg-config-flags="--static" \
>>> --extra-cflags="-I/usr/local/include" \
>>> --extra-ldflags="-L/usr/local/lib" \
>>> --extra-libs="-lpthread -ldl -lstdc++" \
>>> --enable-static --disable-shared \
>>> --enable-nonfree --enable-gpl --enable-version3 \
>>> --enable-libfribidi --enable-libfreetype --enable-libfontconfig \
>>> --enable-libfdk-aac --enable-libx264 --enable-libx265 --disable-lzma
>>> ERROR: fontconfig not found using pkg-config
>>> 
>>> ffbuild/config.log:
>>> . . .
>>> require_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
>>> check_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
>>> test_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
>>> pkg-config --exists --print-errors fontconfig
>>> Package fontconfig was not found in the pkg-config search path.
>>> Perhaps you should add the directory containing `fontconfig.pc'
>>> to the PKG_CONFIG_PATH environment variable
>>> Package 'fontconfig', required by 'virtual:world', not found
>>> ERROR: fontconfig not found using pkg-config
>>> 
>>> Here is fontconfig.pc:
>>> # ll /usr/local/ffmpeg/packages/pkg-config/check/gtk/
>>> total 224K
>>> drwxr-xr-x 2 root root  28 Apr 28 11:14 ./
>>> drwxr-xr-x 7 root root  72 Apr 28 11:14 ../
>>> -rw-r--r-- 1 root root 232 Apr 28 11:14 atk.pc
>>> -rw-r--r-- 1 root root 287 Apr 28 11:14 cairo-gobject.pc
>>> -rw-r--r-- 1 root root 388 Apr 28 11:14 cairo.pc
>>> -rw-r--r-- 1 root root 269 Apr 28 11:14 fontconfig.pc
>>> 
>>> The last path in PKG_CONFIG_PATH contains fontconfig.pc:
>>> 
>>> # echo $PKG_CONFIG_PATH
>>> /lib:/usr/lib:usr/local:/usr/local/lib:/usr/local/lib/pkgconfig:
>>> /usr/libdata/pkgconfig:/usr/local/libdata/:/usr/local/libdata/pkgconfig:
>>> /usr/local/ffmpeg/target/lib:/usr/local/ffmpeg/target/lib/pkgconfig:
>>> /usr/local/ffmpeg/target/share/pkgconfig:
>>> /usr/local/ffmpeg/build/pkg-config/check/gtk/
>>> ___
>> 
>> Most likely the fontconfig package on your system is a shared library, it is 
>> not distributed as a static library. It therefor cannot be used in a static 
>> build with --disable-shared.
>> 
>> 
>> Try building ffmpeg with shared libraries if you need fontconfig.
> 
> Thank you.  Before changing all the ffmpeg dependencies to shared libraries, 
> I tried making a static fontconfig.  I removed the packaged fontconfig parts 
> and built my own static fontconfig, but got the same “fontconfig not found" 
> error.  
> There is no .so file on the system with *fontconfig* in its name.
> 
> The relevant files may be:
> /usr/local/ffmpeg/target/include/fontconfig/fontconfig.h
> /usr/local/ffmpeg/target/lib/libfontconfig.la 
> /usr/local/ffmpeg/target/lib/pkgconfig/fontconfig.pc
> /usr/local/ffmpeg/target/lib/libfontconfig.a
> 
> 
> 
> fontconfig.pc contains:
> # cat /usr/local/ffmpeg/target/lib/pkgconfig/fontconfig.pc
> prefix=/usr/local/ffmpeg/target
> exec_prefix=${prefix}
> libdir=${exec_prefix}/lib
> includedir=${prefix}/include
> sysconfdir=${prefix}/etc
> localstatedir=${prefix}/var
> PACKAGE=fontconfig
> confdir=${sysconfdir}/fonts
> cachedir=${localstatedir}/cache/${PACKAGE}
> 
> Name: Fontconfig
> Description: Font configuration and customization library
> Version: 2.15.0
> Requires:  freetype2 >= 21.0.15
> Requires.private:  libxml-2.0 >= 2.6
> Libs: -L${libdir} -lfontconfig
> Libs.private:  
> Cflags: -I${includedir}  
> 
> fontconfig.pc seems to be pointing to the right places (except 
> sysconfdir=${prefix}/etc doesn’t exist; I don’t know what it would be looking 
> for there).  I’m perplexed.

Small error; ${prefix}/etc DOES exist.  It contains a fonts directory.

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Configure error with fontconfig

2024-04-30 Thread Jim Worrall


> On Apr 29, 2024, at 23:00, Ferdi Scholten  wrote:
> 
> This may not be due to ffmpeg itself, but I would appreciate some help.
>> Configure says that pkg-config can’t find fontconfig.pc, but it seems to be
>> in the PKG_CONFIG_PATH.
>> 
>> # ./configure --cc=/usr/bin/gcc \
>> --prefix=$TARGET \
>> --pkg-config-flags="--static" \
>> --extra-cflags="-I/usr/local/include" \
>> --extra-ldflags="-L/usr/local/lib" \
>> --extra-libs="-lpthread -ldl -lstdc++" \
>> --enable-static --disable-shared \
>> --enable-nonfree --enable-gpl --enable-version3 \
>> --enable-libfribidi --enable-libfreetype --enable-libfontconfig \
>> --enable-libfdk-aac --enable-libx264 --enable-libx265 --disable-lzma
>> ERROR: fontconfig not found using pkg-config
>> 
>> ffbuild/config.log:
>> . . .
>> require_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
>> check_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
>> test_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
>> pkg-config --exists --print-errors fontconfig
>> Package fontconfig was not found in the pkg-config search path.
>> Perhaps you should add the directory containing `fontconfig.pc'
>> to the PKG_CONFIG_PATH environment variable
>> Package 'fontconfig', required by 'virtual:world', not found
>> ERROR: fontconfig not found using pkg-config
>> 
>> Here is fontconfig.pc:
>> # ll /usr/local/ffmpeg/packages/pkg-config/check/gtk/
>> total 224K
>> drwxr-xr-x 2 root root  28 Apr 28 11:14 ./
>> drwxr-xr-x 7 root root  72 Apr 28 11:14 ../
>> -rw-r--r-- 1 root root 232 Apr 28 11:14 atk.pc
>> -rw-r--r-- 1 root root 287 Apr 28 11:14 cairo-gobject.pc
>> -rw-r--r-- 1 root root 388 Apr 28 11:14 cairo.pc
>> -rw-r--r-- 1 root root 269 Apr 28 11:14 fontconfig.pc
>> 
>> The last path in PKG_CONFIG_PATH contains fontconfig.pc:
>> 
>> # echo $PKG_CONFIG_PATH
>> /lib:/usr/lib:usr/local:/usr/local/lib:/usr/local/lib/pkgconfig:
>> /usr/libdata/pkgconfig:/usr/local/libdata/:/usr/local/libdata/pkgconfig:
>> /usr/local/ffmpeg/target/lib:/usr/local/ffmpeg/target/lib/pkgconfig:
>> /usr/local/ffmpeg/target/share/pkgconfig:
>> /usr/local/ffmpeg/build/pkg-config/check/gtk/
>> ___
> 
> Most likely the fontconfig package on your system is a shared library, it is 
> not distributed as a static library. It therefor cannot be used in a static 
> build with --disable-shared.
> 
> 
> Try building ffmpeg with shared libraries if you need fontconfig.

Thank you.  Before changing all the ffmpeg dependencies to shared libraries, 
I tried making a static fontconfig.  I removed the packaged fontconfig parts 
and built my own static fontconfig, but got the same “fontconfig not found" 
error.  
There is no .so file on the system with *fontconfig* in its name.

The relevant files may be:
/usr/local/ffmpeg/target/include/fontconfig/fontconfig.h
/usr/local/ffmpeg/target/lib/libfontconfig.la
/usr/local/ffmpeg/target/lib/pkgconfig/fontconfig.pc
/usr/local/ffmpeg/target/lib/libfontconfig.a

fontconfig.pc contains:
# cat /usr/local/ffmpeg/target/lib/pkgconfig/fontconfig.pc
prefix=/usr/local/ffmpeg/target
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
sysconfdir=${prefix}/etc
localstatedir=${prefix}/var
PACKAGE=fontconfig
confdir=${sysconfdir}/fonts
cachedir=${localstatedir}/cache/${PACKAGE}

Name: Fontconfig
Description: Font configuration and customization library
Version: 2.15.0
Requires:  freetype2 >= 21.0.15
Requires.private:  libxml-2.0 >= 2.6
Libs: -L${libdir} -lfontconfig
Libs.private:  
Cflags: -I${includedir}  

fontconfig.pc seems to be pointing to the right places (except 
sysconfdir=${prefix}/etc doesn’t exist; I don’t know what it would be looking 
for there).  I’m perplexed.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] Configure error with fontconfig

2024-04-30 Thread Ferdi Scholten

This may not be due to ffmpeg itself, but I would appreciate some help.

Configure says that pkg-config can’t find fontconfig.pc, but it seems to be
in the PKG_CONFIG_PATH.

# ./configure --cc=/usr/bin/gcc \
--prefix=$TARGET \
--pkg-config-flags="--static" \
--extra-cflags="-I/usr/local/include" \
--extra-ldflags="-L/usr/local/lib" \
--extra-libs="-lpthread -ldl -lstdc++" \
--enable-static --disable-shared \
--enable-nonfree --enable-gpl --enable-version3 \
--enable-libfribidi --enable-libfreetype --enable-libfontconfig \
--enable-libfdk-aac --enable-libx264 --enable-libx265 --disable-lzma
ERROR: fontconfig not found using pkg-config

ffbuild/config.log:
. . .
require_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
check_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
test_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
pkg-config --exists --print-errors fontconfig
Package fontconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `fontconfig.pc'
to the PKG_CONFIG_PATH environment variable
Package 'fontconfig', required by 'virtual:world', not found
ERROR: fontconfig not found using pkg-config

Here is fontconfig.pc:
# ll /usr/local/ffmpeg/packages/pkg-config/check/gtk/
total 224K
drwxr-xr-x 2 root root  28 Apr 28 11:14 ./
drwxr-xr-x 7 root root  72 Apr 28 11:14 ../
-rw-r--r-- 1 root root 232 Apr 28 11:14 atk.pc
-rw-r--r-- 1 root root 287 Apr 28 11:14 cairo-gobject.pc
-rw-r--r-- 1 root root 388 Apr 28 11:14 cairo.pc
-rw-r--r-- 1 root root 269 Apr 28 11:14 fontconfig.pc

The last path in PKG_CONFIG_PATH contains fontconfig.pc:

# echo $PKG_CONFIG_PATH
/lib:/usr/lib:usr/local:/usr/local/lib:/usr/local/lib/pkgconfig:
/usr/libdata/pkgconfig:/usr/local/libdata/:/usr/local/libdata/pkgconfig:
/usr/local/ffmpeg/target/lib:/usr/local/ffmpeg/target/lib/pkgconfig:
/usr/local/ffmpeg/target/share/pkgconfig:
/usr/local/ffmpeg/build/pkg-config/check/gtk/
___


Most likely the fontconfig package on your system is a shared library, it is 
not distributed as a static library. It therefor cannot be used in a static 
build with --disable-shared.


Try building ffmpeg with shared libraries if you need fontconfig.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


[FFmpeg-user] Configure error with fontconfig

2024-04-29 Thread Jim Worrall
This may not be due to ffmpeg itself, but I would appreciate some help.  
Configure says that pkg-config can’t find fontconfig.pc, but it seems to be
in the PKG_CONFIG_PATH.

# ./configure --cc=/usr/bin/gcc \
--prefix=$TARGET \
--pkg-config-flags="--static" \
--extra-cflags="-I/usr/local/include" \
--extra-ldflags="-L/usr/local/lib" \
--extra-libs="-lpthread -ldl -lstdc++" \
--enable-static --disable-shared \
--enable-nonfree --enable-gpl --enable-version3 \
--enable-libfribidi --enable-libfreetype --enable-libfontconfig \
--enable-libfdk-aac --enable-libx264 --enable-libx265 --disable-lzma 
ERROR: fontconfig not found using pkg-config

ffbuild/config.log:
. . . 
require_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
check_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
test_pkg_config libfontconfig fontconfig fontconfig/fontconfig.h FcInit
pkg-config --exists --print-errors fontconfig
Package fontconfig was not found in the pkg-config search path.
Perhaps you should add the directory containing `fontconfig.pc'
to the PKG_CONFIG_PATH environment variable
Package 'fontconfig', required by 'virtual:world', not found
ERROR: fontconfig not found using pkg-config

Here is fontconfig.pc:
# ll /usr/local/ffmpeg/packages/pkg-config/check/gtk/
total 224K
drwxr-xr-x 2 root root  28 Apr 28 11:14 ./
drwxr-xr-x 7 root root  72 Apr 28 11:14 ../
-rw-r--r-- 1 root root 232 Apr 28 11:14 atk.pc
-rw-r--r-- 1 root root 287 Apr 28 11:14 cairo-gobject.pc
-rw-r--r-- 1 root root 388 Apr 28 11:14 cairo.pc
-rw-r--r-- 1 root root 269 Apr 28 11:14 fontconfig.pc

The last path in PKG_CONFIG_PATH contains fontconfig.pc:

# echo $PKG_CONFIG_PATH
/lib:/usr/lib:usr/local:/usr/local/lib:/usr/local/lib/pkgconfig:
/usr/libdata/pkgconfig:/usr/local/libdata/:/usr/local/libdata/pkgconfig:
/usr/local/ffmpeg/target/lib:/usr/local/ffmpeg/target/lib/pkgconfig:
/usr/local/ffmpeg/target/share/pkgconfig:
/usr/local/ffmpeg/build/pkg-config/check/gtk/
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".


Re: [FFmpeg-user] ./configure ERROR: rockchip_mpp not found using pkg-config

2018-01-22 Thread Carl Eugen Hoyos
2018-01-14 10:03 GMT+01:00 Garth Pennington :
> Hi, I am getting this error trying to compile ffmpeg with the new rockchip
> mpp support added.
>
>
> ./configure --enable-rkmpp --enable-version3
> ERROR: rockchip_mpp not found using pkg-config
>
> configure.log on pastebin https://pastebin.com/7qeDdmBe

Try --extra-libs=-lm

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] ./configure ERROR: rockchip_mpp not found using pkg-config

2018-01-22 Thread Garth Pennington
Hi, I am getting this error trying to compile ffmpeg with the new rockchip
mpp support added.


./configure --enable-rkmpp --enable-version3
ERROR: rockchip_mpp not found using pkg-config

configure.log on pastebin https://pastebin.com/7qeDdmBe

pkg-config list   https://pastebin.com/bQRdrJ5S

any help, much appreciated
Thanks
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Configure error with Android NDK clang compiler

2016-01-17 Thread Carl Eugen Hoyos
Marco Pracucci  spreaker.com> writes:

> I'm getting some issues while compiling ffmpeg with 
> Android NDK's clang and this is the first one I encounter:
> *GNU assembler not found, install/update gas-preprocessor*

Allow me a third try:
You cannot report "FFmpeg's configure requires me to 
install gas-preprocessor for arm on OSX when using 
clang but I don't need it" because it is needed.

You can either install gas-preprocessor and use 
--disable-fft for the time being, compilation of the 
arm fft code currently fails with clang on osx, see 
ticket #5164.
Or you can use gcc for compilation (it does not need 
gas-preprocessor) as I believe you have already done.
Third possibility is to use clang but gcc for the 
asm, just add --as=/bin/arm-linux-androideabi-gcc 
to your configure script (no gas-preprocessor needed).

Instead of the (unsupproted) extra-cflags you are 
using, please pass --cpu=cortex-a8 to configure. 
If you believe this has any disadvantage please tell 
us so we can fix it.

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] Configure error with Android NDK clang compiler

2016-01-15 Thread Marco Pracucci
I successfully build and run in production ffmpeg on Android (arm and x86)
compiled with Android NDK's gcc. Recently, Android deprecated gcc and is
pushing every dev to migrate to clang.

I'm getting some issues while compiling ffmpeg with Android NDK's clang and
this is the first one I encounter:
*GNU assembler not found, install/update gas-preprocessor*

Despite the message, looks that error is more subtle, because it fails
while running "check_as" but if I run the same exact check command on the
terminal, *it works*.

Below you can find the full instructions to reproduce it (it fixes with
--disable-asm but with gcc I'm able to compile with asm support).

Versions:
- ffmpeg 2.8.4
- Compile on OSX 10.9.5

*Download Android NDK*
You can download the Android NDK from here:
​http://developer.android.com/ndk/downloads/index.html

*Install Android NDK*
Follow the installation instructions in the download and then set the
environment variable NDK_DIR to the directory where you extracted the NDK.

*Build NDK standalone toolchain*
Define an environment variable TOOLCHAIN_DIR with the full path of the
directory where the standalone toolchain should be installed. For example:
export TOOLCHAIN_DIR=/tmp/toolchain

Then build the toolchain:
${NDK_DIR}/build/tools/make-standalone-toolchain.sh \
--toolchain=arm-linux-androideabi-clang3.6 \
--platform=android-9 \
--install-dir=${TOOLCHAIN_DIR}

*Compile ffmpeg*
I use the following configure script:
./configure \
--enable-shared \
--disable-static \
--enable-gpl \
--enable-version3 \
--enable-nonfree \
--disable-runtime-cpudetect \
--disable-all \
--disable-doc \
--enable-avcodec \
--enable-avformat \
--enable-avutil \
--enable-swresample \
--disable-w32threads \
--disable-os2threads \
--disable-network \
--disable-dxva2 \
--disable-vaapi \
--disable-vda \
--disable-vdpau \
--enable-protocol="file" \
--enable-decoder="aac" \
--enable-decoder="cook" \
--enable-decoder="flac" \
--enable-decoder="mp3" \
--enable-decoder="mp3adu" \
--enable-decoder="mp3adufloat" \
--enable-decoder="mp3float" \
--enable-decoder="mp3on4" \
--enable-decoder="mp3on4float" \
--enable-decoder="pcm_alaw" \
--enable-decoder="pcm_bluray" \
--enable-decoder="pcm_dvd" \
--enable-decoder="pcm_f32be" \
--enable-decoder="pcm_f32le" \
--enable-decoder="pcm_f64be" \
--enable-decoder="pcm_f64le" \
--enable-decoder="pcm_lxf" \
--enable-decoder="pcm_mulaw" \
--enable-decoder="pcm_s16be" \
--enable-decoder="pcm_s16be_planar" \
--enable-decoder="pcm_s16le" \
--enable-decoder="pcm_s16le_planar" \
--enable-decoder="pcm_s24be" \
--enable-decoder="pcm_s24daud" \
--enable-decoder="pcm_s24le" \
--enable-decoder="pcm_s24le_planar" \
--enable-decoder="pcm_s32be" \
--enable-decoder="pcm_s32le" \
--enable-decoder="pcm_s32le_planar" \
--enable-decoder="pcm_s8" \
--enable-decoder="pcm_s8_planar" \
--enable-decoder="pcm_u16be" \
--enable-decoder="pcm_u16le" \
--enable-decoder="pcm_u24be" \
--enable-decoder="pcm_u24le" \
--enable-decoder="pcm_u32be" \
--enable-decoder="pcm_u32le" \
--enable-decoder="pcm_u8" \
--enable-decoder="pcm_zork" \
--enable-decoder="ra_144" \
--enable-decoder="ra_288" \
--enable-decoder="ralf" \
--enable-decoder="vorbis" \
--enable-decoder="wmav1" \
--enable-decoder="wmav2" \
--enable-decoder="wmavoice" \
--enable-decoder="wmalossless" \
--enable-decoder="wmapro" \
--enable-parser="aac" \
--enable-parser="flac" \
--enable-parser="mpegaudio" \
--enable-parser="vorbis" \
--enable-demuxer="aac" \
--enable-demuxer="aiff" \
--enable-demuxer="asf" \
--enable-demuxer="flac" \
--enable-demuxer="ogg" \
--enable-demuxer="mp3" \
--enable-demuxer="mov" \
--enable-demuxer="pcm_alaw" \
--enable-demuxer="pcm_f32be" \
--enable-demuxer="pcm_f32le" \
--enable-demuxer="pcm_f64be" \
--enable-demuxer="pcm_f64le" \
--enable-demuxer="pcm_mulaw" \
--enable-demuxer="pcm_s16be" \
--enable-demuxer="pcm_s16le" \
--enable-demuxer="pcm_s24be" \
--enable-demuxer="pcm_s24le" \
--enable-demuxer="pcm_s32be" \
--enable-demuxer="pcm_s32le" \
--enable-demuxer="pcm_s8" \
--enable-demuxer="pcm_u16be" \
--enable-demuxer="pcm_u16le" \
--enable-demuxer="pcm_u24be" \
--enable-demuxer="pcm_u24le" \
--enable-demuxer="pcm_u32be" \
--enable-demuxer="pcm_u32le" \
--enable-demuxer="rm" \
--enable-demuxer="wav" \
--enable-cross-compile \
--toolchain=clang-usan \
--cross-prefix=${TOOLCHAIN_DIR}/bin/arm-linux-androideabi- \
--cc=${TOOLCHAIN_DIR}/bin/arm-linux-androideabi-clang \
--cxx=${TOOLCHAIN_DIR}/bin/arm-linux-androideabi-clang \
--sysroot=${TOOLCHAIN_DIR}/sysroot \
--target-os=android \
--extra-cflags="-I${TOOCHAIN_DIR}/sysroot/usr/include -ffast-math
-funroll-loops -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16" \
--extra-ldflags="-L${TOOCHAIN_DIR}/sysroot/usr/lib" \
--arch="arm" \
--logfile="/tmp/ffmpeg.log"

*The configure script fails with*:
GNU assembler not found, install/update gas-preprocessor

It fails while running check_as (extracted from the fail of ffmpeg.log):
check_as
BEGIN 

Re: [FFmpeg-user] Configure error with Android NDK clang compiler

2016-01-15 Thread Davood Falahati
I have not compiled FFMPEG for android using toolchain, however, I had a
tough time doing the same with opencv-JNI. This question, asked in
stackoverflow might help you.
http://stackoverflow.com/questions/34246265/opencv-ann-mlp-training-in-android

I read your ndk building procedure, don't you point Application.mk and
Android.mk files to your toolchain? I mean $NDK-PATH/ndk-build ? Are you
using gradle?


Davood Falahati,

Isfahan University of Technology.
d.falahati.1...@ieee.org

Every 3000 Sheets of paper costs us a tree.. Save trees... Conserve
Trees. Don't print this email or any files unless you really need to!

On Fri, Jan 15, 2016 at 2:21 AM, Marco Pracucci  wrote:

> I successfully build and run in production ffmpeg on Android (arm and x86)
> compiled with Android NDK's gcc. Recently, Android deprecated gcc and is
> pushing every dev to migrate to clang.
>
> I'm getting some issues while compiling ffmpeg with Android NDK's clang and
> this is the first one I encounter:
> *GNU assembler not found, install/update gas-preprocessor*
>
> Despite the message, looks that error is more subtle, because it fails
> while running "check_as" but if I run the same exact check command on the
> terminal, *it works*.
>
> Below you can find the full instructions to reproduce it (it fixes with
> --disable-asm but with gcc I'm able to compile with asm support).
>
> Versions:
> - ffmpeg 2.8.4
> - Compile on OSX 10.9.5
>
> *Download Android NDK*
> You can download the Android NDK from here:
> ​http://developer.android.com/ndk/downloads/index.html
>
> *Install Android NDK*
> Follow the installation instructions in the download and then set the
> environment variable NDK_DIR to the directory where you extracted the NDK.
>
> *Build NDK standalone toolchain*
> Define an environment variable TOOLCHAIN_DIR with the full path of the
> directory where the standalone toolchain should be installed. For example:
> export TOOLCHAIN_DIR=/tmp/toolchain
>
> Then build the toolchain:
> ${NDK_DIR}/build/tools/make-standalone-toolchain.sh \
> --toolchain=arm-linux-androideabi-clang3.6 \
> --platform=android-9 \
> --install-dir=${TOOLCHAIN_DIR}
>
> *Compile ffmpeg*
> I use the following configure script:
> ./configure \
> --enable-shared \
> --disable-static \
> --enable-gpl \
> --enable-version3 \
> --enable-nonfree \
> --disable-runtime-cpudetect \
> --disable-all \
> --disable-doc \
> --enable-avcodec \
> --enable-avformat \
> --enable-avutil \
> --enable-swresample \
> --disable-w32threads \
> --disable-os2threads \
> --disable-network \
> --disable-dxva2 \
> --disable-vaapi \
> --disable-vda \
> --disable-vdpau \
> --enable-protocol="file" \
> --enable-decoder="aac" \
> --enable-decoder="cook" \
> --enable-decoder="flac" \
> --enable-decoder="mp3" \
> --enable-decoder="mp3adu" \
> --enable-decoder="mp3adufloat" \
> --enable-decoder="mp3float" \
> --enable-decoder="mp3on4" \
> --enable-decoder="mp3on4float" \
> --enable-decoder="pcm_alaw" \
> --enable-decoder="pcm_bluray" \
> --enable-decoder="pcm_dvd" \
> --enable-decoder="pcm_f32be" \
> --enable-decoder="pcm_f32le" \
> --enable-decoder="pcm_f64be" \
> --enable-decoder="pcm_f64le" \
> --enable-decoder="pcm_lxf" \
> --enable-decoder="pcm_mulaw" \
> --enable-decoder="pcm_s16be" \
> --enable-decoder="pcm_s16be_planar" \
> --enable-decoder="pcm_s16le" \
> --enable-decoder="pcm_s16le_planar" \
> --enable-decoder="pcm_s24be" \
> --enable-decoder="pcm_s24daud" \
> --enable-decoder="pcm_s24le" \
> --enable-decoder="pcm_s24le_planar" \
> --enable-decoder="pcm_s32be" \
> --enable-decoder="pcm_s32le" \
> --enable-decoder="pcm_s32le_planar" \
> --enable-decoder="pcm_s8" \
> --enable-decoder="pcm_s8_planar" \
> --enable-decoder="pcm_u16be" \
> --enable-decoder="pcm_u16le" \
> --enable-decoder="pcm_u24be" \
> --enable-decoder="pcm_u24le" \
> --enable-decoder="pcm_u32be" \
> --enable-decoder="pcm_u32le" \
> --enable-decoder="pcm_u8" \
> --enable-decoder="pcm_zork" \
> --enable-decoder="ra_144" \
> --enable-decoder="ra_288" \
> --enable-decoder="ralf" \
> --enable-decoder="vorbis" \
> --enable-decoder="wmav1" \
> --enable-decoder="wmav2" \
> --enable-decoder="wmavoice" \
> --enable-decoder="wmalossless" \
> --enable-decoder="wmapro" \
> --enable-parser="aac" \
> --enable-parser="flac" \
> --enable-parser="mpegaudio" \
> --enable-parser="vorbis" \
> --enable-demuxer="aac" \
> --enable-demuxer="aiff" \
> --enable-demuxer="asf" \
> --enable-demuxer="flac" \
> --enable-demuxer="ogg" \
> --enable-demuxer="mp3" \
> --enable-demuxer="mov" \
> --enable-demuxer="pcm_alaw" \
> --enable-demuxer="pcm_f32be" \
> --enable-demuxer="pcm_f32le" \
> --enable-demuxer="pcm_f64be" \
> --enable-demuxer="pcm_f64le" \
> --enable-demuxer="pcm_mulaw" \
> --enable-demuxer="pcm_s16be" \
> --enable-demuxer="pcm_s16le" \
> --enable-demuxer="pcm_s24be" \
> --enable-demuxer="pcm_s24le" \
> --enable-demuxer="pcm_s32be" \
> --enable-demuxer="pcm_s32le" \
> --enable-demuxer="pcm_s8" \
> 

Re: [FFmpeg-user] Configure error with Android NDK clang compiler

2016-01-15 Thread Carl Eugen Hoyos
Marco Pracucci  spreaker.com> writes:

> I'm getting some issues while compiling ffmpeg with Android NDK's clang and
> this is the first one I encounter:
> *GNU assembler not found, install/update gas-preprocessor*

I can reproduce the error message.
I decided to install gas-preprocessor and this issue disappeared.
Why do you believe there is an issue that we can fix?

Note that since compilation does not succeed for all files, I 
suggest you use gcc for the time being.

Carl Eugen

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Configure error with Android NDK clang compiler

2016-01-15 Thread Marco Pracucci
Carl Eugen,
thanks for your reply.

> I decided to install gas-preprocessor and this issue disappeared.

For the sake of knowledge, I can't understand why I do need a
gas-preprocessor to run the configure. If I create a file containing the
same exact AS code run through "check_as" and run the same exact command to
compile it (I took both from --logfile content), it actually works.

Since there's some discrepancy between the command run by the configure
script and the same exact command run manually on my terminal, I'm
wondering how it could happen and if it's actually an issue related to the
configure script.

> Note that since compilation does not succeed for all files, I
> suggest you use gcc for the time being.

I manually patched the configure script to bypass "check_as" and I also
realized the compilation fails. That's the next thing I will deeply look
into.

Thank you,
Marco


2016-01-15 23:59 GMT+01:00 Carl Eugen Hoyos :

> Marco Pracucci  spreaker.com> writes:
>
> > I'm getting some issues while compiling ffmpeg with Android NDK's clang
> and
> > this is the first one I encounter:
> > *GNU assembler not found, install/update gas-preprocessor*
>
> I can reproduce the error message.
> I decided to install gas-preprocessor and this issue disappeared.
> Why do you believe there is an issue that we can fix?
>
> Note that since compilation does not succeed for all files, I
> suggest you use gcc for the time being.
>
> Carl Eugen
>
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] ./configure error

2014-12-16 Thread Moritz Barsnick
Hi Brandon,

On Mon, Dec 15, 2014 at 15:50:13 -0700, Brandon Northcutt wrote:
 ERROR: opencl not found

The important error is
/usr/bin/ld: cannot find -lOpenCL

 My system is x86_64 Fedora 20 with all opencl rpm packages installed:

AFAIU, you need an OpenCL loader and an actual implementation. See
http://wiki.tiker.net/OpenCLHowTo

Perhaps the ICD loader is sufficient for building. On Fedora, this
would be the package ocl-icd-devel.

I can't help you much further, due to lack of experience.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] configure error

2014-09-22 Thread liyongfa
when I make the configure with --enable-libx264,it report error,how can I 
do? thanks.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] configure error

2014-09-22 Thread Reindl Harald

Am 22.09.2014 um 09:58 schrieb liyon...@kugou.net:
 when I make the configure with --enable-libx264,it report error,
 how can I do? thanks

my crystal ball says just install x264-devel packages

http://www.catb.org/esr/faqs/smart-questions.html#beprecise



signature.asc
Description: OpenPGP digital signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] configure error with enabling libmodplug

2014-09-11 Thread Clément Bœsch
On Thu, Sep 11, 2014 at 12:23:35PM +0900, Kimio Miyamura wrote:
 
  2014/09/01 4:05PM Clément Bœsch u...@pkh.me wrote: 
  
  On Mon, Sep 01, 2014 at 03:39:08PM +0900, Kimio Miyamura wrote:
  
  On 2014/09/01, at 2:11PM, Clément Bœsch u...@pkh.me wrote:
  
  On Mon, Sep 01, 2014 at 10:02:58AM +0900, Kimio Miyamura wrote:
  
  I searched web and found that modification of ffmpeg configure script is 
  required: 
  
  -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 think either of them should be added to ffmpeg compile script.  How do 
  you think?
  
  Does -lstdc++ or -lc++ appears in pkg-config --libs libmodplug?
  
  $ pkg-config --libs libmodplug
  -L/Volumes/ffmpeg_compile/lib -lmodplug
  
  So either -lstdc++ or -lc++ don't appear in the command output.  
  
  I checked libmodplug.pc.  
  
  $ cat /Volumes/ffmpeg_compile/lib/pkgconfig/libmodplug.pc 
  prefix=/Volumes/ffmpeg_compile
  exec_prefix=${prefix}
  libdir=${exec_prefix}/lib
  includedir=${prefix}/include
  
  Name: libmodplug
  Description: The ModPlug mod file playing library.
  Version: 0.8.8.5
  Requires: 
  Libs: -L${libdir} -lmodplug
  Libs.private: -lstdc++ -lm
  Cflags: -I${includedir}
  
  -lstdc++ appears in Libs.private: line.  But even though configure with 
  ./configure --pkg-config-flags=--static --enable-libmodplug, the result 
  is same error.  
  
  
  Right, that's because libmodplug wasn't detected through pkg-config, which
  I just fixed in git/master. Can you git pull and retry that latest command
  with --pkg-config-flags=--static?
 
 A information for Windows (MinGW?) user.  
 
 With above ffmpeg change, Windows (MinGW?) user encounters libmodplug not 
 found error when configuring ffmpeg with libmodplug-0.8.8.5.  
 This is because of mod plug.h's   MODPLUG_EXPORT macro.  The 
 macro is defined as __declspec(dllimport) would be added, without defining 
 MODPLUG_STATIC.  

Can you explain how this is different from before the pkg-config patch?

 Then, called as `_imp__ModPlug_Load' from ffmpeg configure, and then result 
 in libmodplug not found error.  (I'm not Windows user.  I'm writing the error 
 mechanism based on one of my friend's comment who using Windows)
 

 The countermeasure is either of bellow 3.
 1.Define MODPLUG_STATIC in modplug.h.

What is the consequence of this when it's not static?

 2.Add -DMODPLUG_STATIC to Cflags: -I${includedir} line in libmodplug.pc.

Sounds like you have to add this to Cflags.private or something so it's
raised with --static. You need to see this with modplug itself

 3.Configure ffmpeg with adding --extra-cflags=-DMODPLUG_STATIC option.
 

We indeed currently do #define MODPLUG_STATIC in the
libavformat/libmodplug.c itself, so it should probably be in the configure
test as well. Unfortunately, I'm not sure how this actually affects the
linking when only a shared version of the library is available. Also, I
don't understand how this previously worked, because the configure test
never had it.

[...]

-- 
Clément B.


pgpvzZ91t_3Fh.pgp
Description: PGP signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] configure error with enabling libmodplug

2014-09-11 Thread Kimio Miyamura

 2014/09/11 6:19PM Kimio Miyamura xan...@apost.plala.or.jp wrote: 

Sorry I reposted same message to the list...


// Miya

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] configure error with enabling libmodplug

2014-09-11 Thread Kimio Miyamura

 2014/09/11 4:07PM Clément Bœsch wrote: 
 
 On Thu, Sep 11, 2014 at 12:23:35PM +0900, Kimio Miyamura wrote:
 
 2014/09/01 4:05PM Clément Bœsch u...@pkh.me wrote: 
 
 On Mon, Sep 01, 2014 at 03:39:08PM +0900, Kimio Miyamura wrote:
 
 On 2014/09/01, at 2:11PM, Clément Bœsch u...@pkh.me wrote:
 
 On Mon, Sep 01, 2014 at 10:02:58AM +0900, Kimio Miyamura wrote:
 
 I searched web and found that modification of ffmpeg configure script is 
 required: 
 
 -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 think either of them should be added to ffmpeg compile script.  How do 
 you think?
 
 Does -lstdc++ or -lc++ appears in pkg-config --libs libmodplug?
 
 $ pkg-config --libs libmodplug
 -L/Volumes/ffmpeg_compile/lib -lmodplug
 
 So either -lstdc++ or -lc++ don't appear in the command output.  
 
 I checked libmodplug.pc.  
 
 $ cat /Volumes/ffmpeg_compile/lib/pkgconfig/libmodplug.pc 
 prefix=/Volumes/ffmpeg_compile
 exec_prefix=${prefix}
 libdir=${exec_prefix}/lib
 includedir=${prefix}/include
 
 Name: libmodplug
 Description: The ModPlug mod file playing library.
 Version: 0.8.8.5
 Requires: 
 Libs: -L${libdir} -lmodplug
 Libs.private: -lstdc++ -lm
 Cflags: -I${includedir}
 
 -lstdc++ appears in Libs.private: line.  But even though configure with 
 ./configure --pkg-config-flags=--static --enable-libmodplug, the result 
 is same error.  
 
 
 Right, that's because libmodplug wasn't detected through pkg-config, which
 I just fixed in git/master. Can you git pull and retry that latest command
 with --pkg-config-flags=--static?
 
 A information for Windows (MinGW?) user.  
 
 With above ffmpeg change, Windows (MinGW?) user encounters libmodplug not 
 found error when configuring ffmpeg with libmodplug-0.8.8.5.  
 This is because of mod plug.h's  MODPLUG_EXPORT macro.  The 
 macro is defined as __declspec(dllimport) would be added, without defining 
 MODPLUG_STATIC.  
 
 Can you explain how this is different from before the pkg-config patch?

There are no difference in mod plug.h between pkg-config patch and before.  
To build ffmpeg (Before pkg-config patch) with libmodplug support, Windows user 
modified ffmpeg configure script as my first message.  They added -lstdc++ to 
enabled libmodplug line as workaround.  

-enabled libmodplug require libmodplug libmodplug/modplug.h 
ModPlug_Load -lmodplug
+enabled libmodplug require libmodplug libmodplug/modplug.h 
ModPlug_Load -lmodplug -lstdc++

 Then, called as `_imp__ModPlug_Load' from ffmpeg configure, and then result 
 in libmodplug not found error.  (I'm not Windows user.  I'm writing the 
 error mechanism based on one of my friend's comment who using Windows)
 
 The countermeasure is either of bellow 3.
 1.Define MODPLUG_STATIC in modplug.h.
 
 What is the consequence of this when it's not static?

Yes it's a workaround for ffmpeg static building.  If build ffmpeg as shared, 
this workaround is not needed.  

 2.Add -DMODPLUG_STATIC to Cflags: -I${includedir} line in libmodplug.pc.
 
 Sounds like you have to add this to Cflags.private or something so it's
 raised with --static. You need to see this with mod plug itself

You are right, but this is a workaround for ffmpeg static building too.  It 
does not mean that libmodplug.pc should be changed in it's source code.  

 3.Configure ffmpeg with adding --extra-cflags=-DMODPLUG_STATIC option.
 
 We indeed currently do #define MODPLUG_STATIC in the
 libavformat/libmodplug.c itself, so it should probably be in the configure
 test as well. Unfortunately, I'm not sure how this actually affects the
 linking when only a shared version of the library is available. Also, I
 don't understand how this previously worked, because the configure test
 never had it.


In fact, the error in Windows is not related with ffmpeg.  It is derived from 
macro in modplug.h.  Here   , I pickup central of this issue: 

01 #if defined(_WIN32) || defined(__CYGWIN__)
02 # if defined(MODPLUG_BUILD)  defined(DLL_EXPORT)   /* building libmodplug 
as a dll for windows */
03 #   define MODPLUG_EXPORT __declspec(dllexport)
04 # elif defined(MODPLUG_BUILD) || defined(MODPLUG_STATIC) /* building or 
using static libmodplug for windows */
05 #   define MODPLUG_EXPORT
06 # else
07 #   define MODPLUG_EXPORT __declspec(dllimport)  /* 
using libmodplug dll for windows */
08 # endif
09 /* FIXME: USE VISIBILITY ATTRIBUTES HERE */
10 #elif defined(MODPLUG_BUILD)
11 #define MODPLUG_EXPORT
12 #else
13 #define MODPLUG_EXPORT
14 #endif

You may see that without MODPLUG_STATIC definition, _imp__ prefix is added to 
function name.  All 3 countermeasure are workaround to 

Re: [FFmpeg-user] configure error with enabling libmodplug

2014-09-11 Thread einguste
For reference

http://pastebin.com/va9tCWzV
external int ModPlug_Load

http://pastebin.com/Dy3Gu1Fj
#include libmodplug/modplug.h
MODPLUG_EXPORT ModPlugFile* ModPlug_Load(const void* data, int size);



signature.asc
Description: OpenPGP digital signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] configure error with enabling libmodplug

2014-09-11 Thread einguste
For reference

http://pastebin.com/va9tCWzV
external int ModPlug_Load


http://pastebin.com/Dy3Gu1Fj
#include libmodplug/modplug.h
MODPLUG_EXPORT ModPlugFile* ModPlug_Load



signature.asc
Description: OpenPGP digital signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] configure error with enabling libmodplug

2014-09-11 Thread einguste
For reference

http://pastebin.com/va9tCWzV
external int ModPlug_Load


http://pastebin.com/Dy3Gu1Fj
#include libmodplug/modplug.h
MODPLUG_EXPORT ModPlugFile* ModPlug_Load
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] configure error with enabling libmodplug

2014-09-11 Thread einguste
Sorry I reposted same message to the list...
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] configure error with enabling libmodplug

2014-09-10 Thread Kimio Miyamura

 2014/09/01 4:05PM Clément Bœsch u...@pkh.me wrote: 
 
 On Mon, Sep 01, 2014 at 03:39:08PM +0900, Kimio Miyamura wrote:
 
 On 2014/09/01, at 2:11PM, Clément Bœsch u...@pkh.me wrote:
 
 On Mon, Sep 01, 2014 at 10:02:58AM +0900, Kimio Miyamura wrote:
 
 I searched web and found that modification of ffmpeg configure script is 
 required: 
 
 -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 think either of them should be added to ffmpeg compile script.  How do 
 you think?
 
 Does -lstdc++ or -lc++ appears in pkg-config --libs libmodplug?
 
 $ pkg-config --libs libmodplug
 -L/Volumes/ffmpeg_compile/lib -lmodplug
 
 So either -lstdc++ or -lc++ don't appear in the command output.  
 
 I checked libmodplug.pc.  
 
 $ cat /Volumes/ffmpeg_compile/lib/pkgconfig/libmodplug.pc 
 prefix=/Volumes/ffmpeg_compile
 exec_prefix=${prefix}
 libdir=${exec_prefix}/lib
 includedir=${prefix}/include
 
 Name: libmodplug
 Description: The ModPlug mod file playing library.
 Version: 0.8.8.5
 Requires: 
 Libs: -L${libdir} -lmodplug
 Libs.private: -lstdc++ -lm
 Cflags: -I${includedir}
 
 -lstdc++ appears in Libs.private: line.  But even though configure with 
 ./configure --pkg-config-flags=--static --enable-libmodplug, the result is 
 same error.  
 
 
 Right, that's because libmodplug wasn't detected through pkg-config, which
 I just fixed in git/master. Can you git pull and retry that latest command
 with --pkg-config-flags=--static?

A information for Windows (MinGW?) user.  

With above ffmpeg change, Windows (MinGW?) user encounters libmodplug not found 
error when configuring ffmpeg with libmodplug-0.8.8.5.  
This is because of mod plug.h's MODPLUG_EXPORT macro.  The 
macro is defined as __declspec(dllimport) would be added, without defining 
MODPLUG_STATIC.  
Then, called as `_imp__ModPlug_Load' from ffmpeg configure, and then result in 
libmodplug not found error.  (I'm not Windows user.  I'm writing the error 
mechanism based on one of my friend's comment who using Windows)

The countermeasure is either of bellow 3.
1.Define MODPLUG_STATIC in modplug.h.
2.Add -DMODPLUG_STATIC to Cflags: -I${includedir} line in libmodplug.pc.
3.Configure ffmpeg with adding --extra-cflags=-DMODPLUG_STATIC option.

My friend told me that ffmpeg's require_pkg_config change in libmodplug is 
fair.  There are some libraries which have to add STATIC definition to build 
ffmpeg correctly.  

So please use either of 3 countermeasure to build ffmpeg with libmodplug 
support in Windows.


// Miya
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] configure error with enabling libmodplug

2014-09-01 Thread Clément Bœsch
On Mon, Sep 01, 2014 at 03:39:08PM +0900, Kimio Miyamura wrote:
 
  On 2014/09/01, at 2:11PM, Clément Bœsch u...@pkh.me wrote:
  
  On Mon, Sep 01, 2014 at 10:02:58AM +0900, Kimio Miyamura wrote:
  
  I searched web and found that modification of ffmpeg configure script is 
  required: 
 
  -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 think either of them should be added to ffmpeg compile script.  How do 
  you think?
 
  Does -lstdc++ or -lc++ appears in pkg-config --libs libmodplug?
 
 $ pkg-config --libs libmodplug
 -L/Volumes/ffmpeg_compile/lib -lmodplug
 
 So either -lstdc++ or -lc++ don't appear in the command output.  
 
 I checked libmodplug.pc.  
 
 $ cat /Volumes/ffmpeg_compile/lib/pkgconfig/libmodplug.pc 
 prefix=/Volumes/ffmpeg_compile
 exec_prefix=${prefix}
 libdir=${exec_prefix}/lib
 includedir=${prefix}/include
 
 Name: libmodplug
 Description: The ModPlug mod file playing library.
 Version: 0.8.8.5
 Requires: 
 Libs: -L${libdir} -lmodplug
 Libs.private: -lstdc++ -lm
 Cflags: -I${includedir}
 
 -lstdc++ appears in Libs.private: line.  But even though configure with 
 ./configure --pkg-config-flags=--static --enable-libmodplug, the result is 
 same error.  
 

Right, that's because libmodplug wasn't detected through pkg-config, which
I just fixed in git/master. Can you git pull and retry that latest command
with --pkg-config-flags=--static?

Regards,

-- 
Clément B.


pgp0byeZl0xR_.pgp
Description: PGP signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] configure error with enabling libmodplug

2014-09-01 Thread Clément Bœsch
On Mon, Sep 01, 2014 at 04:15:06PM +0900, Kimio Miyamura wrote:
[...]
  Right, that's because libmodplug wasn't detected through pkg-config, which
  I just fixed in git/master. Can you git pull and retry that latest command
  with --pkg-config-flags=--static?
 
 Trying to git cloning ffmpeg, I get the following error: 
 
 $ git clone git://source.ffmpeg.org/ffmpeg.git
 Cloning into 'ffmpeg'...
 fatal: read error: Connection reset by peer
 

Videolan just fixed the issue right now, can you retry?

-- 
Clément B.


pgpNKzBdzV1mP.pgp
Description: PGP signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] configure error with enabling libmodplug

2014-09-01 Thread Kimio Miyamura

 2014/09/01 4:26PM Clément Bœsch u...@pkh.me wrote: 
 
 On Mon, Sep 01, 2014 at 04:15:06PM +0900, Kimio Miyamura wrote:
 [...]
 Right, that's because libmodplug wasn't detected through pkg-config, which
 I just fixed in git/master. Can you git pull and retry that latest command
 with --pkg-config-flags=--static?
 
 Trying to git cloning ffmpeg, I get the following error: 
 
 $ git clone git://source.ffmpeg.org/ffmpeg.git
 Cloning into 'ffmpeg'...
 fatal: read error: Connection reset by peer
 
 
 Videolan just fixed the issue right now, can you retry?

I have successfully build ffmpeg with latest git ffmpeg.  Thank you very much!!

BTW, Can you explain me how to use libmodplug?  I'm just a compile maniac, so I 
don't know how to use it.  I'm very appreciated if you provide me sample like: 

ffmpeg -i test.wav -c:a libmodplug test.mod???


// Miya
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] configure error with enabling libmodplug

2014-09-01 Thread Clément Bœsch
On Mon, Sep 01, 2014 at 05:03:02PM +0900, Kimio Miyamura wrote:
 
  2014/09/01 4:26PM Clément Bœsch u...@pkh.me wrote: 
  
  On Mon, Sep 01, 2014 at 04:15:06PM +0900, Kimio Miyamura wrote:
  [...]
  Right, that's because libmodplug wasn't detected through pkg-config, which
  I just fixed in git/master. Can you git pull and retry that latest command
  with --pkg-config-flags=--static?
  
  Trying to git cloning ffmpeg, I get the following error: 
  
  $ git clone git://source.ffmpeg.org/ffmpeg.git
  Cloning into 'ffmpeg'...
  fatal: read error: Connection reset by peer
  
  
  Videolan just fixed the issue right now, can you retry?
 
 I have successfully build ffmpeg with latest git ffmpeg.  Thank you very 
 much!!
 
 BTW, Can you explain me how to use libmodplug?  I'm just a compile maniac, so 
 I don't know how to use it.  I'm very appreciated if you provide me sample 
 like: 
 
 ffmpeg -i test.wav -c:a libmodplug test.mod???
 

The creation of mod files is a complex process and can hardly be made
automatically, so only a demuxer is available, so you might want to try
ffmpeg -i test.mod test.wav, or simply ffplay test.mod

-- 
Clément B.


pgpTK9SqjefZ4.pgp
Description: PGP signature
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] configure error with enabling libmodplug

2014-08-31 Thread Kimio Miyamura
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

___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user