1 | initial version |
you CANNOT use the prebuilt libs with mingw, those are for VS ONLY.
if you want to use mingw, the 1st step would be, to build your own opencv libs locally, using cmake.
cd opencv\build
cmake -DENABLE_PRECOMPILED_HEADERS=OFF -DCPU_DISPATCH="" ..
mingw32-make install
after that, your libs/headers should appear in opencv\build\install
.
to compile your project, either use cmake again, and set OpencCV_DIR
to opencv\build\install or try with a simple cmdline:
g++ myprog.cpp -Iopencv/build/install/include -Lopencv/build/install/lib/x64/mingw -lopencv_core400 -lopencv_imgproc400 -lopencv_dnn400 -o myprog