- 在.pro 文件中添加 头文件 和 库 路径
INCLUDEPATH += D:\opencv-4.6.0\OpenCV_4.6.0-Build\install\include
LIBS += D:\opencv-4.6.0\OpenCV_4.6.0-Build\install\x64\mingw\bin\libopencv_*.dll
- 将
D:\opencv-4.6.0\OpenCV_4.6.0-Build\install\x64\mingw\bin
文件下的 文件 复制到
D:\new_share\016_opencv\build-opencv_demo-Desktop_Qt_5_14_2_MinGW_64_bit-Debug\debug
文件下。