无法使用QT在Android上部署

时间:2018-01-18 19:37:46

标签: android qt android-ndk

我正在尝试使用QT来开发Android应用程序。我使用的是Ubuntu 17.10,我的工具包是

  • QT-开源-Linux的x64的机器人-5.7.1
  • NDK是android-ndk-r10e-linux-x86_64
  • SDK来自android-studio-ide-171.4443003-linux

我能够构建示例代码,但尝试部署我得到以粗体

标记的以下错误
Generating Android Package
  Input file: /home/prajosh/Project/cpp_study/test_1/build-test_1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/android-libtest_1.so-deployment-settings.json
  Output directory: /home/prajosh/Project/cpp_study/test_1/build-test_1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/android-build/
  Application binary: /home/prajosh/Project/cpp_study/test_1/build-test_1-Android_for_armeabi_v7a_GCC_4_9_Qt_5_7_1-Debug/libtest_1.so
  Android build platform: android-27
  **Install to device: No
Cannot find template directory /home/prajosh/Android/Sdk/tools/templates/gradle/wrapper
20:27:26: The process "/home/prajosh/Android/Qt5.7.1/5.7/android_armv7/bin/androiddeployqt" exited with code 3.
Error while building/deploying project test_1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.1))
When executing step "Build Android APK"**
20:27:26: Elapsed time: 00:00.

尝试安装gradle但是给我一个错误

**java: symbol lookup error: /usr/lib/jni/libnative-platform-curses.so: undefined symbol: tgetent**

搜索后无法获得正确的解决方案。请问有谁,请指出我的错误?

0 个答案:

没有答案