• 9960阅读
  • 5回复

[提问]android for necessitas qt creater hello world报错,求解 [复制链接]

上一主题 下一主题
离线zhutousame
 
只看楼主 倒序阅读 楼主  发表于: 2012-02-27
— 本帖被 XChinux 从 Qt基础编程 移动到本区(2013-02-21) —
关键词: androidnecessitas

http://blog.csdn.net/xuxinshao/article/details/7016880
参考上面网址, 我安装的是:necessitas-0.3-online-sdk-installer-windows.exe
android和工程配置:
window.open('http://www.qtcn.org/bbs/attachment/Mon_1202/72_108779_17e3e3580daf3b3.jpg?87');" style="max-width:700px;max-height:700px;" onload="if(is_ie6&&this.offsetWidth>700)this.width=700;" >

主要代码:
    QLabel label;    label.setText("hello world");    label.show();
离线zhutousame
只看该作者 1楼 发表于: 2012-02-27
Running build steps for project test_helloworld...
Starting: "f:\qt\necessitas\android\qt\480\armeabi-v7a\bin\qmake.exe" F:\qt_practice\qt_android\test4_helloworld\test_helloworld\test_helloworld.pro -r -spec android-g++ -win32
-win32 is deprecated.
The process "f:\qt\necessitas\android\qt\480\armeabi-v7a\bin\qmake.exe" exited normally.
Starting: "F:\Qt\necessitas\QtCreator\bin\ma-make.exe" -w
ma-make: Entering directory `F:/qt_practice/qt_android/test4_helloworld/test_helloworld-build--Necessitas_Qt_4_8_0_for_Android_armv7a_Release'
ma-make: Nothing to be done for `first'.
ma-make: Leaving directory `F:/qt_practice/qt_android/test4_helloworld/test_helloworld-build--Necessitas_Qt_4_8_0_for_Android_armv7a_Release'
The process "F:\Qt\necessitas\QtCreator\bin\ma-make.exe" exited normally.
Starting: "F:\Qt\necessitas\QtCreator\bin\ma-make.exe" INSTALL_ROOT="F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android" install -w
ma-make: Entering directory `F:/qt_practice/qt_android/test4_helloworld/test_helloworld-build--Necessitas_Qt_4_8_0_for_Android_armv7a_Release'
copy /y "libtest_helloworld.so" "F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\libs\armeabi-v7a\libtest_helloworld.so"
已复制 1 个文件。
F:/Qt/necessitas/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-strip "F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\libs\armeabi-v7a\libtest_helloworld.so"
ma-make: Leaving directory `F:/qt_practice/qt_android/test4_helloworld/test_helloworld-build--Necessitas_Qt_4_8_0_for_Android_armv7a_Release'
The process "F:\Qt\necessitas\QtCreator\bin\ma-make.exe" exited normally.
Copy Qt app & libs to Android package ...
Creating package file ...
Package deploy: Running command 'F:\Qt\necessitas/apache-ant-1.8.2/bin/ant.bat clean debug'.
Buildfile: F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\build.xml


clean:


-set-mode-check:


-set-debug-files:


-set-debug-mode:


-debug-obfuscation-check:


-setup:
[echo] Gathering info for Test_helloworld...
[setup] Android SDK Tools Revision 15
[setup] Project Target: Android 2.1
[setup] API level: 7
[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.


-build-setup:
[echo] Creating output directories if needed...
[mkdir] Created dir: F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin
[mkdir] Created dir: F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\res
[mkdir] Created dir: F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\gen
[mkdir] Created dir: F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\classes


-pre-build:


-code-gen:
[echo] ----------
[echo] Handling aidl files...
[aidl] Found 2 aidl files.
[aidl] Compiling 2 aidl files.
[echo] ----------
[echo] Handling RenderScript files...
[renderscript] No renderscript files to compile.
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...


-pre-compile:


-compile:
[javac] F:\Qt\necessitas\android-sdk\tools\ant\build.xml:600: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 5 source files to F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\classes


-post-compile:


-obfuscate:


-dex:
[dex] Converting compiled files and external libraries into F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\classes.dex...


-crunch:
[crunch] Crunching PNG Files in source dir: F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\res
[crunch] To destination dir: F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\res
[crunch] Processing image to cache: F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\res\drawable-hdpi\icon.png => F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\res\drawable-hdpi\icon.png
[crunch] (processed image to cache entry F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\res\drawable-hdpi\icon.png: 64% size of source)
[crunch] Processing image to cache: F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\res\drawable-ldpi\icon.png => F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\res\drawable-ldpi\icon.png
[crunch] (processed image to cache entry F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\res\drawable-ldpi\icon.png: 0% size of source)
[crunch] Processing image to cache: F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\res\drawable-mdpi\icon.png => F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\res\drawable-mdpi\icon.png
[crunch] (processed image to cache entry F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\res\drawable-mdpi\icon.png: 0% size of source)
[crunch] Processing image to cache: F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\res\drawable\icon.png => F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\res\drawable\icon.png
[crunch] (processed image to cache entry F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\res\drawable\icon.png: 86% size of source)
[crunch] Processing image to cache: F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\res\drawable\logo.png => F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\res\drawable\logo.png
[crunch] (processed image to cache entry F:\qt_practice\qt_android\test4_helloworld\test_helloworld\android\bin\res\drawable\logo.png: 91% size of source)
[crunch] Crunched 5 PNG files to update cache


-package-resources:
[aapt] Creating full resource package...


-package:
[apkbuilder] Creating Test_helloworld-debug-unaligned.apk and signing it with a debug key...


-do-debug:
[zipalign] Running zip align on final apk...
Package created.
Please wait, searching for a suitable device for target:android-7.
Installing package onto emulator-5554.
Package deploy: Running command 'F:\Qt\necessitas/android-sdk/platform-tools/adb.exe -s emulator-5554 uninstall org.kde.necessitas.example.test_helloworld'.
Error: Could not access the Package Manager. Is the system running?


Package deploy: Running command 'F:\Qt\necessitas/android-sdk/platform-tools/adb.exe -s emulator-5554 install F:/qt_practice/qt_android/test4_helloworld/test_helloworld/android/bin/Test_helloworld-debug.apk'.
pkg: /data/local/tmp/Test_helloworld-debug.apk


Failure [INSTALL_FAILED_INVALID_APK]


742 KB/s (594192 bytes in 0.781s)


Pulling files necessary for debugging
Package deploy: Running command 'F:\Qt\necessitas/android-sdk/platform-tools/adb.exe -s emulator-5554 pull /system/bin/app_process F:/qt_practice/qt_android/test4_helloworld/test_helloworld-build--Necessitas_Qt_4_8_0_for_Android_armv7a_Release/app_process'.
Package deploy: Running command 'F:\Qt\necessitas/android-sdk/platform-tools/adb.exe -s emulator-5554 pull /system/lib/libc.so F:/qt_practice/qt_android/test4_helloworld/test_helloworld-build--Necessitas_Qt_4_8_0_for_Android_armv7a_Release/libc.so'.
离线zhutousame
只看该作者 2楼 发表于: 2012-02-27
application output:Starting remote process ...Can't find org.kde.necessitas.example.test_helloworld process
没有见到helloworld...
已经安装 apache-ant 和 jdk, 环境变量也添加并测试成功.....
但是..还是木有...求解...
离线zhutousame
只看该作者 3楼 发表于: 2012-02-28
竟然没有人理我.....坑爹的...还好哥自己解决了....方法: 插上android手机...直接下载安装成功运行....
离线zhutousame
只看该作者 4楼 发表于: 2012-02-28
Re:android for necessitas qt creater hello world,
- -
离线yxkaibaoma

只看该作者 5楼 发表于: 2013-02-21
我也遇到了,怎么解决的啊
快速回复
限100 字节
 
上一个 下一个