huihut / OpenCV-MinGW-Build

👀 MinGW 32bit and 64bit version of OpenCV compiled on Windows. Including OpenCV 3.3.1, 3.4.1, 3.4.1-x64, 3.4.5, 3.4.6, 3.4.7, 3.4.8-x64, 3.4.9, 4.0.0-alpha-x64, 4.0.0-rc-x64, 4.0.1-x64, 4.1.0, 4.1.0-x64, 4.1.1-x64, 4.5.0-with-contrib, 4.5.2-x64
https://opencv.org/
928 stars 215 forks source link

error : no such file or directory #10

Closed Vinobharathi369 closed 5 years ago

Vinobharathi369 commented 5 years ago

test.cpp:1:9: fatal error: opencv2/core/core.hpp: No such file or directory

include<opencv2/core/core.hpp>

     ^~~~~~~~~~~~~~~~~~~~~~~

compilation terminated.

how to compile the opencv with mingw64 build using gcc/g++ compiler?

huihut commented 5 years ago

I wrote about how to compile OpenCV with MinGW64 on this blog. You can use Google Translate to translate into English.