I didn’t change any of the CMake options when I clicked generate and the only thing I did change was line 236 of OpenCVDownload.cmake because it couldn’t extract
/.cache/ade/b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip
after generating it I setup the CMakeLists.txt in CLion
The CMakeLists.txt finishes running without error but when I run main.cpp (just a demo from the opencv docs)
I get the no rule to make target ‘E:/CPP/OPENCV/opencv/build/lib/libopencv_gapi452.dll.a’ error (because the lib folder is empty)
I have tried building opencv twice but the lib folder has still come up empty.
this will only generate makefiles, it won’t compile and link libraries, you need to invoke
mingw32-make install
from your build folder. this will build & install the opencv libs & headers to build\install
like it or not, you need a network connection, while running cmake here, it tries to download a couple of things.
it could not build the opencv_gapi module, because the ade dependancy was missing. either get the download working, or you have to disable the gapi module by unchecking BUILD_opencv_gapi and WITH_ADE in cmake-gui
so again, before you can compile your program, you have to see, that the libs were built correctly