[Ffmpeg-devel] compiling of ffmpeg.c fails on Solaris 10

may nothing may_241913
Tue Aug 15 16:10:21 CEST 2006


Hi, 

I'm trying to compile the latest CVS of ffmpeg on my Solaris box.
I'm using gcc 3.3.2 (Sparc)

I did a configure --enable-mp3lame --enable-libogg --enable-vorbis --enable-faad --enable-faac --enable-a52 --enable-dts --enable-pp --enable-sunmlib --enable-gpl --cc=gcc --make=gmake --disable-mmx --disable-v4l --disable-v4l2

and encountered no problems. Then fired up gmake

...

gmake[1]: Leaving directory `/space/ffmpeg/libpostproc'
gcc -L./libavformat -L./libavcodec -L./libavutil -rdynamic -export-dynamic -Wl,--as-needed -Wl,-rpath-link,/space/ffmpeg/libavcodec -Wl,-rpath-link,/space/ffmpeg/libavformat -Wl,-rpath-link,/space/ffmpeg/libavutil -g -o ffmpeg_g ffmpeg.o cmdutils.o -lavformat -lavcodec -lavutil -lm -lsocket -lnsl -lz -ldts -lmp3lame -lvorbis -lvorbisenc -logg -logg -lmlib -lfaac -lfaad
gcc: unrecognized option `-rdynamic'
/usr/ccs/bin/ld: warning: libm.so.1, needed by /usr/lib/libmlib.so, may conflict with libm.so.2
ffmpeg.o: In function `opt_default':
/space/ffmpeg/ffmpeg.c:3942: undefined reference to `ffm_nopts'
/space/ffmpeg/ffmpeg.c:3942: undefined reference to `ffm_nopts'
./libavformat/libavformat.a(rtp.o): In function `rtp_parse_open':
/space/ffmpeg/libavformat/rtp.c:287: undefined reference to `mpegts_parse_open'
./libavformat/libavformat.a(rtp.o): In function `rtp_parse_packet':
/space/ffmpeg/libavformat/rtp.c:419: undefined reference to `rtp_parse_packet'
/space/ffmpeg/libavformat/rtp.c:377: undefined reference to `mpegts_parse_packet'
./libavformat/libavformat.a(rtp.o): In function `rtp_parse_close':
/space/ffmpeg/libavformat/rtp.c:513: undefined reference to `mpegts_parse_close'
collect2: ld returned 1 exit status
gmake: *** [ffmpeg_g] Error 1


First of all, ffm_nopts seems not to be a part of avformat.h anymore (which is included at the beginning of ffmpeg.c). A "grep" for it showed up nothing. But it's still present in the ffm.c

Second the "mpegts_parse_packet" ist part (and present) in the mpegts.h:   MpegTSContext *mpegts_parse_open(AVFormatContext *s);
As well as mpegts_parse_close and mpegts_parse_packet.
"rtp_parse_packet" is part of rtc.c

It doesn't seem that the mpegts.h gets not included ... so what's wrong ??

Any help would be highly appreciated !   ;->

TIA
Martin





More information about the ffmpeg-devel mailing list