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 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 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