Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37164

java.io.FileNotFoundException: /data/data/org.company.app/lib/libplugins_bearer_libqgenericbearer.so

    XMLWordPrintable

Details

    Description

      I am not knowing using bearers, but I get the following error:

      E/Qt      (12801): Can't create main activity
      E/Qt      (12801): java.io.FileNotFoundException: /data/data/org.iMagicLab.vinscan/lib/libplugins_bearer_libqgenericbearer.so: open failed: ENOENT (No such file or directory)
      E/Qt      (12801): 	at libcore.io.IoBridge.open(IoBridge.java:416)
      E/Qt      (12801): 	at java.io.FileInputStream.<init>(FileInputStream.java:78)
      E/Qt      (12801): 	at java.io.FileInputStream.<init>(FileInputStream.java:105)
      E/Qt      (12801): 	at org.qtproject.qt5.android.bindings.QtActivity.createBundledBinary(QtActivity.java:403)
      E/Qt      (12801): 	at org.qtproject.qt5.android.bindings.QtActivity.extractBundledPluginsAndImports(QtActivity.java:476)
      E/Qt      (12801): 	at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:569)
      E/Qt      (12801): 	at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:858)
      E/Qt      (12801): 	at android.app.Activity.performCreate(Activity.java:5267)
      E/Qt      (12801): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1097)
      E/Qt      (12801): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2209)
      E/Qt      (12801): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2295)
      E/Qt      (12801): 	at android.app.ActivityThread.access$700(ActivityThread.java:150)
      E/Qt      (12801): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1280)
      E/Qt      (12801): 	at android.os.Handler.dispatchMessage(Handler.java:99)
      E/Qt      (12801): 	at android.os.Looper.loop(Looper.java:176)
      E/Qt      (12801): 	at android.app.ActivityThread.main(ActivityThread.java:5279)
      E/Qt      (12801): 	at java.lang.reflect.Method.invokeNative(Native Method)
      E/Qt      (12801): 	at java.lang.reflect.Method.invoke(Method.java:511)
      E/Qt      (12801): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
      E/Qt      (12801): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
      E/Qt      (12801): 	at dalvik.system.NativeStart.main(Native Method)
      E/Qt      (12801): Caused by: libcore.io.ErrnoException: open failed: ENOENT (No such file or directory)
      E/Qt      (12801): 	at libcore.io.Posix.open(Native Method)
      E/Qt      (12801): 	at libcore.io.BlockGuardOs.open(BlockGuardOs.java:110)
      E/Qt      (12801): 	at libcore.io.IoBridge.open(IoBridge.java:400)
      E/Qt      (12801): 	... 20 more
      

      With the following project file:

      # Add more folders to ship with the application, here
      folder_01.source = qml/vinscan
      folder_01.target = qml
      DEPLOYMENTFOLDERS = folder_01
      
      # Additional import path used to resolve QML modules in Creator's code model
      QML_IMPORT_PATH =
      
      # The .cpp file which was generated for your project. Feel free to hack it.
      SOURCES += main.cpp \
          vinscanner.cpp \
          videoimageprovider.cpp \
          videosurface.cpp
      QT += multimedia quick
      
      linux {
      #    LIBS += -lzbar
      }
      
      
      #INCLUDEPATH +=/usr/include
      
      # Installation path
      # target.path =
      
      # Please do not modify the following two lines. Required for deployment.
      include(qtquick2applicationviewer/qtquick2applicationviewer.pri)
      qtcAddDeployment()
      
      HEADERS += \
          vinscanner.h \
          videoimageprovider.h \
          videosurface.h
      
      ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android
      
      OTHER_FILES += \
          android/AndroidManifest.xml
      
      android {
      #    ANDROID_EXTRA_LIBS += $$PWD/android/libs/armeabi-v7a/libzbarjni.so
      #    LIBS += -liconv
      #    LIBS += -lzbarjni
      #    ANDROID_EXTRA_LIBS += $$PWD/android/libs/armeabi-v7a/libiconv.so
          LIBS += -L$$PWD/android/libs/armeabi-v7a
      }
      
      ANDROID_EXTRA_LIBS = /home/jhihn/Projects/vinscan/android/libs/armeabi-v7a/libiconv.so /home/jhihn/Projects/vinscan/android/libs/armeabi-v7a/libzbarjni.so
      
      

      I have looked all over for help and I cannot get an answer. Since this uses androiddeployqt, I don't know what to do.

      Attachments

        1. _thumb_49926.png
          343 kB
          fanjunwu
        2. _thumb_49927.png
          457 kB
          fanjunwu
        3. _thumb_49928.png
          444 kB
          fanjunwu

        Issue Links

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              scorp1us Jason Hihn
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: