PDA

View Full Version : Packaging error on deploy



cia.michele
20th June 2013, 14:06
Hello to everybody,
I'm a newbie of Qt on Android and I'm trying to deploy my first application on Asus Padfone (Android 4.0.4).
I've Android-15 sdk, and i'm using the samegate example. I'm on Windows 7. I got this deploy log:


15:01:12: Running steps for project samegame...
15:01:12: Configuration unchanged, skipping qmake step.
15:01:12: Starting: "C:\Qt\Qt5.1.0\Tools\mingw48_32\bin\mingw32-make.exe"
C:\Qt\Android\android-ndk/toolchains/arm-linux-androideabi-4.7/prebuilt/windows/bin/arm-linux-androideabi-g++ -c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -DANDROID -Wa,--noexecstack -std=gnu++0x -g -g -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -fPIE -DQT_NO_PRINTDIALOG -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\..\..\..\mkspecs\android-g++ -I..\samegame -IC:\Qt\Qt5.1.0\5.1.0-rc1\android_armv7\include -IC:\Qt\Qt5.1.0\5.1.0-rc1\android_armv7\include\QtQuick -IC:\Qt\Qt5.1.0\5.1.0-rc1\android_armv7\include\QtQml -IC:\Qt\Qt5.1.0\5.1.0-rc1\android_armv7\include\QtNetwork -IC:\Qt\Qt5.1.0\5.1.0-rc1\android_armv7\include\QtGui -IC:\Qt\Qt5.1.0\5.1.0-rc1\android_armv7\include\QtCore -I. -IC:\Qt\Android\android-ndk\sources\cxx-stl\gnu-libstdc++\4.7\include -IC:\Qt\Android\android-ndk\sources\cxx-stl\gnu-libstdc++\4.7\libs\armeabi-v7a\include -IC:\Qt\Android\android-ndk\platforms\android-14\arch-arm\usr\include -I. -o main.obj ..\samegame\main.cpp
C:\Qt\Qt5.1.0\5.1.0-rc1\android_armv7\bin\rcc.exe -name samegame ..\samegame\samegame.qrc -o qrc_samegame.cpp
C:\Qt\Android\android-ndk/toolchains/arm-linux-androideabi-4.7/prebuilt/windows/bin/arm-linux-androideabi-g++ -c -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -DANDROID -Wa,--noexecstack -std=gnu++0x -g -g -marm -O0 -fno-omit-frame-pointer -Wall -Wno-psabi -W -D_REENTRANT -fPIE -DQT_NO_PRINTDIALOG -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_QUICK_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I..\..\..\..\mkspecs\android-g++ -I..\samegame -IC:\Qt\Qt5.1.0\5.1.0-rc1\android_armv7\include -IC:\Qt\Qt5.1.0\5.1.0-rc1\android_armv7\include\QtQuick -IC:\Qt\Qt5.1.0\5.1.0-rc1\android_armv7\include\QtQml -IC:\Qt\Qt5.1.0\5.1.0-rc1\android_armv7\include\QtNetwork -IC:\Qt\Qt5.1.0\5.1.0-rc1\android_armv7\include\QtGui -IC:\Qt\Qt5.1.0\5.1.0-rc1\android_armv7\include\QtCore -I. -IC:\Qt\Android\android-ndk\sources\cxx-stl\gnu-libstdc++\4.7\include -IC:\Qt\Android\android-ndk\sources\cxx-stl\gnu-libstdc++\4.7\libs\armeabi-v7a\include -IC:\Qt\Android\android-ndk\platforms\android-14\arch-arm\usr\include -I. -o qrc_samegame.obj qrc_samegame.cpp
C:\Qt\Android\android-ndk/toolchains/arm-linux-androideabi-4.7/prebuilt/windows/bin/arm-linux-androideabi-g++ --sysroot=C:\Qt\Android\android-ndk/platforms/android-14/arch-arm/ -Wl,-soname,libsamegame.so -Wl,-rpath-link=C:/Qt/Qt5.1.0/5.1.0-rc1/android_armv7/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -o libsamegame.so main.obj qrc_samegame.obj -LC:\Qt\Android\android-ndk/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi-v7a -LC:\Qt\Android\android-ndk/platforms/android-14/arch-arm//usr/lib -lgnustl_shared -lsupc++ -llog -lz -lm -ldl -lc -lgcc -LC:\Qt\Qt5.1.0\5.1.0-rc1\android_armv7\lib -lQt5Quick -lQt5Qml -lQt5Network -lQt5Gui -lQt5Core -lGLESv2
15:01:20: The process "C:\Qt\Qt5.1.0\Tools\mingw48_32\bin\mingw32-make.exe" exited normally.
15:01:20: Starting: "C:\Qt\Qt5.1.0\Tools\mingw48_32\bin\mingw32-make.exe" INSTALL_ROOT="C:\Qt\Qt5.1.0\5.1.0-rc1\mingw48_32\examples\quick\demos\samegame\andro id" install
copy /y "libsamegame.so" "C:\Qt\Qt5.1.0\5.1.0-rc1\mingw48_32\examples\quick\demos\samegame\andro id\libs\armeabi-v7a\libsamegame.so"
1 file copiati.
15:01:21: The process "C:\Qt\Qt5.1.0\Tools\mingw48_32\bin\mingw32-make.exe" exited normally.
15:01:22: Copy Qt app & libs to Android package ...
15:01:22: Creating package file ...
15:01:22: Package deploy: Running command 'C:/Qt/WinAnt/bin/ant clean debug'.
Packaging error: Could not start command 'C:/Qt/WinAnt/bin/ant clean debug'. Reason: Process failed to start:
Error while building/deploying project samegame (kit: Android for arm (GCC 4.7, Qt 5.1.0))
When executing step 'Packaging for Android'
15:01:22: Elapsed time: 00:09.


I saw some post on internet and I tryed winant or copying tools.jar into jre folder.
I've JDK 7 and Jre 7.

Thanks for your time.

Michele

saman_artorious
22nd June 2013, 04:14
you need to set enviroment variable to you java jdk. So go start\right- click my computer press enviromment variables and in system variables you'll see JAVA_HOME variable edit path to you jdk for example: c:\program file\java\jdk 1.7.0
http://stackoverflow.com/questions/8453753/how-do-i-fix-android-packaging-error-for-necessitas-qt

cia.michele
24th June 2013, 08:48
I'm tried, but, no way.

I attach my project and my configurazion.

Any ideas?

Thanks for your time


Michele

Brodon
4th July 2013, 07:03
Not sure about this.Plz explaine me……..