Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qt6 builds still look for x11extras (failure on linux) #2532

Closed
oniGino opened this issue Nov 4, 2023 · 1 comment · Fixed by #2534
Closed

qt6 builds still look for x11extras (failure on linux) #2532

oniGino opened this issue Nov 4, 2023 · 1 comment · Fixed by #2534

Comments

@oniGino
Copy link

oniGino commented Nov 4, 2023

copyq-7.1.0

FAILED: src/CMakeFiles/copyq.dir/platform/x11/x11info.cpp.o
/usr/lib/llvm/16/bin/clang++ -DCOPYQ_BASH_COMPLETION_PREFIX=\"/usr/share/bash-completion/completions\" -DCOPYQ_DESKTOP_FILE=\"/usr/share/applications/com.github.hluk.copyq.desktop\" -DCOPYQ_ICON_NAME=\"copyq\" -DCOPYQ_ICON_PREFIX=\"/usr/share/icons/hicolor/scalable/apps/copyq\" -DCOPYQ_PLUGIN_PREFIX=\"/usr/lib64/copyq/plugins\" -DCOPYQ_THEME_PREFIX=\"/usr/share/copyq/themes\" -DCOPYQ_TRANSLATION_PREFIX=\"/usr/share/copyq/translations\" -DCOPYQ_WS_X11 -DHAS_X11TEST -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x051500 -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_TO_ASCII -DQT_NO_DEBUG -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_SVG_LIB -DQT_USE_STRINGBUILDER -DQT_WAYLANDCLIENT_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQXT_STATIC -I/var/tmp/portage/x11-misc/copyq-7.1.0/work/CopyQ-7.1.0_build/src/copyq_autogen/include -I/var/tmp/portage/x11-misc/copyq-7.1.0/work/CopyQ-7.1.0_build/src -I/var/tmp/portage/x11-misc/copyq-7.1.0/work/CopyQ-7.1.0/src/. -I/var/tmp/portage/x11-misc/copyq-7.1.0/work/CopyQ-7.1.0_build/src/platform/x11/systemclipboard -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6 -isystem /usr/include/qt6/QtCore -isystem /usr/lib64/qt6/mkspecs/linux-clang -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtGui/6.5.2 -isystem /usr/include/qt6/QtGui/6.5.2/QtGui -isystem /usr/include/qt6/QtCore/6.5.2 -isystem /usr/include/qt6/QtCore/6.5.2/QtCore -isystem /usr/include/qt6/QtWaylandClient -isystem /usr/include/qt6/QtNetwork -isystem /usr/include/qt6/QtSvg -isystem /usr/include/qt6/QtXml -isystem /usr/include/qt6/QtQml -isystem /usr/include/qt6/QtQmlIntegration  -O2 -pipe -march=native -O2 -pipe -mtune=native -flto=thin -fPIC -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wno-long-long -std=gnu++17 -fPIC -MD -MT src/CMakeFiles/copyq.dir/platform/x11/x11info.cpp.o -MF src/CMakeFiles/copyq.dir/platform/x11/x11info.cpp.o.d -o src/CMakeFiles/copyq.dir/platform/x11/x11info.cpp.o -c /var/tmp/portage/x11-misc/copyq-7.1.0/work/CopyQ-7.1.0/src/platform/x11/x11info.cpp
/var/tmp/portage/x11-misc/copyq-7.1.0/work/CopyQ-7.1.0/src/platform/x11/x11info.cpp:10:13: fatal error: 'QtGui/private/qtx11extras_p.h' file not found
#   include <QtGui/private/qtx11extras_p.h>
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

building against qt6 still seems to search for qtx11extras, no such package exists for qt6

would prefer a build flag option to drop X11 support entirely

@oniGino oniGino added the bug label Nov 4, 2023
@oniGino oniGino changed the title qt6 builds still like for x11extras qt6 builds still look for x11extras (failure on linux) Nov 4, 2023
@hluk
Copy link
Owner

hluk commented Nov 5, 2023

building against qt6 still seems to search for qtx11extras, no such package exists for qt6

I believe the header is usually available in a separate package (e.g. qt6-base-private-dev).

would prefer a build flag option to drop X11 support entirely

👍 I will add a build flag for cmake to disable this.

hluk added a commit that referenced this issue Nov 5, 2023
Mainly disables looking for private Qt headers for X11 support.

This effectively removes support for global shortcuts and getting window
titles.

Usage:

    cmake -DWITH_X11=OFF ...

Fixes #2532
@hluk hluk removed the bug label Nov 5, 2023
hluk added a commit that referenced this issue Nov 5, 2023
Mainly disables looking for private Qt headers for X11 support.

This effectively removes support for global shortcuts and getting window
titles.

Usage:

    cmake -DWITH_X11=OFF ...

Fixes #2532
hluk added a commit that referenced this issue Nov 5, 2023
Mainly disables looking for private Qt headers for X11 support.

This effectively removes support for global shortcuts and getting window
titles.

Usage:

    cmake -DWITH_X11=OFF ...

Fixes #2532
hluk added a commit that referenced this issue Nov 5, 2023
Mainly disables looking for private Qt headers for X11 support.

This effectively removes support for global shortcuts and getting window
titles.

Usage:

    cmake -DWITH_X11=OFF ...

Fixes #2532
@hluk hluk closed this as completed in #2534 Nov 5, 2023
hluk added a commit that referenced this issue Nov 5, 2023
Mainly disables looking for private Qt headers for X11 support.

This effectively removes support for global shortcuts and getting window
titles.

Usage:

    cmake -DWITH_X11=OFF ...

Fixes #2532
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants