Building libqtxdg in Fedora 30


(Ralph Williamson) #1

Following the instructions, “https://github.com/lxqt/lxqt/wiki/Building-from-source”, I get an error,

In file included from lxqt/libqtxdg/src/xdgiconloader/xdgiconloader.cpp:34: lxqt/libqtxdg/src/xdgiconloader/xdgiconloader_p.h:55:10: fatal error: private/qicon_p.h: No such file or directory 55 | #include <private/qicon_p.h> | ^~~~~~~~~~~~~~~~~~~ compilation terminated.

Can anyone suggest what package is needed in Fedora 30? I searched the includes and did not find this header. Thanks and BR, Ralph


(Stefano) #2

In debian looks like it is https://packages.debian.org/sid/i386/qtbase5-private-dev/filelist, in suse I find libQt5Gui-private-headers-devel

Mine on arch is /usr/include/qt/QtGui/5.13.1/QtGui/private/qicon_p.h

PS: looks like this one https://fedora.pkgs.org/30/fedora-x86_64/qt-devel-private-4.8.7-47.fc30.noarch.rpm.html


(Ralph Williamson) #3

Thanks! I installed the qt-devel-private package and it does indeed contain the header file, but the package places it here. “/usr/include/QtGui/private/qicon_p.h”

This is not in the include path as far as I can tell. Just thought I would let you know that I guess I have to modify the build.

BR,

Ralph


(Christian Dersch) #4

qt-devel-private is the wrong package (Qt4), you want qt5-qtbase-private-devel otherwise you risk a horrible mixture of Qt4 and Qt5 in your build, resulting in crashes.


(Ralph Williamson) #5

Thanks! That helped. In addition to those documented, I had to add the following additional packages to complete the full build of all repos.

qt5-qtbase-private-devel xorg-x11-drv-libinput-devel libXi-devel json-glib-devel gtk-doc intltool

Also, In case anyone is interested. I have a script I use to create the Fedora LXQT 30 Toolbox container I am using to build. I’d upload it if I knew how :slight_smile: Ralph