VS+QT+Pylon:配置一下包含文件和libs,具体参考pylon说明文档。
Windows下 Qtcreator+Pylon:建议把include和libs文件夹拷贝至工作目录,然后修改.pro文件
LIBS += -L$$PWD/lib/x64/ -lGenApi_MD_VC120_v3_0_Basler_pylon_v5_0
-lGCBase_MD_VC120_v3_0_Basler_pylon_v5_0
-lPylonBase_MD_VC120_v5_0
-lPylonC_MD_VC120
-lPylonGUI_MD_VC120_v5_0
-lPylonUtility_MD_VC120_v5_0
INCLUDEPATH += $$PWD/include
DEPENDPATH += $$PWD/include
Linux下 Qtcreator+Pylon:修改.Pro文件
QMAKE_CXXFLAGS+=$(shell /opt/pylon5/bin/pylon-config --cflags)
QMAKE_LFLAGS+=$(shell /opt/pylon5/bin/pylon-config --libs-rpath)
LIBS+=$(shell /opt/pylon5/bin/pylon-config --libs)