Cross Platform Client Server application
-
This is somewhat surprising me.. On windows, when i develop applications using Visual C++ (no Qt involved), I simple build the whole project as using in a static library, and as a result, I just deploy the single Exe of my applicaiton; no dll, no lib attached.. I wonder how it is not possible in Qt?
Kahsif
-
Static linking is not always the best solution. In fact, it is not supported for Qt Webkit module, so this might not work correctly in that case. And you might have problems with Qt plugins too.
Also, you have to keep in mind the licensing issues (please search the forums, it was discussed recently). The base line is that static linking against Qt most probably forces you to release the source code of your app under GPL (but I'm not a lawyer!).
On the mac, one can put all the libraries into the application bundle and that's it. The bundle appears like a single file to the user, there's hardly any installer needed (and in fact Mac users do not like them).
-
Volker thank you so much for such an informative reply.. Just one more favour.. how do i know which libraries will be needed?
One more thing: if i bundle the libraries into the application bundle, will the application work if Qt is not installed on Mac?
Kashif
-
If you put the framework bundles into the app bundle, then it runs on a Qt-less mac box too.