LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ffmpeg compile help (https://www.linuxquestions.org/questions/linux-software-2/ffmpeg-compile-help-399651/)

gfem 01-04-2006 09:40 PM

ffmpeg compile help
 
I am compiling ffmpeg-0.4.9-pre1 and i get the following output, can anyone point me in the right direction i usually install from rpm, but I need it configured with --enable-faac.

make -C libavcodec all
make[1]: Entering directory `/home/gg/devel/ffmpeg-0.4.9-pre1/libavcodec'
gcc -O3 -g -Wall -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o common.o common.c
In file included from avcodec.h:14,
from common.c:28:
common.h:67: error: array type has incomplete element type
common.h:71: error: array type has incomplete element type
make[1]: *** [common.o] Error 1
make[1]: Leaving directory `/home/gg/devel/ffmpeg-0.4.9-pre1/libavcodec'
make: *** [lib] Error 2

dirk 01-04-2006 10:21 PM

try doing make -ik
dunno if it will work but its worth a try.

foo_bar_foo 01-04-2006 10:50 PM

that looks like an issue with gcc4
gcc4 took away some type casting extensions
i think get the newest cvs version
cvs -z9 -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg

they have made alot of changes to that section of that file then removed the file altogether in favor of a different utility setup

gfem 01-05-2006 10:37 AM

okay I downloaded the cvs version and tried again and got this......
I have faad2 and faad2-devel installed.

make -C libavutil all
make[1]: Entering directory `/home/gg/devel/ffmpeg/libavutil'
gcc -O3 -g -Wall -Wno-switch -Wdeclaration-after-statement -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o mathematics.o mathematics.c
gcc -O3 -g -Wall -Wno-switch -Wdeclaration-after-statement -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o integer.o integer.c
gcc -O3 -g -Wall -Wno-switch -Wdeclaration-after-statement -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o rational.o rational.c
gcc -O3 -g -Wall -Wno-switch -Wdeclaration-after-statement -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o intfloat_readwrite.o intfloat_readwrite.c
rm -f libavutil.a
ar rc libavutil.a mathematics.o integer.o rational.o intfloat_readwrite.o
ranlib libavutil.a
gcc -shared -Wl,-soname,libavutil.so.49 -Wl,--warn-common -rdynamic -o libavutil.so mathematics.o integer.o rational.o intfloat_readwrite.o -lm -lmp3lame -lfaac -lvorbis -lvorbisenc -ltheora -logg -lx264 -lxvidcore -lxvidcore -ldc1394_control -lraw1394 -lz -ldl -lpthread
/usr/bin/ld: cannot find -lfaac
collect2: ld returned 1 exit status
make[1]: *** [libavutil.so] Error 1
make[1]: Leaving directory `/home/gg/devel/ffmpeg/libavutil'
make: *** [lib] Error 2

gfem 01-06-2006 03:28 PM

figured it out. I was missing a devel-package. oops.


All times are GMT -5. The time now is 07:32 AM.