PDA

View Full Version : Qt executable



Pvr
6th December 2018, 18:33
hai all

I have a qt project which uses QWT libraries also.I want to make its exe and run it in another pc. How to set its dependencies. Can anyone help me?


PVR

d_stranz
7th December 2018, 16:09
Read the documentation on Qt Deployment (https://doc.qt.io/qt-5/deployment.html) for your favorite platform.

Pvr
9th December 2018, 08:57
hai..

Thanks for the reply.. I have read that article but that is about the deployment of Qt5.1 or above. My version is Qt 4.5.1 and I use CMakelist.txt for compilation. In CMakelists.txt I explicitly specify the path for QWT library like /home/it/qwt-6.1.3/lib. So when copying this exe to another PC, it creates problem.

PVR

d_stranz
10th December 2018, 17:09
You can find Qt 4 deployment documentation (https://doc.qt.io/archives/qt-4.8/deployment-windows.html) online.

cmake settings are for -building- your program. The path you specify for qwt only applies when you are building and linking the program on -your- PC. It has nothing to do with the PC where you want to install it. Deploying a Qt program usually requires more than just copying files around.