Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. /lib64/libQt5Quick.so.5: version `Qt_5_PRIVATE_API' not found
QtWS25 Last Chance

/lib64/libQt5Quick.so.5: version `Qt_5_PRIVATE_API' not found

Scheduled Pinned Locked Moved Solved Installation and Deployment
5 Posts 2 Posters 4.4k 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
    Doron Feinstein
    wrote on last edited by
    #1

    I am having a rough time deploying my Qt application on Fedora 34.
    My dev computer is a Fedora 34 with Qt 5.15.2 installed using the GUI installer. The target machine is also a Fedora 34, but Qt is installed using dnf.

    When I copy the executable to the target machine I get the following error:
    /lib64/libQt5Quick.so.5: version `Qt_5_PRIVATE_API' not found

    Running strings /usr/lib64/libQt5Quick.so.5|grep Qt.*API I get:
    Qt_5.15.2_PRIVATE_API

    Is there a way for me to compile my project with the libraries from the package instead of the ones from the Qt installer?

    JonBJ 1 Reply Last reply
    0
    • D Doron Feinstein

      I am having a rough time deploying my Qt application on Fedora 34.
      My dev computer is a Fedora 34 with Qt 5.15.2 installed using the GUI installer. The target machine is also a Fedora 34, but Qt is installed using dnf.

      When I copy the executable to the target machine I get the following error:
      /lib64/libQt5Quick.so.5: version `Qt_5_PRIVATE_API' not found

      Running strings /usr/lib64/libQt5Quick.so.5|grep Qt.*API I get:
      Qt_5.15.2_PRIVATE_API

      Is there a way for me to compile my project with the libraries from the package instead of the ones from the Qt installer?

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Doron-Feinstein
      It sounds like a Qt version mis-match. Since "The target machine is also a Fedora 34, but Qt is installed using dnf.", why can't you do the same and compile with those libraries?

      D 1 Reply Last reply
      0
      • JonBJ JonB

        @Doron-Feinstein
        It sounds like a Qt version mis-match. Since "The target machine is also a Fedora 34, but Qt is installed using dnf.", why can't you do the same and compile with those libraries?

        D Offline
        D Offline
        Doron Feinstein
        wrote on last edited by
        #3

        @JonB I would do that but I am not sure how. My application is compiled as a CMake project. Qt Creator doesn't automatically selects gcc_64 which comes with the installation. I can't seem to find a way to have the project link against /lib64 instead.

        JonBJ 1 Reply Last reply
        0
        • D Doron Feinstein

          @JonB I would do that but I am not sure how. My application is compiled as a CMake project. Qt Creator doesn't automatically selects gcc_64 which comes with the installation. I can't seem to find a way to have the project link against /lib64 instead.

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @Doron-Feinstein
          Sorry, I don't know what any of this means. After install Qt/Creator you go into it and pick a kit to compile/link with. So you can select your "gcc_64" or "/lib64" if it doesn't default to that. It is possible you might have to install some extra things "when using dnf", I have never used Fedora. That's all I can say, you may need someone else who knows more.

          D 1 Reply Last reply
          0
          • JonBJ JonB

            @Doron-Feinstein
            Sorry, I don't know what any of this means. After install Qt/Creator you go into it and pick a kit to compile/link with. So you can select your "gcc_64" or "/lib64" if it doesn't default to that. It is possible you might have to install some extra things "when using dnf", I have never used Fedora. That's all I can say, you may need someone else who knows more.

            D Offline
            D Offline
            Doron Feinstein
            wrote on last edited by
            #5

            @JonB your suggestion actually works well!
            All I needed to do was to create a new Qt Version under Tools->Options->Kits->Qt Versions and point it to the qmake executable under /lib64/qt5. I could than create a new kit using that Qt Version, compile and run the executable on my target machine.
            Thanks for the help!

            1 Reply Last reply
            1
            • D Doron Feinstein has marked this topic as solved on

            • Login

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