我剛剛安裝了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.
如何做到這一切?並通過路徑你的意思是在qt的創造者選項? –
NDK的路徑位於左側的項目選項中。 android_armv7位於build選項卡下的一般選項中,它表示android。 – telis80
所以我必須做的是將ANDROID_NDK_ROOT的Build Environtment的值改爲ndk路徑? –