probonopd / linuxdeployqt

Makes Linux applications self-contained by copying in the libraries and plugins that the application uses, and optionally generates an AppImage. Can be used for Qt and other applications
Other
2.19k stars 409 forks source link

"Error: Qt license file was not found!" when Qt from using qt.io #208

Open probonopd opened 6 years ago

probonopd commented 6 years ago
qmake CONFIG+=release CONFIG+=force_debug_info linuxdeployqt.pro
Error: Qt license file was not found!
Project ERROR: License check failed! Giving up ...

Reference: https://travis-ci.org/probonopd/linuxdeployqt/builds/326146746#L2280-L2280

probonopd commented 6 years ago

According to ddubya on #qt on irc.freenode.net, http://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt5_5100/qt.qt5.5100.gcc_64/ is "the commercial version" which cannot be used in GPL mode.

Seemingly the GPL version is not available in individual subcomponents but only as a 1G archive at https://download.qt.io/archive/qt/5.10/5.10.0/qt-opensource-linux-x64-5.10.0.run. As a workaround, we would need to download and repackage that (possibly as a squashfs file, even).

BUT https://download.qt.io/archive/online_installers/3.0/qt-unified-linux-x64-3.0.2-online.run can install in "open source mode" if no credentials are entered. So it must be doing some "black magic"...

1 2 3

I can never get it to install though... If it did, I could compare with xxd pre- and post- installation.

probonopd commented 6 years ago

Turns out that in gcc_64/mkspecs/qconfig.pri one must change: QT_EDITION = OpenSource