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'
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following 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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 ??
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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 ??