報錯說明
環(huán)境:銀河麒麟v10 sp1 +Qt5.14.2
手賤不知道點了什么.編譯項目就報一片error,看著賊煩.
Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.
Could not read qmake configuration file /opt/Qt5.14.2/5.14.2/android/mkspecs/android-clang/qmake.conf.
解決過程
-
查資料大概和ANDROID_NDK_ROOT 環(huán)境變量相關.因為不開發(fā)手機端.
所以就沒設置這個.文章來源:http://www.zghlxwxcb.cn/news/detail-784838.html -
想著反著也不用android.能不能刪掉和android相關的配置呢. 詢問chatgpt
之后.
在/opt/Qt5.14.2/Tools/QtCreator/share/qtcreator/QtProject/qtcreator(我自己的安裝目錄)下找到了qtversion.xml文件.刪除和android相關.重啟qtcreator即可.文章來源地址http://www.zghlxwxcb.cn/news/detail-784838.html
到了這里,關于Qtcreator 編譯報錯 Project ERROR: You need to set the ANDROID_NDK_ROOT...的文章就介紹完了。如果您還想了解更多內容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!