Unsolved Disable X11 dependencies for QtWebEngine build
-
Hi, I try to build Qt without dependencies to X11. In our environment we use Wayland, so X11 is not available. The QtWebEngine build however references X11 header in a Chromium third-party dependency. Is there a way to disable certain parts of the web engine?
Here is the failing compile output:
/CONAN/.conan/data/clang/10.0.0/conan_toolchain_catalog/build/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/bin/clang++ -MMD -MF obj/third_party/webrtc/modules/desktop_capture/desktop_capture_generic/screen_capturer_x11.o.d -DUSE_UDEV -DUSE_AURA=1 -DUSE_NSS_CERTS=1 -DUSE_OZONE=1 -DOFFICIAL_BUILD -DTOOLKIT_QT -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -DNO_UNWIND_TABLES -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -DWEBRTC_ENABLE_PROTOBUF=1 -DRTC_ENABLE_VP9 -DHAVE_SCTP -DENABLE_EXTERNAL_AUTH -DHAVE_WEBRTC_VIDEO -DLOGGING_INSIDE_WEBRTC -DWEBRTC_LIBRARY_IMPL -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=0 -DWEBRTC_CHROMIUM_BUILD -DWEBRTC_POSIX -DWEBRTC_LINUX -DABSL_ALLOCATOR_NOTHROW=1 -DWEBRTC_USE_X11 -DWEBRTC_USE_X11 -DNO_MAIN_THREAD_WRAPPING -Igen -I../../../../../../source/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium -I../../../../../../source/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/webrtc_overrides -I../../../../../../source/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/webrtc -Igen/third_party/webrtc -I../../../../../../source/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/abseil-cpp -I../../../../../../source/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/libyuv/include -Igen -fno-strict-aliasing --param=ssp-buffer-size=4 -fstack-protector -Wno-unknown-attributes -Wno-unknown-pragmas -Wno-unknown-warning-option -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -pthread -fcolor-diagnostics -fmerge-all-constants -m64 -no-canonical-prefixes -Wall -Wextra -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -Wimplicit-fallthrough -Wunreachable-code -Wthread-safety -Wextra-semi -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing -Wno-unneeded-internal-declaration -Wno-undefined-var-template -Wno-ignored-pragma-optimize -Wno-implicit-int-float-conversion -Wno-final-dtor-non-final-class -Wno-builtin-assume-aligned-alignment -Wno-deprecated-copy -Wno-non-c-typedef-for-linkage -Wno-pointer-to-int-cast -O2 -fno-ident -fdata-sections -ffunction-sections -fno-omit-frame-pointer -g0 -fvisibility=hidden -Wheader-hygiene -Wstring-conversion -Wtautological-overlap-compare -Wexit-time-destructors -Wglobal-constructors -Wno-shorten-64-to-32 -Wno-parentheses-equality -Wno-tautological-compare -Wno-undefined-bool-conversion -Wno-tautological-undefined-compare -std=c++14 -fno-exceptions -fno-rtti -fvisibility-inlines-hidden -c ../../../../../../source/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/webrtc/modules/desktop_capture/linux/screen_capturer_x11.cc -o obj/third_party/webrtc/modules/desktop_capture/desktop_capture_generic/screen_capturer_x11.o In file included from ../../../../../../source/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/webrtc/modules/desktop_capture/linux/screen_capturer_x11.cc:11: ../../../../../../source/qt-everywhere-src-5.15.2/qtwebengine/src/3rdparty/chromium/third_party/webrtc/modules/desktop_capture/linux/screen_capturer_x11.h:18:10: fatal error: 'X11/extensions/Xrandr.h' file not found #include <X11/extensions/Xrandr.h>
BG
Andreas