安装pylon5
1.下载
https://www.baslerweb.com/fp-1523350858/media/downloads/software/pylon_software/Basler_pylon_5.0.12.11830.exe
2.安装时选择developerment
qt使用
我把这两个文件夹直接放在了工程目录下
图片.png
图片.png
在pro文件中配置如下
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = testPylon5
TEMPLATE = app
CONFIG += c++11
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
#--------------------------------------------Basler-------------------------------------------
INCLUDEPATH += $$PWD/include
LIBS += -L$$PWD/lib/Win32 -lGCBase_MD_VC120_v3_0_Basler_pylon_v5_0 -lGenApi_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
#----------------------------------------------------------------------------------------------
CONFIG(debug, debug|release) {
DESTDIR = $$PWD/bin_debug
LIBS += -L$$PWD/bin_debug
}
CONFIG(release, debug|release) {
DESTDIR = $$PWD/bin_release
LIBS += -L$$PWD/bin_release
}
网友评论