Qt Creator:添加外部库(未找到头文件)

时间:2016-11-04 20:33:21

标签: c++ c header qt-creator qmake

这是我Qt项目中的外部库位置(名为contr):

enter image description here

这是我的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

工作

0 个答案:

没有答案