Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

undefined reference to jpeg-routing@LIBJPEG_6.2 in make

I'm attempting to install opencv-2.4.10 from source onto a linux machine.

The make statement produces . . . [ 26%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_stat.cpp.o Linking CXX executable ../../bin/opencv_perf_core /usr/lib64/libtiff.so.3: undefined reference to jpeg_finish_decompress@LIBJPEG_6.2' /usr/lib64/libtiff.so.3: undefined reference tojpeg_set_defaults@LIBJPEG_6.2' /usr/lib64/libtiff.so.3: undefined reference to jpeg_CreateDecompress@LIBJPEG_6.2' . . . /usr/lib64/libtiff.so.3: undefined reference tojpeg_abort@LIBJPEG_6.2' /usr/lib64/libtiff.so.3: undefined reference to jpeg_suppress_tables@LIBJPEG_6.2' /usr/lib64/libtiff.so.3: undefined reference tojpeg_read_raw_data@LIBJPEG_6.2' collect2: error: ld returned 1 exit status make[2]: * [bin/opencv_perf_core] Error 1 make[1]: [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2 make: ** [all] Error 2

Even when I delete and restore the directory and explicitly tell cmake to produce both the tiff and the jpeg libraries, I manage to get the same error.

undefined reference to jpeg-routing@LIBJPEG_6.2 in make

I'm attempting to install opencv-2.4.10 from source onto a linux machine.

The make statement produces

. . .

...

[ 26%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_stat.cpp.o modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_stat.cpp.o

Linking CXX executable ../../bin/opencv_perf_core ../../bin/opencv_perf_core

/usr/lib64/libtiff.so.3: undefined reference to jpeg_finish_decompress@LIBJPEG_6.2' /usr/lib64/libtiff.so.3: undefined reference tojpeg_set_defaults@LIBJPEG_6.2' `jpeg_finish_decompress@LIBJPEG_6.2'

/usr/lib64/libtiff.so.3: undefined reference to jpeg_CreateDecompress@LIBJPEG_6.2' . . . /usr/lib64/libtiff.so.3: undefined reference tojpeg_abort@LIBJPEG_6.2' `jpeg_set_defaults@LIBJPEG_6.2'

/usr/lib64/libtiff.so.3: undefined reference to jpeg_suppress_tables@LIBJPEG_6.2' `jpeg_CreateDecompress@LIBJPEG_6.2'

...

/usr/lib64/libtiff.so.3: undefined reference tojpeg_read_raw_data@LIBJPEG_6.2' to `jpeg_abort@LIBJPEG_6.2'

/usr/lib64/libtiff.so.3: undefined reference to `jpeg_suppress_tables@LIBJPEG_6.2'

/usr/lib64/libtiff.so.3: undefined reference to `jpeg_read_raw_data@LIBJPEG_6.2'

collect2: error: ld returned 1 exit status status

make[2]: * * [bin/opencv_perf_core] Error 1 1

make[1]: * [modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2 2

make: ** [all] Error 2

Even when I delete and restore the directory and explicitly tell cmake to produce both the tiff and the jpeg libraries, I manage to get the same error.