Where are the Qt6 headers (in Leap 15.6)?

In order to confirm bugreports.qt.io/browse/QTBUG-136715#comment-885596, I’ve run qmake -query QT_INSTALL_HEADERS, [1] which returns /usr/include/qt6. However, /usr/include/qt6 is empty! This, expectedly, causes qmake6 [2] to state that it is unable to locate the headers. I have no idea what else to set my .pro to.


  1. stackoverflow.com/revisions/56092405/1 ↩︎

  2. reddit.com/r/openSUSE/comments/tohkj2/comment/ms3psxs ↩︎

The undermentioned corroborates this, but it has no solution:

Perhaps, a useful prerequisite is to ensure that it’s properly installed:

Headers are provided by devel packages. Do you have Qt6 devel packages installed? You could start with qt6-core-devel. That at least starts filling /usr/include/qt6 (also other Qt6 devel packages use this path…).

Other needed Qt6 devel packages must be installed when needed by your programm which you want to build/compile. Use YaST Software to find packages…
As you spread your question over different forums and a real description/error message is missing, it is hard to guess which devel package you want or need. Based on the informations you provided in other forums, you may also need qt6-gui-devel and qt6-widgets-devel.

Simply read the compillation output of your program and install the missing devel packages.

1 Like

@hui, I believed that I had all of the *.-devel packages installed, but I appear to have not had, since reddit.com/r/openSUSE/comments/zmsyn7/comment/j0e16de caused 395 to be installed, after which the program compiled:

Thank you!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.