Deploy example "camera" to android phone



  • mac OS X 10.8.5
    Qt5.2 beta1

    tried api 10,14,15,19
    compile with armeabi-v7a, armeabi

    apps : calculator(QWidget sample)

    phone : GT-S6310

    Already add permission for camera in the manifest file

    Deployment is success but can't execute
    The screen will show you the message
    "Your application encountered a fatal error and cannot continue"

    application output
    @
    Starting remote process.D/dalvikvm(15450): Trying to load lib /data/data/org.qtproject.example.camera/lib/libgnustl_shared.so 0x41f09650
    D/dalvikvm(15450): Added shared lib /data/data/org.qtproject.example.camera/lib/libgnustl_shared.so 0x41f09650
    D/dalvikvm(15450): No JNI_OnLoad found in /data/data/org.qtproject.example.camera/lib/libgnustl_shared.so 0x41f09650, skipping init
    D/dalvikvm(15450): Trying to load lib /data/data/org.qtproject.example.camera/lib/libQt5Core.so 0x41f09650
    D/dalvikvm(15450): Added shared lib /data/data/org.qtproject.example.camera/lib/libQt5Core.so 0x41f09650
    D/dalvikvm(15450): Trying to load lib /data/data/org.qtproject.example.camera/lib/libQt5Gui.so 0x41f09650
    D/dalvikvm(15450): Added shared lib /data/data/org.qtproject.example.camera/lib/libQt5Gui.so 0x41f09650
    D/dalvikvm(15450): No JNI_OnLoad found in /data/data/org.qtproject.example.camera/lib/libQt5Gui.so 0x41f09650, skipping init
    D/dalvikvm(15450): Trying to load lib /data/data/org.qtproject.example.camera/lib/libQt5Network.so 0x41f09650
    D/dalvikvm(15450): Added shared lib /data/data/org.qtproject.example.camera/lib/libQt5Network.so 0x41f09650
    D/dalvikvm(15450): No JNI_OnLoad found in /data/data/org.qtproject.example.camera/lib/libQt5Network.so 0x41f09650, skipping init
    D/dalvikvm(15450): Trying to load lib /data/data/org.qtproject.example.camera/lib/libQt5Multimedia.so 0x41f09650
    D/dalvikvm(15450): Added shared lib /data/data/org.qtproject.example.camera/lib/libQt5Multimedia.so 0x41f09650
    D/dalvikvm(15450): No JNI_OnLoad found in /data/data/org.qtproject.example.camera/lib/libQt5Multimedia.so 0x41f09650, skipping init
    D/dalvikvm(15450): Trying to load lib /data/data/org.qtproject.example.camera/lib/libQt5MultimediaQuick_p.so 0x41f09650
    W/System.err(15450): java.lang.reflect.InvocationTargetException
    W/System.err(15450): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(15450): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err(15450): at org.qtproject.qt5.android.bindings.QtActivity.loadApplication(QtActivity.java:202)
    W/System.err(15450): at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:495)
    W/System.err(15450): at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:700)
    W/System.err(15450): at android.app.Activity.performCreate(Activity.java:5184)
    W/System.err(15450): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1094)
    W/System.err(15450): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2078)
    W/System.err(15450): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2139)
    W/System.err(15450): at android.app.ActivityThread.access$700(ActivityThread.java:143)
    W/System.err(15450): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1241)
    W/System.err(15450): at android.os.Handler.dispatchMessage(Handler.java:99)
    W/System.err(15450): at android.os.Looper.loop(Looper.java:137)
    W/System.err(15450): at android.app.ActivityThread.main(ActivityThread.java:4963)
    W/System.err(15450): at java.lang.reflect.Method.invokeNative(Native Method)
    W/System.err(15450): at java.lang.reflect.Method.invoke(Method.java:511)
    W/System.err(15450): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1038)
    W/System.err(15450): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
    W/System.err(15450): at dalvik.system.NativeStart.main(Native Method)
    W/System.err(15450): Caused by: java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1891]: 142 could not load needed library 'libQt5Quick.so' for 'libQt5MultimediaQuick_p.so' (load_library[1093]: Library 'libQt5Quick.so' not found)
    W/System.err(15450): at java.lang.Runtime.load(Runtime.java:340)
    W/System.err(15450): at java.lang.System.load(System.java:521)
    W/System.err(15450): at org.qtproject.qt5.android.QtNative.loadQtLibraries(QtNative.java:128)
    W/System.err(15450): at org.qtproject.qt5.android.QtActivityDelegate.loadApplication(QtActivityDelegate.java:335)
    W/System.err(15450): ... 19 more
    W/ResourceType(15450): Failure getting entry for 0x010802c8 (t=7 e=712) in package 0 (error -75)
    @

    Anyone have the same problem?



  • I retry it with Qt5.2 rc1, this time the gui are shown, but still unable to start the app.

    The camera of qml can access the camera a few seconds before crash

    All of them leave me same error message

    I guess beta and rc1 are not ready for camera yet?

    manifest setting from QtCreator

    !http://farm8.staticflickr.com/7418/11026761984_cd50b47b33_o.png(manifest)!

    @Starting remote process.Unable to start 'org.qtproject.example.camera'.@


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.