Ask Your Question

dfs1962's profile - activity

2015-02-19 09:39:46 -0600 received badge  Self-Learner (source)
2015-02-19 09:37:48 -0600 answered a question undefined reference to jpeg-routing@LIBJPEG_6.2 in make

Both libraries had been installed to non-standard locations. Each had a specific location and a pointer location in ccmake. Both of those locations had to be cleared for all the image libraries installed in those non-traditional locations.

2015-02-11 15:54:59 -0600 received badge  Editor (source)
2015-02-11 15:52:10 -0600 asked a question 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 to `jpeg_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 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

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.