Menu

link issue : BZ2

user
2008-08-15
2013-05-09
  • Lieven de Cock

    Lieven de Cock - 2008-08-15

    In an application I have that can play back mpeg or avi files, I did the upgrade from FOBS 0.4.1 to 0.4.2. Unfortunately the program no longer links, some unresolved symbols.

    /home/killerbot/Projects/fobs-0.4.2/ffmpeg/libavformat/matroskadec.c:2905: undefined reference to `BZ2_bzDecompressInit'
    /home/killerbot/Projects/fobs-0.4.2/ffmpeg/libavformat/matroskadec.c:2914: undefined reference to `BZ2_bzDecompress'
    /home/killerbot/Projects/fobs-0.4.2/ffmpeg/libavformat/matroskadec.c:2917: undefined reference to `BZ2_bzDecompressEnd'

    My application used to and still links with :

                <Add library="../fobs-0.4.2/dist/lib/libfobscore.a" />
                <Add library="../fobs-0.4.2/external/lib/libavformat.a" />
                <Add library="../fobs-0.4.2/external/lib/libavcodec.a" />
                <Add library="../fobs-0.4.2/external/lib/libavutil.a" />

    As a test I tried to ad also the libavdevice, but that doesn't help.

    Anyone any idea what else I need ? There's nothing else that the external/lib brings from ffmpeg. I suspect that I will have to build ffmpeg in a different way as described in the fobs docs (extra params) ??

    Many thanks,
    Lieven

     
    • Jose San Pedro

      Jose San Pedro - 2008-08-15

      Hi,

      try adding -lbz2 to the link.

      Anyway, you should have a look at your lib/pkgconfig/libavformat.pc file (and other files in this same folder). The line starting with "Libs: " tells you the parameters you have to use to link to libavformat/libavcodec/etc.

      Hope this helps.

      Cheers!

      Jose San Pedro

       
    • Lieven de Cock

      Lieven de Cock - 2008-08-15

      Thanks, that did it.

      If possible I would like to point your attention to another long standing problem. It is discussed in 'http://sourceforge.net/forum/forum.php?thread_id=1439825&forum_id=374876/&abmode=1'

      This issue still stands, and still can be solved by your suggestion made back in the days :
      By changing :
          if(isVideoPresent()) res = ::abs(t2-t1) <= 1000.0/getFrameRate();

      to
          if(isVideoPresent()) res = ::abs(t2-t1) <= 500.0/getFrameRate();

      Is there a reason not to make this fix official in the sources ??

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.