Build fails on Pop OS 22.04: "Qt5::WaylandClientPrivate" target not found
Closed this issue · 2 comments
regaldude commented
Running cmake [OPTIONS] [-DUSE_QT6=true] ..
returns the following output:
Output
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2")
-- Checking for module 'glib-2.0'
-- Found glib-2.0, version 2.72.1
-- Found GSettingSchemas: TRUE
-- Checking for module 'gtk+-3.0'
-- Found gtk+-3.0, version 3.24.33
-- The following OPTIONAL packages have been found:
* Qt5XkbCommonSupport (required version >= 5.15.2)
-- The following REQUIRED packages have been found:
* QT
* Qt5DBus
* Qt5 (required version >= 5.15.2)
* Qt5ThemeSupport
* GSettingSchemas
* Qt5Core (required version >= 5.15.2)
* Qt5Gui (required version >= 5.15.2)
* Qt5Widgets (required version >= 5.15.2)
* AdwaitaQt (required version >= 1.4.2)
* PkgConfig
* Qt5WaylandClient (required version >= 5.15.2), Qt Wayland decoration support
Required for QGnomePlatform decoration plugin
* Threads
-- Configuring done
CMake Error at src/decoration/CMakeLists.txt:11 (add_library):
Target "qgnomeplatformdecoration" links to target
"Qt5::WaylandClientPrivate" but the target was not found. Perhaps a
find_package() call is missing for an IMPORTED target, or an ALIAS target
is missing?
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.
grulja commented
Hi, I don't know much about Pop OS, but I guess it's Ubuntu based? Can you try to install qtwayland5-private-dev
?
regaldude commented
Thanks, that solved the issue!