bugGnash - The GNU Flash player - Bugs: bug #19887, regression: ffmpeg linking problems

 
 

bug #19887: regression: ffmpeg linking problems

Submitted by:  Sandro Santilli <strk>
Submitted on:  Thu 17 May 2007 12:58:15 PM UTC  
 
Category: buildSeverity: 5 - Blocker
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: Sandro Santilli <strk>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 17 May 2007 07:06:19 PM UTC, comment #1:

Turns out it's related to explicit -L/usr/lib in BOOST_LIBS and X11_LIBS. Now fixed.

Sandro Santilli <strk>
Project MemberIn charge of this item.
Thu 17 May 2007 12:58:15 PM UTC, original submission:

FFMPEG flags are: -I/extra/ffmpeg-20070409/include
FFMPEG libs are: -L/extra/ffmpeg-20070409/lib -lavcodec -ldts -lvorbisenc -lvorbis -lm -logg -lavformat -lavcodec -ldts -lz -ldl -lvorbis -lm -ltheora -lavutil -logg -lavutil -ltheora -logg -ldc1394_control

ogg, dts, vorbis, m, avutil are multiply listed.

"make" completes, "make checK" fails under testsuite/server.
Note that testsuite/server files only link against libgnashserver.la, libgnashbase.la and libgnashamf.la.
I'd think libgnashserver.la would bring FFMPEG deps in, but
it doesn't seem to work:

g++ -g -O2 -pg -pthread -march=pentiumpro -W -Wall -Wcast-align -Wcast-qual -Wpointer-arith -Wreturn-type -Wl,--as-needed -o PropertyListTest PropertyListTest.o ../../server/.libs/libgnashserver.a -L/usr/local/lib -L/usr/lib -L/extra/ffmpeg-20070409/lib /home/strk/src/gnash/build/head/gtk_agg_ffmpeg/libamf/.libs/libgnashamf.a /home/strk/src/gnash/build/head/gtk_agg_ffmpeg/libgeometry/.libs/libgnashgeo.a /usr/lib/libxml2.so ../../libbase/.libs/libgnashbase.a ../../libamf/.libs/libgnashamf.a /home/strk/src/gnash/build/head/gtk_agg_ffmpeg/libbase/.libs/libgnashbase.a /usr/lib/libjpeg.so /usr/local/lib/libcurl.so /usr/lib/libidn.so -lssl -lcrypto /home/strk/src/gnash/build/head/gtk_agg_ffmpeg/libbase/.libs/libltdl.a -lgsm -lboost_date_time -lboost_thread -lpthread /usr/lib/libvorbisenc.so -lavformat -lavcodec -ldts -lz -ldl /usr/lib/libvorbis.so -lavutil /usr/lib/libtheora.so /usr/lib/libogg.so -ldc1394_control -lrt -lX11 -lXi -lm
../../server/.libs/libgnashserver.a(NetStreamFfmpeg.o): In function `gnash::NetStreamFfmpeg::read_frame()':/home/strk/src/gnash/gnash-head/server/asobj/NetStreamFfmpeg.cpp:772: undefined reference to `avcodec_decode_audio2'
../../server/.libs/libgnashserver.a(SoundFfmpeg.o): In function `gnash::SoundFfmpeg::getAudio(void, unsigned char, int)':/home/strk/src/gnash/gnash-head/server/asobj/SoundFfmpeg.cpp:265: undefined reference to `avcodec_decode_audio2'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init': undefined reference to `vorbis_encode_init_vbr'
/usr/lib/libavcodec.a(oggvorbis.o): In function `oggvorbis_encode_init': undefined reference to `vorbis_encode_init'
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_init': undefined reference to `gsm_create'
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_close': undefined reference to `gsm_destroy'
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_encode_frame': undefined reference to `gsm_encode'
/usr/lib/libavcodec.a(libgsm.o): In function `libgsm_decode_frame': undefined reference to `gsm_decode'
collect2: ld returned 1 exit status

Sandro Santilli <strk>
Project MemberIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by strk (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 17 May 2007 07:06:19 PM UTCstrkStatusNone=>Fixed
      Assigned toNone=>strk
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1