PDA

View Full Version : how to create setup file for qt desktop application on linux x86?



sindhu
27th February 2014, 05:53
Hello team,

Iam newbie to Qt, I developed a desktop application with Qt-4.7.4 in linux x86 platform.
Now my application completed successfully and next is to create set up file for my application. In forum i found that there are two ways:
1)To link Qt Statically
2)To create shared libraries

I am trying 1st appraoch,but it is little bit confusing for me.I copied the missing libraries to my application directory.

Can anyone explain me the detailed description of how to complete it?.

Please help me to save my valuable time....

Infinity
27th February 2014, 16:22
If you want to link Qt statically, you need a commercial license.
I think there is already a detailed description about deployment:
http://qt-project.org/doc/qt-4.8/deployment.html
http://qt-project.org/doc/qt-4.8/deployment-x11.html
If you need further information, please ask more specific questions.

anda_skoa
27th February 2014, 16:57
If you want to link Qt statically, you need a commercial license.

Since when?

Cheers,
_

ChrisW67
27th February 2014, 20:47
Take a look at libusb (http://www.libusb.org)

As I understand it no version of the Qt licence prohibits static linking but they do restrict distribution of the result. If you are distributing statically linked executables (without source) to third parties and you cannot provide a method for them to relink a Qt version of their choice into the application then you cannot use the LGPL licence for Qt. You can statically link under any licence if you are not distributing the binary.

Infinity
27th February 2014, 21:05
Sorry, that statement was not correct. I think I read it somewhere, but after searching again I found the following:

It is possible to build Qt statically as long as your application is open-source and you provide the source. If you want to keep your source closed, you either need an expensive commercial license, or you need to use dynamic linking.
from: http://stackoverflow.com/questions/12654613/static-linking-qt-with-open-source-version

anda_skoa
28th February 2014, 10:20
Yes, but not fully correct.

As ChrisW67 said, the matter is being able to relink the application. That is inherently possible when the distribution happens in source or sources plus build system are available, but it is not a requirement.

A static library is basically just an archive of object files and the linker resolved the symbols needed by the application object files against those library object files.

No where, not even in the normal build, does the linker require the source files of the application.

Anyway, really offtopic here, doesn't help sinduh in any way.

Cheers,
_