Cannot find -lxkbcommon
-
I'm using Qt 6.7.2 in Fedora Linux 40. I build my project with
qmake.
When I compile i get the following error:Cannot find -lxkbcommon: No such file or directory.I was working on the same project using Qt 5.15.7 in Linux Manjaro and I recently switched to Qt6.
After some research I found thatQt X11 Extrasmodule has been removed from Qt6 and probably that is the reason for the error.
I havelibxcommonlibrary installed though.
I also found that the error is due to the following modulesQT += ... gui-private widgets-private...I followed some steps for porting to Qt6 from Qt doc.
Is there a workarround?
-
I'm using Qt 6.7.2 in Fedora Linux 40. I build my project with
qmake.
When I compile i get the following error:Cannot find -lxkbcommon: No such file or directory.I was working on the same project using Qt 5.15.7 in Linux Manjaro and I recently switched to Qt6.
After some research I found thatQt X11 Extrasmodule has been removed from Qt6 and probably that is the reason for the error.
I havelibxcommonlibrary installed though.
I also found that the error is due to the following modulesQT += ... gui-private widgets-private...I followed some steps for porting to Qt6 from Qt doc.
Is there a workarround?
@CSMath said in Cannot find -lxkbcommon:
I have libxcommon library installed though.
Then the library would have been found - you most likely forgot to install the -devel package.
-
I'm using Qt 6.7.2 in Fedora Linux 40. I build my project with
qmake.
When I compile i get the following error:Cannot find -lxkbcommon: No such file or directory.I was working on the same project using Qt 5.15.7 in Linux Manjaro and I recently switched to Qt6.
After some research I found thatQt X11 Extrasmodule has been removed from Qt6 and probably that is the reason for the error.
I havelibxcommonlibrary installed though.
I also found that the error is due to the following modulesQT += ... gui-private widgets-private...I followed some steps for porting to Qt6 from Qt doc.
Is there a workarround?
-
I'm using Qt 6.7.2 in Fedora Linux 40. I build my project with
qmake.
When I compile i get the following error:Cannot find -lxkbcommon: No such file or directory.I was working on the same project using Qt 5.15.7 in Linux Manjaro and I recently switched to Qt6.
After some research I found thatQt X11 Extrasmodule has been removed from Qt6 and probably that is the reason for the error.
I havelibxcommonlibrary installed though.
I also found that the error is due to the following modulesQT += ... gui-private widgets-private...I followed some steps for porting to Qt6 from Qt doc.
Is there a workarround?
@CSMath said in Cannot find -lxkbcommon:
I have
libxcommonlibrary installed though.libxkbcommonis needed (mind the k and the b).I also found that the error is due to the following modules
QT += ... gui-private widgets-privateLinking to private headers is asking for trouble. There have been massive changes from Qt5 to Qt6. If you can compile your project without private headers, please do so. Using them anyway is at your own risk and beyond any support.
-
@CSMath said in Cannot find -lxkbcommon:
I have libxcommon library installed though.
Then the library would have been found - you most likely forgot to install the -devel package.
@Christian-Ehrlicher Looks like the
libxkbcommon-develwas not installed. I thoughed it was a subpackage oflibxkbcommon. I don't get the error now. -
@CSMath said in Cannot find -lxkbcommon:
I have
libxcommonlibrary installed though.libxkbcommonis needed (mind the k and the b).I also found that the error is due to the following modules
QT += ... gui-private widgets-privateLinking to private headers is asking for trouble. There have been massive changes from Qt5 to Qt6. If you can compile your project without private headers, please do so. Using them anyway is at your own risk and beyond any support.
@Axel-Spoerl said in Cannot find -lxkbcommon:
Linking to private headers is asking for trouble. There have been massive changes from Qt5 to Qt6. If you can compile your project without private headers, please do so. Using them anyway is at your own risk and beyond any support.
You're right. I removed the private moduled and compiled again. Now I don't get this error.
-
C CSMath has marked this topic as solved on
-
C CSMath has marked this topic as solved on
-
C CSMath has marked this topic as solved on