Talk:KDE package guidelines

From ArchWiki
Latest comment: Tuesday at 19:51 by Ashark in topic Install prefix for KF6

Address the expansion template to "Force Qt version"

We have removed the information regarding selecting between Qt4 and Qt5, but since Qt6 exists now, we should probably document how to select the right qmake binary, as it appears the issue still exists. Here's a draft below, as I'm not confident what I wrote is error-free. --Erus Iluvatar (talk) 10:12, 26 February 2023 (UTC)Reply

Draft

On systems where multiple Qt versions are installed, qmake is not always the desired version, to force cmake to use Qt version n with an environment variable:

export QT_SELECT=n

or pass explicitly the right binary to cmake:

-DQT_QMAKE_EXECUTABLE=/path/to/desired/qmake_executable

Install prefix for KF6

This section needs to be updated for KF6. kf5-config has been deprecated in favor of qtpaths, however /usr/bin/qtpaths is currently part of qt5-tools, while the version from qt6-base is under /usr/lib/qt6/bin/qtpaths.

Most packages from the AUR ignore these guidelines anyway and hard-code the path to /usr.

So what would the proper way of handling the install prefix for KF6 be? Marcel83 (talk) 09:29, 21 April 2024 (UTC)Reply

This in theory would be $(/usr/lib/qt6/bin/qtpaths --install-prefix). But as AUR packages are made for AUR users, there is no need to soft code the prefix. Users who need their custom build could edit the options themselves. Ashark (talk) 19:51, 23 July 2024 (UTC)Reply