2017-08-14 226 views
0

我剛剛安裝了Qt Creator的5.91,它總是給我編譯時,此消息和調試的Qt Creator無法調試,也不編譯

:-1: error: cannot find -lqtmaind 
:-1: error: cannot find -lQt5Widgetsd 
:-1: error: cannot find -lQt5Guid 
:-1: error: cannot find -lQt5Cored 
:-1: error: cannot find -llibEGL 
:-1: error: cannot find -llibGLESv2 
collect2.exe:-1: error: error: ld returned 1 exit status 

這是出現

Running Windows Runtime device detection. C:/Qt/Qt5.9.1/5.9.1/winrt_x86_msvc2015/bin/winrtrunner.exe --list-devices Found 1 Windows Runtime devices. The system cannot find the path specified. Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK. Could not read qmake configuration file C:/Qt/Qt5.9.1/5.9.1/android_armv7/mkspecs/android-g++/qmake.conf.

一般消息我試圖重新安裝並檢查mscv和mingw選項,當我嘗試重新安裝它,但我仍然收到錯誤消息。我正在使用Windows 10.

回答

0

消息顯示您可能需要將您的ANDROID_NDK_ROOT設置爲指向您的Android NDK。在左側菜單中,嘗試項目的設置並設置NDK的正確路徑。我幾乎不相信你沒有正確設置android_armv7,因爲它抱怨它找不到qmake。你確定qmake是否正確,並且在qt創建者的選項中選擇了?也可能是一個特權問題,因爲即使它發現qmake,它也不能讀取它,也不能使用它。

+0

如何做到這一切?並通過路徑你的意思是在qt的創造者選項? –

+0

NDK的路徑位於左側的項目選項中。 android_armv7位於build選項卡下的一般選項中,它表示android。 – telis80

+0

所以我必須做的是將ANDROID_NDK_ROOT的Build Environtment的值改爲ndk路徑? –