Package now relocatable - #42
Conversation
Adding qtrepotool subrepo. The build instructuctions say it should be there if building directly from a git checkout (http://doc.qt.io/qt-5/windows-building.html). PATH was being appended with qtrepotools/bin, but that directory doesn't exist without updating the submodule. Adding qtdeclarative subrepo. QtCreator won't allow the resulting Qt package to be in a kit unless qmlscene.exe is present, which is built in qtdeclarative.
Can't modify dictionary during iteration
Fixing windows call to configure.bat
Qt compiles in the installation path. If you move the installation, qmake can no longer locate various files. The prefix path can be overriden with qt.conf. Previously, the recipe put the onus on the package consumer to create a qt.conf file. It was unclear to the consumer that this should be done and it meant the Qt installation could not be used stand-alone or with QtCreator without jumping through hoops. The package step now creates a qt.conf in the bin directory, thus making the package relocatable.
|
Are you sure this solution is working? I tried something similar in the past but there was an issue since the qt.conf that was packaged contained the path from the package creator's machine (i.e. |
|
Yes, the key is that I tested it on other machines. Previously pre-built Qt libs wouldn't work because the build machine's path is hardcoded into qmake. Once I made this change, the path is overridden and the Qt package works. Note, this solution is generally useful any time you want to relocate your Qt installation, not just for packaging. So you could test it by creating yourself a |
Qt compiles in the installation path. If you move the installation, qmake can no longer locate various files. The prefix path can be overriden with qt.conf.
Previously, the recipe put the onus on the package consumer to create a qt.conf file. It was unclear to the consumer that this should be done and it meant the Qt installation could not be used stand-alone or with QtCreator without jumping through hoops.
The package step now creates a qt.conf in the bin directory, thus making the package relocatable.