Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Opencv error

Hello There i have opencv in my ubuntu platform .Today i started it and comile the programme but it tells many error while compiling it. Here it is sachin@sachin-desktop:~/Desktop$ g++ pkg-config --cflags opencv haugh.cpp -o haugh pkg-config --libs opencv /usr/bin/ld: warning: libjpeg.so.62, needed by /usr/local/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link) /usr/lib/libtiff.so.4: undefined reference to jpeg_read_raw_data' /usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_resync_to_restart' /usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_std_error' /usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_CreateDecompress' /usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_start_compress' /usr/lib/libjasper.so.1: undefined reference tojpeg_default_colorspace' /usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_set_quality' /usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_read_header' /usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_alloc_huff_table' /usr/lib/libtiff.so.4: undefined reference tojpeg_write_raw_data' /usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_destroy_decompress' /usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_stdio_dest' /usr/lib/libtiff.so.4: undefined reference to jpeg_destroy' /usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_calc_output_dimensions' /usr/lib/libtiff.so.4: undefined reference to jpeg_abort' /usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_finish_compress' /usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_destroy_compress' /usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_finish_decompress' /usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_set_defaults' /usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_start_decompress' /usr/lib/libtiff.so.4: undefined reference to jpeg_suppress_tables' /usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_write_scanlines' /usr/lib/libtiff.so.4: undefined reference to jpeg_set_colorspace' /usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_CreateCompress' /usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_read_scanlines' /usr/lib/libtiff.so.4: undefined reference tojpeg_write_tables' /usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_simple_progression' /usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_stdio_src' collect2: ld returned 1 exit status

click to hide/show revision 2
No.2 Revision

updated 2016-08-16 01:52:33 -0600

berak gravatar image

Opencv error

Hello There i have opencv in my ubuntu platform .Today i started it and comile the programme but it tells many error while compiling it. Here it is is

sachin@sachin-desktop:~/Desktop$ g++ pkg-config `pkg-config --cflags opencv opencv` haugh.cpp -o haugh `pkg-config --libs opencv`


pkg-config --libs opencv /usr/bin/ld: warning: libjpeg.so.62, needed by /usr/local/lib/libopencv_imgcodecs.so, not found (try using -rpath or -rpath-link)
/usr/lib/libtiff.so.4: undefined reference to jpeg_read_raw_data'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_resync_to_restart'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_std_error'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_CreateDecompress'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_start_compress'
`jpeg_read_raw_data'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_resync_to_restart'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_std_error'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_CreateDecompress'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_start_compress'
/usr/lib/libjasper.so.1: undefined reference tojpeg_default_colorspace'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_set_quality'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_read_header'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_alloc_huff_table'
/usr/lib/libtiff.so.4: undefined reference tojpeg_write_raw_data'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_destroy_decompress'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_stdio_dest'
/usr/lib/libtiff.so.4: undefined reference to jpeg_destroy'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_calc_output_dimensions'
/usr/lib/libtiff.so.4: undefined reference to jpeg_abort'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_finish_compress'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_destroy_compress'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_finish_decompress'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_set_defaults'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_start_decompress'
/usr/lib/libtiff.so.4: undefined reference to jpeg_suppress_tables'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_write_scanlines'
/usr/lib/libtiff.so.4: undefined reference to jpeg_set_colorspace'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_CreateCompress'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_read_scanlines'
/usr/lib/libtiff.so.4: undefined reference tojpeg_write_tables'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to jpeg_simple_progression'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference tojpeg_stdio_src'
to `jpeg_default_colorspace'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_set_quality'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_read_header'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_alloc_huff_table'
/usr/lib/libtiff.so.4: undefined reference to `jpeg_write_raw_data'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_destroy_decompress'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_stdio_dest'
/usr/lib/libtiff.so.4: undefined reference to `jpeg_destroy'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_calc_output_dimensions'
/usr/lib/libtiff.so.4: undefined reference to `jpeg_abort'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_finish_compress'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_destroy_compress'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_finish_decompress'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_set_defaults'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_start_decompress'
/usr/lib/libtiff.so.4: undefined reference to `jpeg_suppress_tables'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_write_scanlines'
/usr/lib/libtiff.so.4: undefined reference to `jpeg_set_colorspace'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_CreateCompress'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_read_scanlines'
/usr/lib/libtiff.so.4: undefined reference to `jpeg_write_tables'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_simple_progression'
/usr/local/lib/libopencv_imgcodecs.so: undefined reference to `jpeg_stdio_src'
collect2: ld returned 1 exit status

status