Then open cmake-gui.exe, in Where is the source code: select the sources folder under opencv, and Where to build the binaries: select the mingw_build folder created earlier First, create a new folder mingw _build in the decompression directory of opencv to store the files generated by the compilation. Therefore, next, we need to use mingw to compile opencv. In the build directory, the source code files are in sources. Opencv only provides the version compiled by msvc by default. Go to the official website and download the version corresponding to windows. I also came to the official website,, after downloading, install it foolishly, and then add it to the system environment variables The command has output, and the version number is the same as the installed version, indicating that the installation is successful cmake Then, open a new command line and enter the command gcc -v to verify MinGW is the compiler we will use in this article, it integrates gcc, first come to the official download pageĪfter the download is complete, unzip it, and then add the bin directory to the system environment variable , after downloading the exe installation file, fool installation Go to the official download page jetbrains In IDE, you can generally choose the compiler you want to use. For example, visual studio and CLion are IDE. IDE is an application that provides a program development environment, generally including code editors, compilers, debuggers and graphical user interface tools, which basically cover all the tools needed for software code writing. The integrated development environment is also the IDE, which is different from the compiler.Ī compiler is a set of tools, which is responsible for compiling a source program written in a high-level programming language into a binary file that the computer can recognize and run, and has nothing to do with the tools used to write the code. One more word here, many beginners are easily confused. This article uses another integrated development environment, CLion, which is also very popular with programmers, to see how OpenCV is used in CLion. Visual Studio 2019 Configuring the OpenCV Development Environment introduces how to use OpenCV in the Visual Studio integrated development environment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |