Skip to content

OpenCV linking error #51

Open
Open
@vipghn4

Description

@vipghn4

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions