How to make binary distribution of Qt application for Linux

后端 未结 8 925
小蘑菇
小蘑菇 2020-12-13 20:36

I am developing cross-platform Qt application. It is freeware though not open-source. Therefore I want to distribute it as a compiled binary.

On windows there is no

相关标签:
8条回答
  • 2020-12-13 21:34

    Not an answer as such (sybreon covered that), but please note that you are not allowed to distribute your binary if it is statically linked against Qt, unless you have bought a commercial license, otherwise your entire binary falls under the GPL (or you're in violation of Qt's license.)

    If you have a commercial license, never mind.

    If you don't have a commercial license, you have two options:

    1. Link dynamically against Qt v4.5.0 or newer (the LGPL versions - you may not use the previous versions except in open source apps), or

    2. Open your source code.

    0 讨论(0)
  • 2020-12-13 21:39

    You can look into QtCreator folder and use it as an example. It has qt.conf and qtcreator.sh files in QtCreator/bin.

    lib/qtcreator is the folder with all needed Qt *.so libraries. Relative path is set inside qtcreator.sh, which should be renamed to you-app-name.sh

    imports,plugins,qml are inside bin directory. Path to them is set in qt.conf file. This is needed for QML applications deployment.

    0 讨论(0)
提交回复
热议问题