Build cannot find Qt5WebSockets. """ CMake Error at /usr/lib64/cmake/Qt5/Qt5Config.cmake:28 (find_package): Could not find a package configuration file provided by "Qt5WebSockets" with any of the following names: Qt5WebSocketsConfig.cmake qt5websockets-config.cmake Add the installation prefix of "Qt5WebSockets" to CMAKE_PREFIX_PATH or set "Qt5WebSockets_DIR" to a directory containing one of the above files. If "Qt5WebSockets" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): webaccess/src/CMakeLists.txt:53 (find_package) """
Created attachment 924090 [details] emerge --info
Created attachment 924091 [details] build.log
Hi and thanks for the report. It seems that on your system, for whatever reason, Qt5 is chosen for the compilation, not Qt6 as expected. Since the ebuild specifies Qt6 dependencies only, it doesn´t ensure that all packages required for a Qt5-based build are available. I will attach an ebuild that should force cmake to choose Qt6. Could you please test it to see if it compiles fine? Thanks!
Created attachment 924941 [details] ebuild that should enforce usage of Qt6
(In reply to jannis from comment #4) > Created attachment 924941 [details] > ebuild that should enforce usage of Qt6 Unfortunately it still fails with the same error.
Created attachment 925553 [details] build.log
Of course, they are using the dreaded > find_package(QT NAMES Qt5 Qt6 REQUIRED COMPONENTS Core) approach. (In reply to mario.haustein from comment #5) > (In reply to jannis from comment #4) > > Created attachment 924941 [details] > > ebuild that should enforce usage of Qt6 > > Unfortunately it still fails with the same error. You could try with -DQT_DEFAULT_MAJOR_VERSION=6 insted of -DQT_VERSION_MAJOR=6 from the patch.
(In reply to mario.haustein from comment #5) > (In reply to jannis from comment #4) > > Created attachment 924941 [details] > > ebuild that should enforce usage of Qt6 > > Unfortunately it still fails with the same error. Thanks for testing and thanks Andreas for the proposal. Meanwhile, I found a setuo to reproduce the issue but all solutions did not work as expected. I have updated the PR (https://github.com/gentoo/gentoo/pull/41679) with a sed-based solution. @mario.haustein@hrz.tu-chemnitz.de: Can you please try the ebuild from there? Or shall I better attach the ebuild here as well? Thanks!