Tip: if the project has been successfully compiled and run on a computer, the code of the project itself is OK
Based on such preconditions, the problem should be directly located in the direction of environment configuration.
The third-party library I use this time is opencv:
1. Include the opencv path in the project pro file and add the corresponding library file
INCLUDEPATH += D:/openCV/opencv/build/include
LIBS += D:/openCV/opencv/build/x64/vc15/lib/opencv_world451.lib
LIBS += D:/openCV/opencv/build/x64/vc15/lib/opencv_world451d.lib
2. Find the corresponding. DLL file from the opencv installation path and copy it to the running program path generated by the project
Read More:
- Upgrading QT4 project to Qt5 project
- Python program uses OS. System () method to call exe program, resulting in no response of main program process
- Compiling QT project under vs encountered “error 89error msb6006:“ cmd.exe ”Exited with code 3
- QT learning 3: configuration and testing of QT creator 2.4.1 development environment
- After the vs2013 + OpenGL environment is set up, there is an error in running the first program
- Can not start, can not find QT pligins “windows” problem after installing QT vs environment 2021-06-13
- Error: lnk1168. Unable to open e::: language ⁃ project3 ⁃ debug ⁃ project3.exe for writing
- Under Ubuntu environment, eclipse writes C program, and error starting process is reported
- An error is reported for the new Android project. Rejecting re init on previously failed
- How to use it RegAsm.exe Register C in a development / production environment#/ VB.NET Developed DLL
- “Failed to create interpreter” appears when pychar creates a new project
- Install python’s C extension compilation environment under windows (solve “error: command’cl.exe’ failed: No such file or directory”)
- Recipe for target’Project 1.exe’ failed Cause analysis and solution
- In win10 environment, Ctrl + C cannot be copied and Ctrl + V cannot be pasted
- [OpenGL] cannot start this program because the computer is missing glut32.dll. Try to re install the program to fix this problem. …
- Qt Failed opening project “xxx“: No plugin can open project type “text/plain“
- Solve the problems of (deployment descriptor: project name) and (jax-ws web services) under the new eclipse project
- If you want to open more than one program “pdc140.xxx”, the CL.EXE To write to the same. Pdb file, please use
- Install Python C extension compiler environment under windows (solve “error: command” cl.exe ‘ failed: No such file or directory”)
- Solution to the problem of no C / C + + option in the new project of eclipse