无法在Mac上将Pylon(Basler)SDK与Qt链接 [英] Fail to link Pylon(Basler) SDK with Qt on Mac
问题描述
我正在尝试将Qt与Qt Creator项目中的Pylon相机SDK链接.
I am trying to link Qt with the Pylon camera SDK in a Qt Creator project.
我从此用于OS X的pylon ,并且pylon框架安装在/Library/Frameworks/pylon.framework
.
I install the pylon Camera Software Suite app from this pylon for OS X and the pylon framework is install at /Library/Frameworks/pylon.framework
.
我首先遵循与应用程序一起安装的pylon Programmer's Guide
,将塔架与Xcode链接起来.它完美地工作.
I first follow the pylon Programmer's Guide
which is installed with the app to link the pylon with Xcode. It works perfectly.
然后,我尝试链接到我的Qt项目.我将此添加到.pro
文件中:
Then I try to link with my Qt Project. I add this in the .pro
file:
mac: LIBS += -F/Library/Frameworks/ -framework pylon
# add GenICam because pylon Programmer's Guide do so
INCLUDEPATH += /Library/Frameworks/pylon.framework/Headers/GenICam
DEPENDPATH += /Library/Frameworks
但这不起作用. Qt找不到头文件.
But this doesn't work. Qt cannot find the header files.
我也尝试:
QMAKE_LFLAGS += -F/Library/Frameworks/
LIBS += -framework pylon
如文档使用框架中所述.但仍然无法正常工作.有人帮我解决这个问题吗?谢谢.
as said in the document Using Frameworks. But still not working. Anyone help me to fix this? Thanks.
更新:
奇怪的是Qt可以检测到头文件的自动完成,但是在构建时却说找不到这样的文件.
Weird is that Qt can detect auto-complete of the header files but when build it says no such file found.