INCLUDEPATH += G:/opencv/build/include

CONFIG(debug, debug|release) {
LIBS += G:/opencv/build/x64/vc14/lib/*343d.lib
} else {
LIBS += G:/opencv/build/x64/vc14/lib/*343.lib
}

在项目文件(.pro)中添加上述代码,

其中G:/opencv/build/include为opencv头文件所在目录  G:/opencv/build/x64/vc14/lib/*343d.lib为opencv  . lib文件所在目录及文件名,带后缀d的为debug模式下使用的链接库,不带则为release模式

......

 

相关文章:

  • 2021-05-17
  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
  • 2021-09-04
  • 2021-07-05
  • 2022-12-23
  • 2021-11-29
猜你喜欢
  • 2021-12-14
  • 2021-09-11
  • 2021-06-22
  • 2021-05-10
  • 2022-01-10
相关资源
相似解决方案