How can I fix this error, anybody can help me out ?
Error log :
CMake Warning at C:/library/opencv/build/OpenCVConfig.cmake:190 (message):
Found OpenCV Windows Pack but it has no binaries compatible with your
You should manually point CMake variable OpenCV_DIR to your build of OpenCV
Call Stack (most recent call first):
CMake Error at CMakeLists.txt:7 (find_package):
Found package configuration file:
but it set OpenCV_FOUND to FALSE so package “OpenCV” is considered to be
so, what is your ‘architecture’, and what exactly did you download ?
also show your
Thank you very much for your kindness, I would show more detial below.
This is my architecture :
OpenCV ARCH: x64
OpenCV RUNTIME: mingw
OpenCV STATIC: OFF
I download the exe from official webside “opencv-4.8.0-windows.exe”
This is my cmake error screenshot:
And my CMakeLists.txt is：
include_directories("C:/Program Files (x86)/Eigen3/include/eigen3")
add_executable(Rasterizer main.cpp rasterizer.hpp rasterizer.cpp Triangle.hpp Triangle.cpp)
bad luck. prebuild libs are for Visual Studio ONLY
change compiler or build libs from src first.
and which mingw, exactly ?
also, use search box above (mingw) you’ll find some receipts.
Here is my mingw version:
gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project)
well, at least that
can build the opencv libs, tried & tested.
Should I use visual studio to build the opencv? Not I use mingw
IF you have a (recent) visual studio, you can use the prebuilt libs
(but then i dont really understand your question …)
if you only have mingw, you need to build from src first
I have built opencv from src, and use “mingw32-make and mingw32-install”. But I still get error when I use opencv, Can you tell me how do I know if my opencv is installed correctly?
sorry, most of the confusion here is my bad, did not read
can you try to run make install again, and point it to a different (from ‘build’) folder ? then point your local cmake file to that ?
(‘build’ is a terrible location to install)