Under Windows 10 using MinGW-w64 compiled OpenCV-4.1.1

1. Download and install CMake

2. Download and install MinGW-w64, suppose installed in X: \ path \ to \ MinGW-w64

Note here that the choice POSIX version rather than the Win32 version, because OpenCV calls the standard library Mutex library, and the library is not implemented in the Win32 version.

3. Configure environment variables;

4. Download OpenCV source and place it in Y: \ path \ to \ opencv \

5. Z clip anywhere in the new file: \ path \ to \ opencv-build-mingw-w64 \

6. Run cmake-gui in the directory, specify the compiler is MinGW-w64 and make program path, it is recommended to enable BUILD_opencv_world, so that all libraries will be integrated in one pair .dll / .lib Lane

7. Run make (do not know why I can not make for windows parallel)

(one year later)

8. make install

9. Find Z: \ path \ to \ opencv-build-mingw-w64 \ install inside include, x64 folder, which is compiled to run the required header files and libraries

Guess you like

Origin www.cnblogs.com/rabbull/p/11391559.html