工程文件.pro中添加以下代码:
Qt配置Halcon****
MacOS specific settings. Note that while dyld will search under
/Library/Frameworks by default, the preprocessor/compiler/linker will not
and need to be told explicitly.
macx {
QMAKE_CXXFLAGS += -F/Library/Frameworks
QMAKE_LFLAGS += -F/Library/Frameworks
LIBS += -framework HALCONCpp
}
else {
#defines
win32:DEFINES += WIN32
#includes
INCLUDEPATH += “ ( H A L C O N R O O T ) / i n c l u d e " I N C L U D E P A