Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. LibQt5Qml.so and libQt5Quick.so not created for Android

LibQt5Qml.so and libQt5Quick.so not created for Android

Scheduled Pinned Locked Moved Mobile and Embedded
7 Posts 2 Posters 3.6k Views 1 Watching
  • 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.
  • H Offline
    H Offline
    helthans
    wrote on last edited by
    #1

    Hi,

    I am currently trying to test my project using the latest beta version of Qt5.3 for Android. My project is a subdir project developed using Qt5.1 and is working perfectly for Qt5.1.
    I am able to compile the project without problems for Qt5.3 but not able to launch it. I have checked which sharerd libs have been created and to my surprise I am missing 2, which I don't fully understand and don't know if it is an unsolved issue for this beta version or if I need to do something else for Qt5.3 compared to Qt5.1?
    The libs I am missing are libQt5Qml.so and libQt5Quick.so and in my project I am using QML files like the one shown below:
    @
    import QtQuick 2.1
    import QtMultimedia 5.0

    Rectangle {
    id: root
    width: 640
    height: 480
    color: "black"

    Video {
        id: videoItem
        anchors.fill: parent
        onStopped: controller.emitAboutToFinish()
    }
    
    Connections {
        target: controller
        onStartPlaying: {
            videoItem.play()
        }
        onStopPlaying: {
            videoItem.stop()
        }
        onSetNextFile: {
            videoItem.source = file
            if (videoItem.playbackState != MediaPlayer.PlayingState && controller.canPlay())
                videoItem.play()
        }
        onStopAndClear: {
            videoItem.stop()
            videoItem.source = ""
        }
    }
    

    }
    @
    I guess I will never get my project working without the missing libs. Anyone knows if this is a known error (haven't been able to find anything in the bugreports)? Or am I simply just missing something?

    Thanks and regards

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Which Qt package have you installed (is it prebuilt or self-compiled, what OS are you using)?

      This should definitely work. I am using Qt 5.3 alpha and beta (compiled myself) on Linux with QtQuick 2 and it works well.

      (Z(:^

      1 Reply Last reply
      0
      • H Offline
        H Offline
        helthans
        wrote on last edited by
        #3

        I'm using the Qt5.3 beta version from March 30th (qt-opensource-linux-x86-android-5.3.0-beta_2014-03-30_21-58-06-34.run) for Linux.

        1 Reply Last reply
        0
        • H Offline
          H Offline
          helthans
          wrote on last edited by
          #4

          I have tried with one of the provided examples, and that one is working fine.
          As said, my project works fine for Qt5.1, so I didn't expect too much problems using Qt5.3...

          1 Reply Last reply
          0
          • sierdzioS Offline
            sierdzioS Offline
            sierdzio
            Moderators
            wrote on last edited by
            #5

            Maybe a packaging bug, then. Please report it on Jira.

            (Z(:^

            1 Reply Last reply
            0
            • sierdzioS Offline
              sierdzioS Offline
              sierdzio
              Moderators
              wrote on last edited by
              #6

              [quote author="helthans" date="1396252473"]I have tried with one of the provided examples, and that one is working fine.
              As said, my project works fine for Qt5.1, so I didn't expect too much problems using Qt5.3...[/quote]

              Ah, hm. That makes it strange. Try checking if the .pro file and android manifest are both OK. Also, try bumping QtQuick import to 2.2.

              (Z(:^

              1 Reply Last reply
              0
              • H Offline
                H Offline
                helthans
                wrote on last edited by
                #7

                Hmm.. Don't see how the .pro file could be wrong as I have no problems for Qt5.1 - anyhow, checked anyway. The subdir using QML has QT += qml quick. Seems like the android deployment tool doesn't catch those(???). Also, tried to add QT += qml quick to the .pro file of my main application subdir.
                Tried to set ANDROID_PACKAGE_SOURCE_DIR to point to the directory where I stored my own version of the manifest file. Checked it against the manifest created for Qt5.1 and I couldn't see anything obvious.
                From "deployment-android":http://doc-snapshot.qt-project.org/qt5-stable/deployment-android.html I found that it is also possible to set ANDROID_DEPLOYMENT_DEPENDENCIES to include Qt dependencies - it is just not clear to me how to set these paths, i.e. if I want to specify that the qml plugin should be included.

                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