我刚刚安装了SDK
, NDK
, JDK
. 当我输入终端时:
莫罗兹@莫罗兹:~/qt/qt5$
./configure -developer-build -opensource -confirm-license -xplatform android-g++ -nomake tests -nomake examples -android-ndk android-ndk-r9/ -android-sdk android-sdk-linux/ -android-ndk-host linux-x86_64 -android-toolchain-version 4.8 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples
然后
莫罗兹@莫罗兹:~/qt/qt5$
/home/moroz/qt/qt5/qtbase/configure -top-level -developer-build -opensource -confirm-license -xplatform android-g++ -nomake tests -nomake examples -android-ndk android-ndk-r9/ -android-sdk android-sdk-linux/ -android-ndk-host linux-x86_64 -android-toolchain-version 4.8 -skip qttranslations -skip qtwebkit -skip qtserialport -skip qtwebkit-examples
我得到了以下错误:
Can not detect Android NDK toolchain. Please use -android-toolchain-version to specify
Mac 和 Ubuntu 上也有同样的信息!