QMake plugin should allow specifying custom Qt paths

Bug #1670146 reported by Tim Süberkrüb
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

Some projects require Qt versions higher than what Ubuntu offers in it's archives.
Thus it would be useful if the QMake plugin would support specifying Qt related paths to a custom Qt version.
Right now it is necessary to write your own plugin for this purpose as done in [1], [2].

I'm not sure how this should be implemented though. Simply using an environment variable like in [2]?

[1]: https://github.com/tjyrinki/timostestapp2
[2]: https://github.com/tim-sueberkrueb/liri-calculator-snap

Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Where is the newer version of Qt coming from? [1] seems to have it as a part, [2] seems to just assume it's on the system somewhere. If the `qt-version` option was made a string instead of an enum, and validated against `qtchooser -list-version`, would that work? It would then set QT_SELECT to the right thing. I'm not certain that this would work if the newer Qt is a part though, it would require some experimentation.

Revision history for this message
Cris Dywan (kalikiana) wrote :

Based on a chat with Tim my understanding is that this is about building against a Qt version that's in a part but not in the archives. The Liri Calculator uses the LiriOS platform snap¹ which is based on Qt 5.8 which isn't in the archive, and apps must be built against the same headers. The platform snap doesn't provide any header files. The same problem exists with the upstream Qt 5.8 snap² that Timo made.

[1] https://github.com/lirios/platform-snap/blob/develop/snap/snapcraft.yaml
[2] https://github.com/tjyrinki/qt58

Revision history for this message
Tim Süberkrüb (tim-sueberkrueb) wrote :

As Christian said. Additionally there's also a possible use case for standalone apps
(not using any sort of platform snap) but still wanting to build against a Qt installation
not provided by the system archives but somewhere on the filesystem (e.g.
~/Qt/5.9/...).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.