PDA

View Full Version : [Help] Configure static compile with Qt 5.0.2



phuongvu_0203
13th April 2013, 13:16
I build an GUI application based on Qt 5.0.2 in Ubuntu platfrom, then I copied the build folder into another Ubuntu machine and run it, but I got the error in terminal



error while loading shared libraries: libQt5WebKitWidgets.so.5: cannot open shared object file: No such file or directory
error while loading shared libraries: libQt5Widgets.so.5: cannot open shared object file: No such file or directory


After take a look at Google, I figured out that the problem is about static compile (share library and static library). I try to do some instruction with older Qt version, but not successful.

Could everyone tell me how can I fix that problem? please.
thannk you so much

ChrisW67
15th April 2013, 01:31
You do not need a static build of Qt to fix the problem you describe. You need to deploy the application and its dependencies correctly. Here is an example Hello World program deployment (http://www.qtcentre.org/threads/53956-Qt-5-linux-deployment-using-qt-conf-for-dynamic-linking?p=241789#post241789).