Qt5.7 qmake;什么“系统无法找到指定的路径”。意思是如何解决它?

时间:2016-06-17 10:50:47

标签: qt qmake qt5.7

Qt5.7 / mingw / windows8.1 qmake。新安装。当我在项目文件上运行qmake时,我得到上面的错误消息,虽然发出了makefile,但是他们构建并且项目正常工作(看起来似乎)。

从命令行运行qmake;这是我添加到PATH的路径:

I:\Qtmg\Qt5.7.0\5.7\mingw53_32\bin;i:\Qtmg\Qt5.7.0\Tools\mingw530_32\bin;I:\Qtmg\Qt5.7.0\Tools\QtCreator\bin

这与配置文件或缓存有关吗?如果是这样,这些将在哪里。还有qmake需要的任何其他外部状态。

感谢。

EDIT#1 这是项目文件:

TEMPLATE = app

QT += qml quick quickcontrols2
CONFIG += console

SOURCES += main.cpp

RESOURCES += qml.qrc

编辑#2:来自QtCreator 4.0.2的输出

常规消息标签:

The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.

编译输出选项卡,运行qmake:

14:49:57: Running steps for project Q1...
14:49:57: Starting: "I:\Qtmg\Qt5.7.0\5.7\mingw53_32\bin\qmake.exe" I:\larry\qt\q9edit\Q1.pro -r -spec win32-g++ "CONFIG+=debug" "CONFIG+=qml_debug"
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
14:49:57: The process "I:\Qtmg\Qt5.7.0\5.7\mingw53_32\bin\qmake.exe" exited normally.
14:49:57: Elapsed time: 00:00.

编译输出,重建:

14:51:32: Running steps for project Q1...
14:51:32: Starting: "I:\Qtmg\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe" clean
I:/Qtmg/Qt5.7.0/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug clean
mingw32-make[1]: Entering directory 'I:/larry/qt/q9edit'
rm -f debug/qrc_qml.cpp
rm -f debug/main.o debug/qrc_qml.o
mingw32-make[1]: Leaving directory 'I:/larry/qt/q9edit'
I:/Qtmg/Qt5.7.0/Tools/mingw530_32/bin/mingw32-make -f Makefile.Release clean
mingw32-make[1]: Entering directory 'I:/larry/qt/q9edit'
rm -f release/qrc_qml.cpp
rm -f release/main.o release/qrc_qml.o
mingw32-make[1]: Leaving directory 'I:/larry/qt/q9edit'
14:51:33: The process "I:\Qtmg\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
14:51:33: Configuration unchanged, skipping qmake step.
14:51:33: Starting: "I:\Qtmg\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe" 
I:/Qtmg/Qt5.7.0/Tools/mingw530_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'I:/larry/qt/q9edit'
g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_QML_DEBUG -DQT_QUICKCONTROLS2_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include/QtQuickControls2 -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include/QtQuick -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include/QtGui -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include/QtANGLE -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include/QtQml -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include/QtNetwork -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include/QtCore -Idebug -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/mkspecs/win32-g++  -o debug/main.o main.cpp
'I:\Qtmg\Qt5.7.0\5.7\mingw53_32\bin\rcc.exe' -name qml qml.qrc -o debug/qrc_qml.cpp
g++ -c -pipe -fno-keep-inline-dllexport -g -std=gnu++11 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_QML_DEBUG -DQT_QUICKCONTROLS2_LIB -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include/QtQuickControls2 -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include/QtQuick -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include/QtGui -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include/QtANGLE -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include/QtQml -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include/QtNetwork -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/include/QtCore -Idebug -I../../../Qtmg/Qt5.7.0/5.7/mingw53_32/mkspecs/win32-g++  -o debug/qrc_qml.o debug/qrc_qml.cpp
g++ -Wl,-subsystem,console -mthreads -o debug/Q1.exe debug/main.o debug/qrc_qml.o  -LI:/Qtmg/Qt5.7.0/5.7/mingw53_32/lib I:/Qtmg/Qt5.7.0/5.7/mingw53_32/lib/libQt5QuickControls2d.a I:/Qtmg/Qt5.7.0/5.7/mingw53_32/lib/libQt5Quickd.a I:/Qtmg/Qt5.7.0/5.7/mingw53_32/lib/libQt5Guid.a I:/Qtmg/Qt5.7.0/5.7/mingw53_32/lib/libQt5Qmld.a I:/Qtmg/Qt5.7.0/5.7/mingw53_32/lib/libQt5Networkd.a I:/Qtmg/Qt5.7.0/5.7/mingw53_32/lib/libQt5Cored.a 
mingw32-make[1]: Leaving directory 'I:/larry/qt/q9edit'
14:51:34: The process "I:\Qtmg\Qt5.7.0\Tools\mingw530_32\bin\mingw32-make.exe" exited normally.
14:51:34: Elapsed time: 00:02.

1 个答案:

答案 0 :(得分:1)

尝试编辑对PATH变量的更改,一次删除一个目录。在我看来,您正在尝试添加一个不必要的路径(构建成功后不必要),这在您的系统中是不存在的。