2016-06-17 7 views
4

Qt5.7/mingw/windows8.1 qmake. 새로 설치. 프로젝트 파일에서 qmake를 실행할 때 위의 오류 메시지가 표시되지만 makefile은 생성되지만 빌드되고 프로젝트는 작동합니다.Qt5.7 qmake; "시스템이 지정된 경로를 찾을 수 없습니다." 의미와 그것을 고치는 방법?

명령 줄에서 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가 필요로하는 다른 외부 상태도 있습니다.

감사합니다.

편집 # 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. 
+0

해당 문제는 프로젝트 파일에 따라 다를 수 있습니다. 완전 빌드 로그와 같은 몇 가지 추가 정보를 제공해야합니다. – maxik

+0

프로젝트 파일이 추가되었습니다. 로그가 있습니까? 어디 있겠 어, 고마워. –

+0

Qt Creator에는 맨 아래에 몇 가지보기가 있습니다. 하나는 오류 메시지가있는 빌드 문제와 컴파일러 출력 (다른 일부 옆에 있음)을 보여주는 뷰입니다. 컴파일러 출력은 흥미로울 것이다. 제안 된대로 – maxik

답변

1

한 번에 하나의 디렉토리를 제거하기 위해 PATH 변수에 대한 변경 사항을 편집하십시오. 시스템에없는 불필요한 경로 (빌드가 성공 했으므로 불필요한 경로)를 추가하려고하는 것처럼 보입니다.

+3

에게 감사드립니다. 이 아이디어에 따르면, 나는 (qt 경로 다음에) mingw의 _another_ 복사본을 가지고 있고, qmake는이 다른 설치에서 찾을 수있는'sh.exe'를 찾는다. 이상한 점은 qt 설치 디렉토리에 그러한 바이너리가 없을 때'sh.exe'를 검색한다는 것입니다. 'sh.exe'를 찾지 못하게되면,'.qmake.stash' 파일이 생성되고, 이후에 경로를 불문하고 make를 실행하는데 사용됩니다. 이 stash 파일은 다른 mingw를 언급하지 않습니다. –

+0

답이 맞다면 그걸 표시해 주시겠습니까? 감사. – dww