Deploy Qt5 on ubuntu
-
im new to Ubuntu(linux). i have created a application for windows . and i want to install it also on my ubuntu .
i have compiled project on ubuntu.now i want no create a .deb package for my application. i did google for a while and i discover that i need to copy some lib file to my project. but which one should i copy and which one not(in windows there was lots of .dll files means i can copy every file one by one). and even if some how i manage to copy all lib files how can create a .deb package for ubuntu?
-
@Anmol
Have you considered/Googled forlinuxdeployqt
? That seems to be the usual way to handle all dependencies etc. It probably does not produce a.deb
(I don't know), but it's worth weighing the pros & cons given what it does for packaging all the Qt stuff? -
@Anmol Use linuxdeployqt as @JonB suggested and then follow the description here: http://packaging.ubuntu.com/html/packaging-new-software.html
-
@jsulm linuxdeployqt is not working its giving me these error
./linuxdeployqt: relocation error: ./linuxdeployqt: relocation error: ./linuxdeployqt: symbol _ZdlPvm version Qt_5 not defined in file libQt5Core.so.5 with link time reference
i'm using Kubunu 19.04 . and version of Qt5 is 5.12.3 .
-
@jsulm
i got linuxdeployqt from here https://github.com/probonopd/linuxdeployqti was folowing this Youtube video for help Video link
-
Hi,
With what version of Qt did you build it ?
-
IIRC, you can force running it when that error message appears. Take a look at the options you can pass to linuxdeployqt.