QT5 version of qt4-qtconfig?

I need to learn more, nothing new about that. Is there a version or something similar for QT5 to qt4-qtconfig?

"Unlike Qt4, Qt5 doesnā€™t ship a qtconfig utility to configure fonts, icons or styles. Instead, it will try to use the settings from the running DE. In KDE or GNOME this works well, but in other less popular DEs or WM it can lead to missing icons in Qt5 applications. One way to solve this is to fake the running desktop environment by setting XDG_CURRENT_DESKTOP=KDE or GNOME, and then using the corresponding configuration application to set the desired icon set. "

https://wiki.archlinux.org/index.php/Qt

Itā€™s unofficial, but maybe you can try http://qt-apps.org/content/show.php/Qt5+Configuration+Tool?content=168066 and act as a guinea pig reporting here your experience with it :grinning:

Iā€™m not at all sure I know what Iā€™m doing here. Havenā€™t compiled anything for long enough to have forgotten how. But It would be a good thing to relearn how to compile packages. Looked at some qmake tutorials online which led me to think I should:

$ qmake qt5ct.pro
Project ERROR: Could not find lrelease executable

Am I even remotely on the right track? And is there a really good tutorial for compiling QT programs?

When I get more time (when indeed?) Iā€™ll give a try at creating an .rpm also as I need to relearn that as well.

The README file luckly suggests the building steps and specifies a post-installation step needed to setup the software. According to the README file you need qttools installed (it contains lrelease), I believe in OMLx the package name is ā€œqt5-qttoolsā€.

My first attempt was in OM Lx 3 which has Qt 5.5. Now Iā€™m in 2014 (QT 5.4) where I would prefer to compile packages as it is a stable OS and:

$ qmake qt5ct.pro
No command ā€˜qmakeā€™ found,

$ rpm -qa | grep qt5

lib64qt5core5-5.4.2-0.1-omv2014.0.x86_64
lib64qt5dbus5-5.4.2-0.1-omv2014.0.x86_64
lib64qt5gui5-5.4.2-0.1-omv2014.0.x86_64
lib64qt5gui5-x11-5.4.2-0.1-omv2014.0.x86_64
lib64qt5widgets5-5.4.2-0.1-omv2014.0.x86_64
lib64qt5svg5-5.4.2-0.1-omv2014.0.x86_64
lib64qt5printsupport5-5.4.2-0.1-omv2014.0.x86_64
qt5-qtcore-i18n-5.4.2-0.1-omv2014.0.noarch
qt5-macros-5.4.2-0.1-omv2014.0.x86_64
lib64qt5network5-5.4.2-0.1-omv2014.0.x86_64
lib64qt5sql5-5.4.2-0.1-omv2014.0.x86_64
lib64qt5xml5-5.4.2-0.1-omv2014.0.x86_64
lib64qt5clucene5-5.4.2-0.1-omv2014.0.x86_64
lib64qt5sql5-sqlite-5.4.2-0.1-omv2014.0.x86_64
lib64qt5xmlpatterns5-5.4.2-0.1-omv2014.0.x86_64
lib64qt5gui5-minimal-5.4.2-0.1-omv2014.0.x86_64
lib64qt5help5-5.4.2-0.1-omv2014.0.x86_64
qt5-tools-5.4.2-0.1-omv2014.0.x86_64
qt5-qtxmlpatterns-i18n-5.4.2-0.1-omv2014.0.noarch

So there is qt5-tools installed. Guess if I want to do this I have to do it in OL Lx 3?

README say it should work with QT 5.4. Also package qmake5 is installed which is supposed to provide qmake, or so I thoughtā€¦

Edit: Apparently qmake has been renamed to qmake-qt5 for OM Lx 2014ā€¦

$ qmake-qt5 qt5ct.pro

Project ERROR: Could not find lrelease executable

Even with qt5-tools it still doesnā€™t find lrelease executable. Or so much stuff has been renamed to make this impossible?

I canā€™t try on a OMLx, so Iā€™m just making hypothesisā€¦
Is there a qt5-linguist-tools package? According to qt5-qttools/qt5-qttools.spec at master Ā· OpenMandrivaAssociation/qt5-qttools Ā· GitHub it should contain lrelease since this commit separated it from the qt5-tools package.

This is in OM Lx 3 fully updated. There is ā€˜qt5-linguist-toolsā€™ but next step ā€˜makeā€™ doesnā€™t work:

$ make

cd src/qt5ct-qtplugin/ && ( test -e Makefile || /usr/lib64/qt5/bin/qmake /home/ben79/Downloads/qt5ct-0.21/src/qt5ct-qtplugin/qt5ct-qtplugin.pro -o Makefile ) && make -f Makefile
Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!
make[1]: Entering directory ā€˜/home/ben79/Downloads/qt5ct-0.21/src/qt5ct-qtpluginā€™
/usr/lib64/qt5/bin/moc -DQT5CT_DATADIR="/usr/share" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib64/qt5/mkspecs/linux-clang -I/home/ben79/Downloads/qt5ct-0.21/src/qt5ct-qtplugin -I/home/ben79/Downloads/qt5ct-0.21/src -I/usr/include/qt5/QtGui/5.5.1 -I/usr/include/qt5/QtGui/5.5.1/QtGui -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I/usr/include/c++/5.3.1 -I/usr/include/c++/5.3.1/x86_64-mandriva-linux-gnu -I/usr/include/c++/5.3.1/backward -I/usr/local/include -I/usr/lib64/clang/3.7.1/include -I/usr/include main.cpp -o .build/moc/main.moc
make[1]: /usr/lib64/qt5/bin/moc: Command not found
Makefile:325: recipe for target ā€˜.build/moc/main.mocā€™ failed
make[1]: *** [.build/moc/main.moc] Error 127
make[1]: Leaving directory ā€˜/home/ben79/Downloads/qt5ct-0.21/src/qt5ct-qtpluginā€™
Makefile:43: recipe for target ā€˜sub-src-qt5ct-qtplugin-make_firstā€™ failed
make: *** [sub-src-qt5ct-qtplugin-make_first] Error 2

Iā€™m assuming that Iā€™m to run ā€˜makeā€™ as user (not root) in same directory as I run qmake? And if it had worked then become root and run ā€˜make installā€™?

Just tried in OM Lx 2014 also. Installed ā€˜qt5-linguist-toolsā€™ and ā€˜qt5-linguistā€™. Unfortunately same result. So either we got a little problem here in OpenMandriva or I donā€™t know what Iā€™m doing.

Edit: Possibly an incorrect path? There is no ā€˜mocā€™ in ā€˜/usr/lib64/qt5/bin/ā€™. 'nuther package needs to be installed to provide ā€˜mocā€™?

Ah ha. Its a missing package. ā€˜lib64qt5svg-develā€™. So I can to compile.
This is in 2014 at the moment.

Gotta go now. Will try to get this in OM Lx 3 tomorrow where itā€™s needed. Or I think it is needed,

And Iā€™ve got it installed in OM Lx 3 as well:

'Wonā€™t have time to work/play with these until tomorrow. I should make a How to for package dependencies to install, download location, and quick/easy compile instructions. It will be easy if any one else wants to test this.

We could have a package testing party!

1 Like

This is broken again:

# make install qt5ct.pro cd src/qt5ct-qtplugin/ && ( test -e Makefile || /usr/lib64/qt5/bin/qmake /home/ben79/Downloads/qt5ct-0.22/src/qt5ct-qtplugin/qt5ct-qtplugin.pro -o Makefile ) && make -f Makefile install make[1]: Entering directory '/home/ben79/Downloads/qt5ct-0.22/src/qt5ct-qtplugin' clang++ -pipe -Os -gdwarf-4 -Wstrict-aliasing=2 -pipe -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -flto -std=gnu++11 -Wall -W -dM -E -o .build/moc/moc_predefs.h /usr/lib64/qt5/mkspecs/features/data/dummy.cpp make[1]: clang++: Command not found Makefile:297: recipe for target '.build/moc/moc_predefs.h' failed make[1]: *** [.build/moc/moc_predefs.h] Error 127 make[1]: Leaving directory '/home/ben79/Downloads/qt5ct-0.22/src/qt5ct-qtplugin' Makefile:55: recipe for target 'sub-src-qt5ct-qtplugin-install_subtargets' failed make: *** [sub-src-qt5ct-qtplugin-install_subtargets] Error 2

Installed clang and it now installs.:joy: