Ask Your Question

alealv's profile - activity

2017-12-05 09:50:47 -0500 asked a question Linking error with gflags

Linking error with gflags Hi, after successfully installing OpenCV (with gflags included). I'm experimenting a linking e

2014-11-03 20:31:05 -0500 answered a question cmake linking error OpenCV_FOUND to FALSE UBUNTU 13.04

Hi, I'm having exactly the same error, but I have opencv-2.4.10


-- OpenCV ARCH: -- OpenCV RUNTIME: -- OpenCV STATIC: OFF CMake Warning at /usr/local/opencv-2.4.10/cmake/OpenCVConfig.cmake:161 (message): Found OpenCV Windows Pack but it has not binaries compatible with your configuration.

You should manually point CMake variable OpenCV_DIR to your build of OpenCV library. Call Stack (most recent call first): CMakeLists.txt:9 (find_package)

CMake Error at CMakeLists.txt:9 (find_package): Found package configuration file:

/usr/local/opencv-2.4.10/cmake/OpenCVConfig.cmake

but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be NOT FOUND.

-- Configuring incomplete, errors occurred!`


But creating the FindOpenCV.cmake it's not working for me. When I include it I get:


`-- OpenCV ARCH: -- OpenCV RUNTIME: -- OpenCV STATIC: OFF CMake Warning at /usr/local/opencv-2.4.10/cmake/OpenCVConfig.cmake:161 (message): Found OpenCV Windows Pack but it has not binaries compatible with your configuration.

You should manually point CMake variable OpenCV_DIR to your build of OpenCV library. Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindOpenCV.cmake:103 (include) CMakeLists.txt:9 (find_package)

CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message): Could NOT find OpenCV (missing: OpenCV_LIBS) Call Stack (most recent call first): /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE) /usr/share/cmake-2.8/Modules/FindOpenCV.cmake:297 (find_package_handle_standard_args) CMakeLists.txt:9 (find_package)

-- Configuring incomplete, errors occurred!`


Even though I get

$ pkg-config --libs opencv/usr/local/opencv-2.4.10/lib/libopencv_calib3d.so /usr/local/opencv-2.4.10/lib/libopencv_contrib.so /usr/local/opencv-2.4.10/lib/libopencv_core.so /usr/local/opencv-2.4.10/lib/libopencv_features2d.so /usr/local/opencv-2.4.10/lib/libopencv_flann.so /usr/local/opencv-2.4.10/lib/libopencv_gpu.so /usr/local/opencv-2.4.10/lib/libopencv_highgui.so /usr/local/opencv-2.4.10/lib/libopencv_imgproc.so /usr/local/opencv-2.4.10/lib/libopencv_legacy.so /usr/local/opencv-2.4.10/lib/libopencv_ml.so /usr/local/opencv-2.4.10/lib/libopencv_nonfree.so /usr/local/opencv-2.4.10/lib/libopencv_objdetect.so /usr/local/opencv-2.4.10/lib/libopencv_ocl.so /usr/local/opencv-2.4.10/lib/libopencv_photo.so /usr/local/opencv-2.4.10/lib/libopencv_stitching.so /usr/local/opencv-2.4.10/lib/libopencv_superres.so /usr/local/opencv-2.4.10/lib/libopencv_ts.a /usr/local/opencv-2.4.10/lib/libopencv_video.so /usr/local/opencv-2.4.10/lib/libopencv_videostab.so /usr/local/opencv-2.4.10/lib/libopencv_viz.so /usr/lib/x86_64-linux-gnu/libXext.so /usr/lib/x86_64-linux-gnu/libX11.so /usr/lib/x86_64-linux-gnu/libICE.so /usr/lib/x86_64-linux-gnu/libSM.so /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libGLU.so -ltbb -lrt -lpthread -lm -ldl

and

$ pkg-config --cflags opencv -I/usr/local/opencv-2.4.10/include/opencv -I/usr/local/opencv-2.4.10/include

Does anyone knows what it's happening?