【发布时间】:2019-05-28 20:01:40
【问题描述】:
为什么会出错:
我使用 Qt Creator。桌面版 Qt 5.9.7
输出::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::::::::::
23:02:13: Uruchamianie "/usr/bin/make"
g++ -c -pipe -g -std=gnu++11 -Wall -W -fPIC -DQT_QML_DEBUG -I../Kurs_STL_cpp0x -I. -I../../anaconda3/mkspecs/linux-g++ -o main.o ../Kurs_STL_cpp0x/main.cpp
../Kurs_STL_cpp0x/main.cpp:4:10: fatal error: Debug: No such file or directory
#include <Debug>
^~~~~~~
compilation terminated.
Makefile:627: recipe for target 'main.o' failed
make: *** [main.o] Error 1
23:02:13: Proces "/usr/bin/make" zakończył się kodem wyjściowym 2.
Błąd budowania / instalowania projektu Kurs_STL_cpp0x (zestaw narzędzi: Desktop)
Podczas wykonywania kroku "Make"
23:02:13: Czas trwania: 00:00.
【问题讨论】:
-
你能提供编译输出吗?您的包含路径似乎不完整。
-
完成............
-
我需要整个编译输出(或者至少是构建命令)。
-
好的。完毕。好的? .
-
缺少 Qt 包含。检查您的 .pro 文件是否包含类似
CONFIG -= qt的行并将其删除(如果您在 Qt Creator 中创建非 Qt 项目,则会发生这种情况)