Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCV linking error #51

Open
vipghn4 opened this issue Nov 21, 2018 · 0 comments
Open

OpenCV linking error #51

vipghn4 opened this issue Nov 21, 2018 · 0 comments

Comments

@vipghn4
Copy link

vipghn4 commented Nov 21, 2018

I'm trying to run cmake and make but I get the following error

  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:15 (find_package)


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

    /home/savvycom/OpenCV/cmake/OpenCVConfig.cmake

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


-- Configuring incomplete, errors occurred!

My OpenCV version is 2.4.9 (installed from source) and my dlib version is 19.6.

I've tried to add set (OPENCV_DIR "~/OpenCV/build/") to CMakeLists.txt and remove find_package( OpenCV REQUIRED ). I ran cmake successfully and make with 100% then failed with this error:

../modules/CvGl/libCvGl.a(FBRender.cpp.o): In function `FBRender::checkClip(double, double, double)':
FBRender.cpp:(.text+0x120c): undefined reference to `cvCreateMat'
FBRender.cpp:(.text+0x1334): undefined reference to `cvCreateMat'
FBRender.cpp:(.text+0x1456): undefined reference to `cvCreateMat'
FBRender.cpp:(.text+0x14b7): undefined reference to `cvCreateMat'
FBRender.cpp:(.text+0x14df): undefined reference to `cvGEMM'
FBRender.cpp:(.text+0x14f0): undefined reference to `cvCopy'
FBRender.cpp:(.text+0x1515): undefined reference to `cvGEMM'
FBRender.cpp:(.text+0x1696): undefined reference to `cvReleaseMat'
FBRender.cpp:(.text+0x16a0): undefined reference to `cvReleaseMat'
FBRender.cpp:(.text+0x16aa): undefined reference to `cvReleaseMat'
FBRender.cpp:(.text+0x16b4): undefined reference to `cvReleaseMat'
collect2: error: ld returned 1 exit status
config/CMakeFiles/TestVisualization.dir/build.make:103: recipe for target 'bin/TestVisualization' failed
make[2]: *** [bin/TestVisualization] Error 1
CMakeFiles/Makefile2:196: recipe for target 'config/CMakeFiles/TestVisualization.dir/all' failed
make[1]: *** [config/CMakeFiles/TestVisualization.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Can anyone help me fix this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant