Linker Issues on Ubuntu 10.10

24 views
Skip to first unread message

David Pitchford

unread,
Feb 2, 2012, 4:17:59 PM2/2/12
to G3D Users
I managed to get G3D 8.01 built on Ubuntu 10.10. When I go to one of
the sample projects (like starter) and run icompile, I get a linker
error that a few other users seem to have gotten. It seems like it's
linking the dependencies in the wrong order, but I have no idea how to
correct it or what is really going on with the dependencies. Here is
the result from running icompile with verbosity level 2.

david@Arv:~/Downloads/G3D/samples/starter$ icompile --verbosity 2
getconf LFS_CFLAGS

Data files are up to date
_______________________________________________________________________

_______________________________________________________________________

Building starterd
Computing statistics...
Done computing statistics.
Computing dependencies
/home/david/Downloads/G3D/samples/starter/source/App.cpp
/home/david/Downloads/G3D/samples/starter/source/Scene.cpp

Linking
g++-4.4 .ice-tmp/starter/linux-i686-g++4.4/DEBUG/source/App.o .ice-tmp/
starter/linux-i686-g++4.4/DEBUG/source/Scene.o -march=i686 -
mtune=nocona -msse3 -lX11 -lGLG3Dd -lavformat -lavcodec -lavutil -lGLU
-lG3Dd -lzip -lz -lSDL -lGL -lpthread -ljpeg -lpng -o build/linux-i686-
g++4.4/starterd
//usr/local/lib/libjpeg.a(jmemansi.o): In function
`jpeg_open_backing_store':
jmemansi.c:(.text+0x60): warning: the use of `tempnam' is dangerous,
better use `mkstemp'
//usr/local/lib/libGLG3Dd.a(VideoOutput.o): In function
`G3D::VideoOutput::convertFrame(unsigned char*, G3D::ImageFormat
const*, bool)':
/home/david/Downloads/G3D/GLG3D.lib/source/VideoOutput.cpp:458:
undefined reference to `img_convert'

I installed it using the command

./buildg3d --install /usr/local update

per the instructions.

Corey Taylor

unread,
Feb 3, 2012, 2:04:19 PM2/3/12
to g3d-...@googlegroups.com
I believe that's an issue with library path ordering.  That looks like you have a newer "released" version of FFmpeg installed on your system.  This started to happen after ffmpeg made 0.5+ releases.
 
I'm not sure when I addressed this or if it corrects your situtation, but I'll take a look this weekend.
 
I'd check for libavformat/libavfilter/libavcodec/libswscale libraries in your lib/ directories.  If they are there, try disabling them temporarily and building again.
 
corey

Corey Taylor

unread,
Feb 3, 2012, 6:34:30 PM2/3/12
to g3d-...@googlegroups.com
I wanted to note that G3D 9 is compatible with released versions of ffmpeg 0.6 and 0.7 and doesn't use the deprecated img_convert function anymore.  ffmpeg 0.8 and 0.9 contain API changes that haven't been evaluated yet.
 
corey

Reply all
Reply to author
Forward
0 new messages