我正在尝试使用来自android-cmake project的android ndk和CMake工具链来编译Qt项目。 为了让cmake找到Qt我已经指定-DQMAKE_EXECUTABLE = / path / to / necessitas / qmake 当我运行cmake时,我得到以下内容:
$ cmake -DCMAKE_TOOLCHAIN_FILE=~/pac/build/android.toolchain.cmake ../qMap3D -DANDROID_NDK=/home/vvs/necessitas/android-ndk-r6b -DQT_QMAKE_EXECUTABLE=/home/vvs/necessitas/Android/Qt/480/armeabi-v7a/bin/qmake -DANDROID_ABI=armeabi-v7a
Warning: QT_QMAKE_EXECUTABLE reported QT_INSTALL_LIBS as /home/vvs/necessitas/Android/Qt/480/armeabi-v7a/lib
Warning: But QtCore couldn't be found. Qt must NOT be installed correctly, or it wasn't found for cross compiling.
CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:602 (MESSAGE):
Could NOT find QtCore. Check
/home/vvs/pac/build-android-cmake/CMakeFiles/CMakeError.log for more
details.
Call Stack (most recent call first):
CMakeLists.txt:6 (find_package)
-- Configuring incomplete, errors occurred!
目录$ / home / vvs / necessitas / Android / Qt / 480 / armeabi-v7a / lib确实包含libQtCore.so.4.8.0和一组符号链接。