package installation failed

Alexander.Kurz at hexagon-machine-control.com Alexander.Kurz at hexagon-machine-control.com
Fri Feb 1 12:16:50 UTC 2013


hello,

I experience some difficulties on windows trying to deploy a simple Qt Gui 
app to the emulator.
it looks like that apk file creation failes. at least on disk I cannot 
find any apk files. a "Hopp.ap_" file is there though.

any ideas?

thx and cheers
alex


13:10:00: Running steps for project hopp...
13:10:02: Configuration unchanged, skipping qmake step.
13:10:02: Starting: "D:\tools\necessitas\QtCreator\bin\ma-make.exe" -w
ma-make: Entering directory `C:/projects/android/hopp-build-880481-Debug'
D:\tools\necessitas\Android\Qt\482\armeabi-v7a\bin\uic.exe 
..\hopp\mainwindow.ui -o ui_mainwindow.h
D:/tools/necessitas/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-g++ 
-c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fpic 
-ffunction-sections -funwind-tables -fstack-protector -fno-short-enums 
-DANDROID -Wa,--noexecstack -DQT_NO_QWS_TRANSFORMED -g -g -marm -O0 
-fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -DQT_GUI_LIB 
-DQT_CORE_LIB -DQT_SHARED 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\mkspecs\android-g++ 
-I..\hopp -ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include\QtCore 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include\QtGui 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include\QtMobility -I. 
-I. -I. -I..\hopp 
-ID:\tools\necessitas\android-ndk\sources\cxx-stl\gnu-libstdc++\4.4.3\include 
-ID:\tools\necessitas\android-ndk\sources\cxx-stl\gnu-libstdc++\4.4.3\libs\armeabi-v7a\include 
-ID:\tools\necessitas\android-ndk\platforms\android-9\arch-arm\usr\include 
-I. -o main.o ..\hopp\main.cpp
D:/tools/necessitas/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-g++ 
-c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fpic 
-ffunction-sections -funwind-tables -fstack-protector -fno-short-enums 
-DANDROID -Wa,--noexecstack -DQT_NO_QWS_TRANSFORMED -g -g -marm -O0 
-fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -DQT_GUI_LIB 
-DQT_CORE_LIB -DQT_SHARED 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\mkspecs\android-g++ 
-I..\hopp -ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include\QtCore 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include\QtGui 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include\QtMobility -I. 
-I. -I. -I..\hopp 
-ID:\tools\necessitas\android-ndk\sources\cxx-stl\gnu-libstdc++\4.4.3\include 
-ID:\tools\necessitas\android-ndk\sources\cxx-stl\gnu-libstdc++\4.4.3\libs\armeabi-v7a\include 
-ID:\tools\necessitas\android-ndk\platforms\android-9\arch-arm\usr\include 
-I. -o mainwindow.o ..\hopp\mainwindow.cpp
D:\tools\necessitas\Android\Qt\482\armeabi-v7a\bin\moc.exe -DQT_GUI_LIB 
-DQT_CORE_LIB -DQT_SHARED 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\mkspecs\android-g++ 
-I..\hopp -ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include\QtCore 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include\QtGui 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include\QtMobility -I. 
-I. -I. -I..\hopp 
-ID:\tools\necessitas\android-ndk\sources\cxx-stl\gnu-libstdc++\4.4.3\include 
-ID:\tools\necessitas\android-ndk\sources\cxx-stl\gnu-libstdc++\4.4.3\libs\armeabi-v7a\include 
-ID:\tools\necessitas\android-ndk\platforms\android-9\arch-arm\usr\include 
-I. ..\hopp\mainwindow.h -o moc_mainwindow.cpp
D:/tools/necessitas/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-g++ 
-c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fpic 
-ffunction-sections -funwind-tables -fstack-protector -fno-short-enums 
-DANDROID -Wa,--noexecstack -DQT_NO_QWS_TRANSFORMED -g -g -marm -O0 
-fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -DQT_GUI_LIB 
-DQT_CORE_LIB -DQT_SHARED 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\mkspecs\android-g++ 
-I..\hopp -ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include\QtCore 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include\QtGui 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include 
-ID:\tools\necessitas\Android\Qt\482\armeabi-v7a\include\QtMobility -I. 
-I. -I. -I..\hopp 
-ID:\tools\necessitas\android-ndk\sources\cxx-stl\gnu-libstdc++\4.4.3\include 
-ID:\tools\necessitas\android-ndk\sources\cxx-stl\gnu-libstdc++\4.4.3\libs\armeabi-v7a\include 
-ID:\tools\necessitas\android-ndk\platforms\android-9\arch-arm\usr\include 
-I. -o moc_mainwindow.o moc_mainwindow.cpp
D:/tools/necessitas/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/arm-linux-androideabi-g++ 
--sysroot=D:/tools/necessitas/android-ndk/platforms/android-9/arch-arm 
-Wl,-rpath-link=D:/tools/necessitas/android-ndk/platforms/android-9/arch-arm/usr/lib 
-Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-soname,libhopp.so 
-Wl,-rpath=C:/tmp/necessitas/unstable/Android/Qt/482/build-armeabi-v7a/install/lib 
-Wl,-rpath=D:/tools/necessitas/Android/Qt/482/armeabi-v7a/lib -o 
libhopp.so main.o mainwindow.o moc_mainwindow.o 
-LD:/tools/necessitas/android-ndk/platforms/android-9/arch-arm/usr/lib 
-LD:/tools/necessitas/Android/Qt/482/armeabi-v7a/lib 
-LD:/tools/necessitas/android-ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3 
-lgcc -LD:\tools\necessitas\Android\Qt\482\armeabi-v7a/lib -lQtGui 
-L/tmp/necessitas/android-ndk/platforms/android-5/arch-arm/usr/lib 
-lQtCore -llog -lz -lm -ldl -lc
ma-make: Leaving directory `C:/projects/android/hopp-build-880481-Debug'
13:10:33: The process "D:\tools\necessitas\QtCreator\bin\ma-make.exe" 
exited normally.
13:10:33: Starting: "D:\tools\necessitas\QtCreator\bin\ma-make.exe" 
INSTALL_ROOT="C:\projects\android\hopp\android" install -w
ma-make: Entering directory `C:/projects/android/hopp-build-880481-Debug'
copy /y "libhopp.so" 
"C:\projects\android\hopp\android\libs\armeabi-v7a\libhopp.so"
1 file(s) copied.
ma-make: Leaving directory `C:/projects/android/hopp-build-880481-Debug'
13:10:33: The process "D:\tools\necessitas\QtCreator\bin\ma-make.exe" 
exited normally.
13:10:33: Copy Qt app & libs to Android package ...
13:10:34: Creating package file ...
13:10:34: Package deploy: Running command 
'D:\tools\necessitas/apache-ant-1.8.4/bin/ant.bat clean debug'.
Buildfile: C:\projects\android\hopp\android\build.xml

-check-env:
[checkenv] Android SDK Tools Revision 21
[checkenv] Installed at D:\tools\necessitas\android-sdk

-setup:
[echo] Project Name: Hopp
[gettype] Project Type: Application

-pre-clean:

clean:
[getlibpath] Library dependencies:
[getlibpath] No Libraries
[subant] No sub-builds to iterate on

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 21
[checkenv] Installed at D:\tools\necessitas\android-sdk

-setup:
[echo] Project Name: Hopp
[gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-build-setup:
[echo] Resolving Build Target for Hopp...
[gettarget] Project Target: Android 3.2
[gettarget] API level: 13
[gettarget] WARNING: No minSdkVersion value set. Application will install 
on all Android versions.
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\projects\android\hopp\android\bin
[mkdir] Created dir: C:\projects\android\hopp\android\bin\res
[mkdir] Created dir: C:\projects\android\hopp\android\gen
[mkdir] Created dir: C:\projects\android\hopp\android\bin\classes
[mkdir] Created dir: C:\projects\android\hopp\android\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for Hopp...
[dependency] Ordered libraries:
[dependency] 
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on

-pre-build:

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[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...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
[javac] Compiling 6 source files to 
C:\projects\android\hopp\android\bin\classes

-post-compile:

-obfuscate:

-dex:
[dex] input: C:\projects\android\hopp\android\bin\classes
[dex] input: D:\tools\necessitas\android-sdk\tools\support\annotations.jar
[dex] Pre-Dexing 
D:\tools\necessitas\android-sdk\tools\support\annotations.jar -> 
annotations-996428e60ba2dcdf4738ec192bd96701.jar
[dex] Converting compiled files and external libraries into 
C:\projects\android\hopp\android\bin\classes.dex...
[dx] Merged dex A (24 defs/36.2KiB) with dex B (2 defs/1.1KiB). Result is 
26 defs/43.3KiB. Took 0.1s

-crunch:
[crunch] Crunching PNG Files in source dir: 
C:\projects\android\hopp\android\res
[crunch] To destination dir: C:\projects\android\hopp\android\bin\res
[crunch] Processing image to cache: 
C:\projects\android\hopp\android\res\drawable-hdpi\icon.png => 
C:\projects\android\hopp\android\bin\res\drawable-hdpi\icon.png
[crunch] (processed image to cache entry 
C:\projects\android\hopp\android\bin\res\drawable-hdpi\icon.png: 64% size 
of source)
[crunch] Processing image to cache: 
C:\projects\android\hopp\android\res\drawable-ldpi\icon.png => 
C:\projects\android\hopp\android\bin\res\drawable-ldpi\icon.png
[crunch] (processed image to cache entry 
C:\projects\android\hopp\android\bin\res\drawable-ldpi\icon.png: 0% size 
of source)
[crunch] Processing image to cache: 
C:\projects\android\hopp\android\res\drawable-mdpi\icon.png => 
C:\projects\android\hopp\android\bin\res\drawable-mdpi\icon.png
[crunch] (processed image to cache entry 
C:\projects\android\hopp\android\bin\res\drawable-mdpi\icon.png: 0% size 
of source)
[crunch] Processing image to cache: 
C:\projects\android\hopp\android\res\drawable\icon.png => 
C:\projects\android\hopp\android\bin\res\drawable\icon.png
[crunch] (processed image to cache entry 
C:\projects\android\hopp\android\bin\res\drawable\icon.png: 86% size of 
source)
[crunch] Processing image to cache: 
C:\projects\android\hopp\android\res\drawable\logo.png => 
C:\projects\android\hopp\android\bin\res\drawable\logo.png
[crunch] (processed image to cache entry 
C:\projects\android\hopp\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] Current build type is different than previous build: forced 
apkbuilder run.
[apkbuilder] Creating Hopp-debug-unaligned.apk and signing it with a debug 
key...
13:10:46: Package created.
13:10:46: Installing package onto emulator-5554.
13:10:46: Package deploy: Running command 
'D:\tools\necessitas/android-sdk/platform-tools/adb.exe -s emulator-5554 
uninstall org.kde.necessitas.example.hopp'.

13:10:48: Package deploy: Running command 
'D:\tools\necessitas/android-sdk/platform-tools/adb.exe -s emulator-5554 
install C:/projects/android/hopp/android/bin/Hopp-debug.apk'.
can't find 'C:/projects/android/hopp/android/bin/Hopp-debug.apk' to 
install

13:10:48: Packaging Error: Command 
'D:\tools\necessitas/android-sdk/platform-tools/adb.exe -s emulator-5554 
install C:/projects/android/hopp/android/bin/Hopp-debug.apk' failed.Exit 
code: 1
Error while building/deploying project hopp (target: Necessitas Qt 4.8.2 
for Android armv7a)
When executing step 'Deploy to Android device'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/necessitas-devel/attachments/20130201/4c60251b/attachment.html>


More information about the Necessitas-devel mailing list