如何使用 Necessitas(qt 端口)构建我的 HelloWorld Android 应用程序?
Posted
技术标签:
【中文标题】如何使用 Necessitas(qt 端口)构建我的 HelloWorld Android 应用程序?【英文标题】:How to build my HelloWorld Android application with Necessitas (qt port)? 【发布时间】:2011-03-24 17:14:49 【问题描述】:我有蚂蚁 1.8.2。最新版本的 android SDK,NDK。这是我的构建日志。
Running build steps for project test2...
Configuration unchanged, skipping qmake step.
Starting: "/usr/bin/make" -w
make: Вход в каталог `/home/andrew/work/qt/test2-build-android'
make: Цель `first' не требует выполнения команд.
make: Выход из каталога `/home/andrew/work/qt/test2-build-android'
The process "/usr/bin/make" exited normally.
Copy Qt app & libs to Android package ...
Stripping libraries, please wait
Creating package file ...
Package Creation: Running command '/home/andrew/eclipse/apache-ant-1.8.2/bin/ant debug'
Buildfile: /home/andrew/work/qt/test2/android/build.xml
[setup] Android SDK Tools Revision 10
[setup] Project Target: Android 1.5
[setup] API level: 3
[setup]
[setup] ------------------
[setup] Resolving library dependencies:
[setup] No library dependencies.
[setup]
[setup] ------------------
[setup]
[setup] WARNING: No minSdkVersion value set. Application will install on all Android versions.
[setup]
[setup] Importing rules file: tools/ant/main_rules.xml
-debug-obfuscation-check:
-set-debug-mode:
-compile-tested-if-test:
-pre-build:
-dirs:
[echo] Creating output directories if needed...
[mkdir] Created dir: /home/andrew/work/qt/test2/android/bin
[mkdir] Created dir: /home/andrew/work/qt/test2/android/gen
[mkdir] Created dir: /home/andrew/work/qt/test2/android/bin/classes
-aidl:
[echo] Compiling aidl files into Java classes...
-renderscript:
[echo] Compiling RenderScript files into Java classes and RenderScript bytecode...
-resource-src:
[echo] Generating R.java / Manifest.java from the resources...
[aapt] /home/andrew/work/qt/test2/android/AndroidManifest.xml:14: error: No resource identifier found for attribute 'largeScreens' in package 'android'
[aapt] /home/andrew/work/qt/test2/android/AndroidManifest.xml:14: error: No resource identifier found for attribute 'normalScreens' in package 'android'
[aapt] /home/andrew/work/qt/test2/android/AndroidManifest.xml:14: error: No resource identifier found for attribute 'anyDensity' in package 'android'
[aapt] /home/andrew/work/qt/test2/android/AndroidManifest.xml:14: error: No resource identifier found for attribute 'smallScreens' in package 'android'
BUILD FAILED
/home/andrew/eclipse/android-sdk-linux_x86/tools/ant/main_rules.xml:310: null returned: 1
Total time: 1 second
Packaging Error: Command '/home/andrew/eclipse/apache-ant-1.8.2/bin/ant debug' failed.Exit code: 1
Error while building project test2 (target: Android)
When executing build step 'Packaging for Android'
【问题讨论】:
对我来说,我必须设置我的 JAVA_HOME 系统 enviro var - 感谢 *** 上的另一个问题的答案:***.com/questions/8453753/… 【参考方案1】:听起来好像您没有选择任何目标平台,分别没有正确配置您的 SDK。
1.) 官方documentation
2.) 一部诺基亚的电影,您可以在其中看到这家伙如何在 linux 上配置 necessitas:
【讨论】:
以上是关于如何使用 Necessitas(qt 端口)构建我的 HelloWorld Android 应用程序?的主要内容,如果未能解决你的问题,请参考以下文章
无法将 openal soft 与 necessitas 关联