missing JPEG::

George Talusan george at convolve.ca
Mon Dec 4 18:49:22 PST 2006


I get the following compilation error with a git snapshot from today:

/bin/bash ../libtool --tag=CXX --mode=link g++  -g -O2   -o thumb
-L../lib -static thumb.o ../lib/libopenraw.la -lstdc++ -ljpeg 
g++ -g -O2 -o thumb thumb.o
-L/home/george/Projects/libopenraw/lib ../lib/.libs/libopenraw.a -lstdc
++ /usr/lib/libjpeg.so
../lib/.libs/libopenraw.a(jfifcontainer.o): In function
`OpenRaw::Internals::JFIFContainer::_loadHeader()':
/home/george/Projects/libopenraw/lib/jfifcontainer.cpp:102: undefined
reference to `JPEG::jpeg_read_header(JPEG::jpeg_decompress_struct*,
int)'
/home/george/Projects/libopenraw/lib/jfifcontainer.cpp:106: undefined
reference to
`JPEG::jpeg_calc_output_dimensions(JPEG::jpeg_decompress_struct*)'
../lib/.libs/libopenraw.a(jfifcontainer.o): In function
`~JFIFContainer':
/home/george/Projects/libopenraw/lib/jfifcontainer.cpp:86: undefined
reference to
`JPEG::jpeg_destroy_decompress(JPEG::jpeg_decompress_struct*)'
/home/george/Projects/libopenraw/lib/jfifcontainer.cpp:86: undefined
reference to
`JPEG::jpeg_destroy_decompress(JPEG::jpeg_decompress_struct*)'
/home/george/Projects/libopenraw/lib/jfifcontainer.cpp:86: undefined
reference to
`JPEG::jpeg_destroy_decompress(JPEG::jpeg_decompress_struct*)'
../lib/.libs/libopenraw.a(jfifcontainer.o): In function `JFIFContainer':
/home/george/Projects/libopenraw/lib/jfifcontainer.cpp:60: undefined
reference to `JPEG::jpeg_std_error(JPEG::jpeg_error_mgr*)'
/home/george/Projects/libopenraw/lib/jfifcontainer.cpp:61: undefined
reference to `JPEG::jpeg_CreateDecompress(JPEG::jpeg_decompress_struct*,
int, unsigned int)'
/home/george/Projects/libopenraw/lib/jfifcontainer.cpp:73: undefined
reference to
`JPEG::jpeg_resync_to_restart(JPEG::jpeg_decompress_struct*, int)'
/home/george/Projects/libopenraw/lib/jfifcontainer.cpp:60: undefined
reference to `JPEG::jpeg_std_error(JPEG::jpeg_error_mgr*)'
/home/george/Projects/libopenraw/lib/jfifcontainer.cpp:61: undefined
reference to `JPEG::jpeg_CreateDecompress(JPEG::jpeg_decompress_struct*,
int, unsigned int)'
/home/george/Projects/libopenraw/lib/jfifcontainer.cpp:73: undefined
reference to
`JPEG::jpeg_resync_to_restart(JPEG::jpeg_decompress_struct*, int)'
collect2: ld returned 1 exit status
make: *** [thumb] Error 1

This is just the demo directory however the library compiles correctly.
I've tried linking gnome-raw-thumbnailer against libopenraw however it
produces the same error as above even though I'm passing -ljpeg to gcc.




More information about the Libopenraw-dev mailing list