undefined references for devil/tiff/jpeg

undefined references for devil/tiff/jpeg

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
amazon10x
Posts: 2
Joined: 08 Nov 2008, 20:53

undefined references for devil/tiff/jpeg

Post by amazon10x »

I'm trying to build spring from SVN. After running make, i get to "Linking CXX executable spring" followed by a bunch of errors

Code: Select all

/usr/local/lib/libIL.so: undefined reference to `cmsOpenProfileFromFile'
/usr/local/lib/libIL.so: undefined reference to `TIFFReadRGBAImage'
/usr/local/lib/libIL.so: undefined reference to `TIFFSetDirectory'
/usr/local/lib/libIL.so: undefined reference to `TIFFReadEncodedStrip'
/usr/local/lib/libIL.so: undefined reference to `cmsDoTransform'
/usr/local/lib/libIL.so: undefined reference to `jpeg_read_scanlines'
/usr/local/lib/libIL.so: undefined reference to `jpeg_set_defaults'
/usr/local/lib/libIL.so: undefined reference to `jpeg_write_scanlines'
/usr/local/lib/libIL.so: undefined reference to `mng_setcb_errorproc'
/usr/local/lib/libIL.so: undefined reference to `jpeg_finish_compress'
/usr/local/lib/libIL.so: undefined reference to `mng_set_canvasstyle'
/usr/local/lib/libIL.so: undefined reference to `ilLoadExr'
/usr/local/lib/libIL.so: undefined reference to `mng_setcb_refresh'
/usr/local/lib/libIL.so: undefined reference to `TIFFGetField'
/usr/local/lib/libIL.so: undefined reference to `mng_setcb_gettickcount'
/usr/local/lib/libIL.so: undefined reference to `TIFFScanlineSize'
/usr/local/lib/libIL.so: undefined reference to `mng_setcb_settimer'
/usr/local/lib/libIL.so: undefined reference to `TIFFSetField'
/usr/local/lib/libIL.so: undefined reference to `mng_set_usebkgd'
/usr/local/lib/libIL.so: undefined reference to `TIFFClientOpen'
/usr/local/lib/libIL.so: undefined reference to `TIFFStripSize'
/usr/local/lib/libIL.so: undefined reference to `jpeg_set_quality'
/usr/local/lib/libIL.so: undefined reference to `TIFFSetWarningHandler'
/usr/local/lib/libIL.so: undefined reference to `jpeg_resync_to_restart'
/usr/local/lib/libIL.so: undefined reference to `TIFFWriteScanline'
/usr/local/lib/libIL.so: undefined reference to `jpeg_destroy_decompress'
/usr/local/lib/libIL.so: undefined reference to `TIFFOpen'
/usr/local/lib/libIL.so: undefined reference to `cmsDeleteTransform'
/usr/local/lib/libIL.so: undefined reference to `jpeg_CreateDecompress'
/usr/local/lib/libIL.so: undefined reference to `jpeg_read_header'
/usr/local/lib/libIL.so: undefined reference to `TIFFSetErrorHandler'
/usr/local/lib/libIL.so: undefined reference to `TIFFComputeStrip'
/usr/local/lib/libIL.so: undefined reference to `mng_setcb_openstream'
/usr/local/lib/libIL.so: undefined reference to `jpeg_destroy_compress'
/usr/local/lib/libIL.so: undefined reference to `TIFFReadDirectory'
/usr/local/lib/libIL.so: undefined reference to `TIFFClose'
/usr/local/lib/libIL.so: undefined reference to `TIFFGetFieldDefaulted'
/usr/local/lib/libIL.so: undefined reference to `jpeg_finish_decompress'
/usr/local/lib/libIL.so: undefined reference to `jpeg_start_decompress'
/usr/local/lib/libIL.so: undefined reference to `mng_setcb_closestream'
/usr/local/lib/libIL.so: undefined reference to `cmsCloseProfile'
/usr/local/lib/libIL.so: undefined reference to `mng_get_alphadepth'
/usr/local/lib/libIL.so: undefined reference to `mng_setcb_getcanvasline'
/usr/local/lib/libIL.so: undefined reference to `cmsCreateTransform'
/usr/local/lib/libIL.so: undefined reference to `jpeg_start_compress'
/usr/local/lib/libIL.so: undefined reference to `jpeg_CreateCompress'
/usr/local/lib/libIL.so: undefined reference to `mng_setcb_readdata'
/usr/local/lib/libIL.so: undefined reference to `mng_display'
/usr/local/lib/libIL.so: undefined reference to `mng_setcb_processheader'
/usr/local/lib/libIL.so: undefined reference to `jpeg_destroy'
/usr/local/lib/libIL.so: undefined reference to `mng_read'
/usr/local/lib/libIL.so: undefined reference to `mng_initialize'
/usr/local/lib/libIL.so: undefined reference to `jpeg_std_error'
collect2: ld returned 1 exit status
make[2]: *** [rts/spring] Error 1
make[1]: *** [rts/CMakeFiles/spring.dir/all] Error 2
make: *** [all] Error 2
I'm not sure if I need to rebuild DevIL or if there's an issue with the spring build. Any ideas?
amazon10x
Posts: 2
Joined: 08 Nov 2008, 20:53

Re: undefined references for devil/tiff/jpeg

Post by amazon10x »

Okay, I was able to fix it. I linked in ljpeg, ltiff, and lmng. I also disabled EXR support in DevIL. It builds properly now.
Post Reply

Return to “Engine”