hey Y'all,
I just checked out a fresh CVS version of GEM and compile breaks (under linux at least) when compiling 'Controls/gemframebuffer.cpp' looking for GL_TEXTURE_RECTANGLE_EXT
a quick fix was to add: #include "Base/GemPixUtil.h" to 'Controls/gemframebuffer.h'
-august.
-------------------
http://aug.ment.org
'nother problem with linking as well.
for some reason, the configure script does not add links to needed libs from ffmpeg. I looked in configure.ac and it appears to just not be there.
so, when you load Gem in pd, you get lots of symbols undefined.
fix - link using these extra commands:
-lavformat -lavformat_pic -lavutil -lavutil_pic -lavcodec -lavcodec_pic -ldts
it should be in that order as well, otherwise you have this problem:
http://lists.zerezo.com/mplayer-dev-eng/msg00524.html
happy hacking -august.
august wrote:
'nother problem with linking as well.
for some reason, the configure script does not add links to needed libs from ffmpeg. I looked in configure.ac and it appears to just not be there.
so, when you load Gem in pd, you get lots of symbols undefined.
fix - link using these extra commands:
-lavformat -lavformat_pic -lavutil -lavutil_pic -lavcodec -lavcodec_pic -ldts
actually gem tries to find out which ldflags to use via pkg-config, <lib>-config and by simple trying to link against <lib>. this solution should make it very simple to add more libraries and don't have to worry about how to get the appropriate libraries (in Gem's configure.ac) however, it has several weaknesses, one of them is, that i don't know at all, how to deal with pic-libraries. (pkg-config doesn't provide a way at all how to do it, and ffmpeg-config needs a special flag (which does not conform to other <lib>-config scripts)
on which platform are you? (which distribution, which arch,..)
mfg.adr. IOhannes
IOhannes m zmoelnig say:
actually gem tries to find out which ldflags to use via pkg-config, <lib>-config and by simple trying to link against <lib>. this solution should make it very simple to add more libraries and don't have to worry about how to get the appropriate libraries (in Gem's configure.ac) however, it has several weaknesses, one of them is, that i don't know at all, how to deal with pic-libraries. (pkg-config doesn't provide a way at all how to do it, and ffmpeg-config needs a special flag (which does not conform to other <lib>-config scripts)
on which platform are you? (which distribution, which arch,..)
ubuntu linux, intel pII
output of 'ffmpeg-config --libs --cflags avcodec avformat': -I/usr/include/ffmpeg -lavcodec -lavutil -lavformat -lavcodec -lavutil -lvorbis -lvorbisenc -ltheora -logg -ldts -la52 -lraw1394 -ldc1394_control -lgsm -lz -lm
now that I think of it, I'm not sure if you really need the *_pic libs. that may work.
one problem however is that on debian based platforms, I think you can install libavformat and libavcodec without installing ffmpeg.
-august.
-------------------
http://aug.ment.org
august wrote:
hey Y'all,
I just checked out a fresh CVS version of GEM and compile breaks (under linux at least) when compiling 'Controls/gemframebuffer.cpp' looking for GL_TEXTURE_RECTANGLE_EXT
a quick fix was to add: #include "Base/GemPixUtil.h" to 'Controls/gemframebuffer.h'
thanks for the report. i noticed the same thing too a few days ago, but i was in big stress so i just deleted the gemframebuffer.{cpp,h} files. the best way (imo) is to move the GL-defines from GemPixUtil.h into GemGL.h which i will submit in a few seconds.
mfg.asdr IOhannes