0
所以我想今天使用travis代替this项目。可悲的是它与这个错误失败:特拉维斯CI QT没有建设
$ make
g++ -c -m64 -pipe -O2 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++-64 -I. -I. -I/usr/include/qt5 -I/usr/include/qt5/QtNetwork -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -o downloadmanager.o downloadmanager.cpp
In file included from downloadmanager.h:11:0,
from downloadmanager.cpp:1:
mainwindow.h:4:23: fatal error: QMainWindow: No such file or directory
compilation terminated.
make: *** [downloadmanager.o] Error 1
The command "make" exited with 2.
Here是完整的日志。
注意我第一次遇到问题,它不识别网络模块文件(例如QNetworkAccessManager)。我通过用“QT + = network”执行QMake来解决这个问题。现在它找不到GUI文件(例如QMessageBox),但添加“QT + =网络gui”并没有成功。