Ask Your Question
0

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

asked 2015-02-11 15:43:09 -0600

dfs1962 gravatar image

updated 2015-02-11 15:54:59 -0600

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-02-19 09:37:48 -0600

dfs1962 gravatar image

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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-02-11 15:43:09 -0600

Seen: 1,808 times

Last updated: Feb 19 '15