I got it working. I just commented out the following lines in
CMakeLists.txt and rebuilt G3D:
# add jpeg library on systems that need it
#IF (NOT JPEG_FOUND)
# SET (JPEG_LIBRARIES jpeg)
# SET (JPEG_INCLUDE_DIR ${G3D_SOURCE_DIR}/jpeg.lib/include)
# ADD_SUBDIRECTORY (jpeg.lib)
#ENDIF (NOT JPEG_FOUND)
So for whatever reason, CMake was not finding the libjpeg installation
and substituted its own copy of the headers. But when I ran my
application it found the original libjpeg and there was a mismatch.
Here's the output of ldd if you're still curious:
$ ldd build/linux-i686-g++4.3/g3dtestd
linux-gate.so.1 => (0xb7f2a000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7e0e000)
libavformat.so.52 => /usr/lib/i686/cmov/libavformat.so.52
(0xb7d6d000)
libavcodec.so.51 => /usr/lib/i686/cmov/libavcodec.so.51 (0xb7820000)
libavutil.so.49 => /usr/lib/i686/cmov/libavutil.so.49 (0xb7810000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0xb779f000)
libz.so.1 => /usr/lib/libz.so.1 (0xb7788000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0xb76f6000)
libGL.so.1 => /usr/lib/libGL.so.1 (0xb7653000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb763a000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb761a000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb75f4000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb7505000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb74df000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb74d0000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7372000)
libxcb-xlib.so.0 => /usr/lib/libxcb-xlib.so.0 (0xb736f000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7356000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7352000)
libgsm.so.1 => /usr/lib/libgsm.so.1 (0xb7344000)
libtheora.so.0 => /usr/lib/libtheora.so.0 (0xb72f9000)
libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0xb71ff000)
libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb71d5000)
libasound.so.2 => /usr/lib/libasound.so.2 (0xb710d000)
libdirectfb-1.0.so.0 => /usr/lib/libdirectfb-1.0.so.0 (0xb70a6000)
libfusion-1.0.so.0 => /usr/lib/libfusion-1.0.so.0 (0xb709d000)
libdirect-1.0.so.0 => /usr/lib/libdirect-1.0.so.0 (0xb7088000)
libGLcore.so.1 => /usr/lib/libGLcore.so.1 (0xb6311000)
libnvidia-tls.so.1 => /usr/lib/tls/libnvidia-tls.so.1 (0xb630f000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb62ff000)
/lib/ld-linux.so.2 (0xb7f10000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb62fc000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb62f7000)
libogg.so.0 => /usr/lib/libogg.so.0 (0xb62f1000)
librt.so.1 => /lib/tls/i686/cmov/librt.so.1 (0xb62e8000)
On Mar 16, 12:24 am, corey taylor <
corey.tay...@gmail.com> wrote:
> You wouldn't specify it with the G3D build, it would find the library
> headers on the system.
>
> We might have a problem when there are two versions of the library
> installed. We might not be checking for the 64-bit version first.
>
> Can you tell me where your libjpeg headers are? If you run ldd on the
> executable, you will probably see it linked with the 64-bit libjpeg
> which probably won't match where the headers are located.
>
> corey
>