Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Missing packages when creating a deployable application

Missing packages when creating a deployable application

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 405 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.
  • R Offline
    R Offline
    rtvideo
    wrote on last edited by rtvideo
    #1

    Hello, In my application I have several packages I have included in my .pro file. For example:

    PKGCONFIG += Qt5GStreamerUi-1.0
    PKGCONFIG += Qt5GStreamerUtils-1.0
    PKGCONFIG += gstreamer-1.0
    

    When trying to run my executable in another machine I will get an error of for example:

    Project ERROR: Qt5GStreamerUi-1.0 development package not found.
    

    In order to get rid of this error would I need to simply include the package in the folder where the executable is? When looking up the package on the PC I made the app on I have:

    /usr/lib/x86_64-linux-gnu/libQt5GStreamerUi-1.0.so
    /usr/lib/x86_64-linux-gnu/libQt5GStreamerUi-1.0.so.0
    /usr/lib/x86_64-linux-gnu/libQt5GStreamerUi-1.0.so.1.2.0
    /usr/lib/x86_64-linux-gnu/pkgconfig/Qt5GStreamerUi-1.0.pc
    

    Which one of these would I need to include, and do I need to just include it in the executable folder?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      That's not how it works on Linux.

      In any case, you should take a look at the linuxdeployqt project.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • R Offline
        R Offline
        rtvideo
        wrote on last edited by
        #3

        I am aware of linuxdeployqt but unfortunately that cannot work for me currently because I am deploying to an IMX6 using a script that will compile it for that system.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Cross-compilation is another matter.

          Then install the set of libraries from your target distribution that will be way simpler and easier to maintain.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1
          • R Offline
            R Offline
            rtvideo
            wrote on last edited by
            #5

            Would there be a way to include them with your executable so you would not have to install them on another machine or would that not be possible?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Yes, bundle them together and use a script to start your application. In that script manipulate the LD_LIBRARY_PATH environment variable to point to the folder.

              Note that you are trying to deploy your desktop machine library to your target. That won't work because they are not the same architecture.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              1

              • Login

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