Qt与halcon联合编程

1、在.pro文件里添加,即包含库文件和头文件

LIBS += -L'D:/Program Files/MVTec/HALCON-12.0/lib/x86sse2-win32/' -lhalconcpp
#win32:CONFIG(release, debug|release): LIBS += -L'D:/Program Files/MVTec/HALCON-12.0/lib/x86sse2-win32/' -lhalconcpp
#else:win32:CONFIG(debug, debug|release): LIBS += -L'D:/Program Files/MVTec/HALCON-12.0/lib/x86sse2-win32/' -lhalconcppd
 
  
INCLUDEPATH += 'D:/Program Files/MVTec/HALCON-12.0/lib/x86sse2-win32'	
DEPENDPATH += 'D:/Program Files/MVTec/HALCON-12.0/lib/x86sse2-win32'
 
  
INCLUDEPATH += 'D:/Program Files/MVTec/HALCON-12.0/include'
INCLUDEPATH += 'D:/Program Files/MVTec/HALCON-12.0/include/halconcpp'
2、在所在项目下的debug和release文件夹里添加halcon.dll和halconcpp.dll

你可能感兴趣的:(Qt与halcon联合编程)