这是我Qt
项目中的外部库位置(名为contr
):
这是我的makefile
:
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = contr
TEMPLATE = app
INCLUDEPATH += 3rdparty/libs/libusb
SOURCES += main.cpp\
mainwindow.cpp
HEADERS += mainwindow.h
FORMS += mainwindow.ui
LIBS += -L"3rdparty/libs/libusb" -llibusb
在文件中,我有include
:
#include <libusb.h>
编译时,我收到以下错误:
mainwindow.cpp:3: erreur : C1083: Cannot open include file: 'libusb.h': No such file or directory
编辑:
我在Windows