cannot find -lopencv_imgcodecs
Hi,
i have compiled opencv-2.4.13 using following options:
cmake -DCMAKE_INSTALL_PREFIX:PATH="/home/apps/LIBOPENCV/2/4.13/gnu" -DPNG_INCLUDE_DIR="${PNG_ROOT}/include" -DPNG_LIBRARY="${PNG_ROOT}/lib/libpng.a" -DZLIB_LIBRARY="${ZLIB_ROOT}/lib/libz.a" -DZLIB_INCLUDE_DIR="${ZLIB_ROOT}/include" -DJPEG_LIBRARY="${JPEG_ROOT}/lib/libjpeg.a" -DJPEG_INCLUDE_DIR="${JPEG_ROOT}/include" -DCMAKE_EXE_LINKER_FLAGS="${JPEG_ROOT}/lib/libjpeg.a ${PNG_ROOT}/lib/libpng.a ${ZLIB_ROOT}/lib/libz.a"
cmake
-DCMAKE_INSTALL_PREFIX:PATH="/home/apps/LIBOPENCV/2/4.13/gnu"
-DPNG_INCLUDE_DIR="${PNG_ROOT}/include"
-DPNG_LIBRARY="${PNG_ROOT}/lib/libpng.a"
-DZLIB_LIBRARY="${ZLIB_ROOT}/lib/libz.a"
-DZLIB_INCLUDE_DIR="${ZLIB_ROOT}/include"
-DJPEG_LIBRARY="${JPEG_ROOT}/lib/libjpeg.a"
-DJPEG_INCLUDE_DIR="${JPEG_ROOT}/include"
-DCMAKE_EXE_LINKER_FLAGS="${JPEG_ROOT}/lib/libjpeg.a
${PNG_ROOT}/lib/libpng.a
${ZLIB_ROOT}/lib/libz.a"
-DPYTHON_EXECUTABLE="/home/soft/python-2.7.10/bin/python"
-DPYTHON_INCLUDE_DIRS="/home/soft/python-2.7.10/include" -DPYTHON_LIBRARY="/home/soft/python-2.7.10/lib/libpython2.7.a" -DPYTHON_PACKAGES_PATH="/home/soft/python-2.7.10/lib/python2.7/site-packages" -DPYTHON_INCLUDE_DIRS="/home/soft/python-2.7.10/include"
-DPYTHON_LIBRARY="/home/soft/python-2.7.10/lib/libpython2.7.a"
-DPYTHON_PACKAGES_PATH="/home/soft/python-2.7.10/lib/python2.7/site-packages"
-DPYTHON_NUMPY_INCLUDE_DIR="/home/soft/python-2.7.10/lib/python2.7/site-packages/numpy/core/include/" -DCMAKE_SKIP_RPATH:BOOL="YES"
-DJASPER_LIBRARIES="${JASPER_ROOT}/lib/libjasper.a" -DJASPER_INCLUDE_DIR="${JASPER_ROOT}/include" -DTIFF_LIBRARIES="${TIFF_ROOT}/lib/libtiff.a" -DTIFF_LIBRARY="${TIFF_ROOT}/lib/libtiff.a" -DTIFF_INCLUDE_DIR="${TIFF_ROOT}/include" -DJASPER_LIBRARIES="${JASPER_ROOT}/lib/libjasper.a"
-DJASPER_INCLUDE_DIR="${JASPER_ROOT}/include"
-DTIFF_LIBRARIES="${TIFF_ROOT}/lib/libtiff.a"
-DTIFF_LIBRARY="${TIFF_ROOT}/lib/libtiff.a"
-DTIFF_INCLUDE_DIR="${TIFF_ROOT}/include"
.. 2>&1|tee cmake_logs.txt
but this make did not generate opencv_imgcodecs library needed by my application, i have:
cv2.so
libopencv_flann.so.2.4.13
libopencv_ml.so.2.4.13
libopencv_stitching.so.2.4.13
libopencv_calib3d.so
libopencv_gpu.so
libopencv_nonfree.so
libopencv_superres.so
libopencv_calib3d.so.2.4
libopencv_gpu.so.2.4
libopencv_nonfree.so.2.4
libopencv_superres.so.2.4
libopencv_calib3d.so.2.4.13
libopencv_gpu.so.2.4.13
libopencv_nonfree.so.2.4.13
libopencv_superres.so.2.4.13
libopencv_contrib.so
libopencv_highgui.so
libopencv_objdetect.so
libopencv_ts.a
libopencv_contrib.so.2.4
libopencv_highgui.so.2.4
libopencv_objdetect.so.2.4
libopencv_video.so
libopencv_contrib.so.2.4.13
libopencv_highgui.so.2.4.13
libopencv_objdetect.so.2.4.13
libopencv_videostab.so
libopencv_core.so
libopencv_imgproc.so
libopencv_ocl.so
libopencv_videostab.so.2.4
libopencv_core.so.2.4
libopencv_imgproc.so.2.4
libopencv_ocl.so.2.4
libopencv_videostab.so.2.4.13
libopencv_core.so.2.4.13
libopencv_imgproc.so.2.4.13
libopencv_ocl.so.2.4.13
libopencv_video.so.2.4
libopencv_features2d.so
libopencv_legacy.so
libopencv_photo.so
libopencv_video.so.2.4.13
libopencv_features2d.so.2.4
libopencv_legacy.so.2.4
libopencv_photo.so.2.4
pkgconfig
libopencv_features2d.so.2.4.13
libopencv_legacy.so.2.4.13
libopencv_photo.so.2.4.13
python2.7 libopencv_flann.so
libopencv_ml.so
libopencv_stitching.so
libopencv_flann.so.2.4
libopencv_ml.so.2.4
libopencv_stitching.so.2.4
am i missing some options here ? or i need to upgrade the version?
Any help/hint will be very useful.