Results 1 to 4 of 4

Thread: Packaging error on deploy

  1. #1
    Join Date
    Oct 2009
    Posts
    65
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Packaging error on deploy

    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

  2. #2
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Thanks
    15
    Thanked 16 Times in 15 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Packaging error on deploy

    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/8...-necessitas-qt

  3. #3
    Join Date
    Oct 2009
    Posts
    65
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Packaging error on deploy

    I'm tried, but, no way.

    I attach my project and my configurazion.

    Any ideas?

    Thanks for your time


    Michele
    Attached Images Attached Images
    Attached Files Attached Files

  4. #4
    Join Date
    Jul 2013
    Posts
    2
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Re: Packaging error on deploy

    Not sure about this.Plz explaine me……..

Similar Threads

  1. Qt5 Ubuntu packaging
    By alenn.masic in forum Qt Programming
    Replies: 2
    Last Post: 8th March 2013, 14:00
  2. help me, packaging emptyproject
    By vinhmta in forum Newbie
    Replies: 1
    Last Post: 11th June 2012, 11:24
  3. Replies: 6
    Last Post: 16th June 2011, 13:20
  4. packaging
    By acano in forum Qt Programming
    Replies: 5
    Last Post: 4th October 2010, 18:56
  5. Related to Packaging of Qt4 Application
    By archanasubodh in forum Installation and Deployment
    Replies: 1
    Last Post: 21st March 2008, 14:55

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.