Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Deploy applications for Android

Deploy applications for Android

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 1.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Drizzit
    wrote on last edited by
    #1

    Hi,

    I try to deploy applications for Android with QtCreator 2.7.1.
    To do so, first I installed Android SDK (with API level 10 and 11) and Android NDK. Then I compiled Qt 5.1.1 against SDK, NDK and a OpenJDK (AMD 64 because my Linux is 64 bits).

    On QtCreator, I tried to deploy a simple Qt example application and to run it on a physical device connected to my computer.
    But when after deployment, when application is started, it crashes with an error :

    @Starting remote process.D/AndroidRuntime(12230): Shutting down VM
    W/dalvikvm(12230): threadid=1: thread exiting with uncaught exception (group=0x41a182a0)
    I/Process (12230): Sending signal. PID: 12230 SIG: 9
    E/AndroidRuntime(12230): FATAL EXCEPTION: main
    E/AndroidRuntime(12230): java.lang.UnsatisfiedLinkError: Couldn't load puzzle: findLibrary returned null
    E/AndroidRuntime(12230): at java.lang.Runtime.loadLibrary(Runtime.java:365)
    E/AndroidRuntime(12230): at java.lang.System.loadLibrary(System.java:535)
    E/AndroidRuntime(12230): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:207)
    E/AndroidRuntime(12230): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:484)
    E/AndroidRuntime(12230): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:688)
    E/AndroidRuntime(12230): at android.app.Activity.performCreate(Activity.java:5163)
    E/AndroidRuntime(12230): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
    E/AndroidRuntime(12230): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2061)
    E/AndroidRuntime(12230): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2122)
    E/AndroidRuntime(12230): at android.app.ActivityThread.access$600(ActivityThread.java:140)
    E/AndroidRuntime(12230): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1228)
    E/AndroidRuntime(12230): at android.os.Handler.dispatchMessage(Handler.java:99)
    E/AndroidRuntime(12230): at android.os.Looper.loop(Looper.java:137)
    E/AndroidRuntime(12230): at android.app.ActivityThread.main(ActivityThread.java:4895)
    E/AndroidRuntime(12230): at java.lang.reflect.Method.invokeNative(Native Method)
    E/AndroidRuntime(12230): at java.lang.reflect.Method.invoke(Method.java:511)
    E/AndroidRuntime(12230): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:994)
    E/AndroidRuntime(12230): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:761)
    E/AndroidRuntime(12230): at dalvik.system.NativeStart.main(Native Method)@

    Strange thing is that it looks for an executable named puzzle, that must be generated by the compilation of the project.
    But when project is compiled, only a libpuzzle.so is generated instead of the executable.

    I use Android API level 10 to deploy application.
    In QtCreator Run Settings, I use the options_ Deploy local Qt libraries_ and Use local Qt libraries.

    I tried other Deploy configurations, but it always crashes on the same error.

    I also correctly informed QtCreator of Android SDK and NDK paths and of JDK location in Android Options.

    Is there something I missed or I did wrong ? Could you please help me to fix this problem ?

    Thanks,

    Jérémie

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved