[Ffmpeg-devel] llrint() compilation error on PowerPC corssCompiler

Toufik Ahmed tad
Tue Nov 21 08:39:24 CET 2006


Dear All,
I'm facing a problem to compile ffmpeg (latest SVN) on Linux with 
corss-compiler (powerpc-linux-gcc (GCC) 3.3.4)
It seems that llrinit() is not found. I've add "include <math.h" in the 
file but does not work too. (the "-lm" is used)

Here the command line for where the error is generated

*powerpc-linux-gcc -lm -L"/ffmpeg"/libavformat -L"/ffmpeg"/libavcodec 
-L"/ffmpeg"/libavutil -Wl,--warn-common  -rdynamic -export-dynamic -g -o 
ffmpeg_g ffmpeg.o cmdutils.o -lavformat -lavcodec -lavutil -lm -ldl*

the error is
*
/ffmpeg/libavcodec/libavcodec.a(mpegaudiodec.o)(.text+0x19f0): In 
function `decode_init':
/ffmpeg/libavcodec/mpegaudiodec.c:408: undefined reference to `llrint'
/ffmpeg/libavcodec/libavcodec.a(mpegaudiodec.o)(.text+0x204c):/ffmpeg/libavcodec/mpegaudiodec.c:410: 
undefined reference to `llrint' collect2: ld returned 1 exit status


*I appreciate any help and tips
Best regards
Toufik





More information about the ffmpeg-devel mailing list