PDA

View Full Version : Install our programs into other pcs



gremboxic
10th June 2011, 13:54
Hi!
I'd been developping an aplication with Qt(4.7) + C++ + Linux.
Now I want to test the aplication into others pc like other linux or windows. I exported the aplication into a windows PC that can compile the projecte, and I take the windows executable. But when I export the aplication into others pc that don't have de qt libraries doesn't work, even if execute the aplication from the windows pc that have the qt libraries, the unique way that I could start the aplication is from et Qt console.

I supose that if I could put the libraries into the system libreary path it already work fine.
How I can generate an apliaction that works fine on every pc? with or without qt libraries installed

Thanks people
Faithfully Victor

Lesiok
10th June 2011, 14:35
RTFM How to deploy Qt application on Windows (http://doc.trolltech.com/4.7/deployment-windows.html) and for X-11 platforms (http://doc.trolltech.com/4.7/deployment-x11.html)

giantdragon
10th June 2011, 14:38
Simplest way to deploy your app on another PC with Windows is to copy necessary libraries from "C:\QtSDK\Desktop\Qt\4.7.3\mingw\bin" to directory with your EXE.
You should copy at least following libs:


libgcc_s_dw2-1.dll
mingwm10.dll
QtCore4.dll
QtGui4.dll

If you use additional modules (QtNetwork, QtSQL etc.) copy also these libs.