The original computer is a 32-bit win7 system. Due to the needs of the project, the previous vs 2010 is updated to the current vs 2013. Reconfigure opencv environment, version 2.4.9( Win7 + Opencv 2.4.9 + VS 2013)
In the past, we used to manually add the link library to configure the environment, which was very troublesome. Find the perfect configuration strategy called opencv on the Internet and try it. This method uses the way of writing property sheet, which can directly import the created property sheet into the project to complete the configuration of OpenCV, which is very convenient and fast. Thank you. The link is as follows:
http://my.phirobot.com/blog/2014-02-opencv_ configuration_ in_ vs.html
During this period, I also encountered a very confused problem. In the past, the manual configuration method was used, and there was no problem in opening the test image. This time, after importing the property sheet, the same method was used to test, but it always failed. It indicates that the related header file of OpenCV cannot be found, so it is thought that it is caused by the configuration error of property sheet or the system variable not being updated. After setting system variables several times and restarting, it still can’t be solved, which is very confusing. After searching the opencv directory, you can find the relevant header files, but the latest version is different from the previous directory. The original reason for finding data is that there is a problem with the path, not the property table.
Directly include the following files in the original project, no need to include different header files, convenient and fast( The header file of opencv.hpp contains all the header files in opencv library.)
#include <opencv2\opencv.hpp>
Read More:
- Environment configuration at the beginning of OpenCV + vs2015
- Opencv problem: opencv error: assertion failed (! Empty()) in detectmultiscale
- [opencv + openvino] opencv-vino4.5.1 + opencv contrib installation
- Project files may be invalid appears when cmake compiles opencv3.1, and the debug additional dependency of the compiled opencv3.1 is at the end
- Opencv2.4.9 + ffmpeg1.2.12 installation configuration and problem solution under Ubuntu 14.04
- For opencv3.0 and vs2015, msvcr120d.dll is missing
- [VTK] vtk8.2.0 + vs2015 + win10 compilation and configuration
- OpenGL class library and environment configuration under win10 and vs2015
- Vs2015 + PCL. 1.8.1 (win10) environment configuration
- Error resolution-“Error in configuration process, project files may be invalid” appears when Cmake compiles openCV
- To solve the problem in Windows opencv installation: error configuration process, project files may be invalid
- Configuration of OpenGL development environment under Windows environment, win10 + vs2019 + glfw + glad
- When opencv is used, vs is stuck and other software works normally
- Java cpp-0.11.jar, opencv-windows-x86_ 64.jar,opencv-2.4.11-0.11.jar
- PCL environment configuration (pcl1.8.1, vs2017, win10)
- Mac clion configuring opencv environment
- OpenGL environment configuration under VS2010 / vs2012 / vs2015
- [solution] build vins and orb-slam based on opencv4
- The perfect solution of VS2010 console program running in a flash
- Opencv opencvsharpexternal compilation and recording process