/lib64/libQt5Quick.so.5: version `Qt_5_PRIVATE_API' not found
-
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 foundRunning strings /usr/lib64/libQt5Quick.so.5|grep Qt.*API I get:
Qt_5.15.2_PRIVATE_APIIs there a way for me to compile my project with the libraries from the package instead of the ones from the Qt installer?
-
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 foundRunning strings /usr/lib64/libQt5Quick.so.5|grep Qt.*API I get:
Qt_5.15.2_PRIVATE_APIIs there a way for me to compile my project with the libraries from the package instead of the ones from the Qt installer?
@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? -
@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?@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.
-
@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.
@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. -
@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.@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! -