lirios/libliri

Something cmake related is preventing lirios-shell from building

n3rdopolis opened this issue · 3 comments

It seems to be struggling trying to find Qt6Core5Compat although I do have it built

I get

-- The CXX compiler identification is GNU 12.2.0
-- The C compiler identification is GNU 12.2.0
-- 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
-- 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
CMake Warning at /opt/share/ECM/kde-modules/KDEInstallDirsCommon.cmake:385 (message):
  KDE_INSTALL_BINDIR, KDE_INSTALL_LIBDIR and KDE_INSTALL_INCLUDEDIR should
  either all be absolute paths or all be relative paths.
Call Stack (most recent call first):
  /opt/share/ECM/kde-modules/KDEInstallDirs6.cmake:190 (include)
  /opt/share/ECM/kde-modules/KDEInstallDirs.cmake:15 (include)
  CMakeLists.txt:20 (include)


-- Installing in the same prefix as Qt, adopting their path scheme.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE  
-- Looking for sys/prctl.h
-- Looking for sys/prctl.h - found
-- Found OpenGL: /opt/lib/x86_64-linux-gnu/libOpenGL.so   
-- Found WrapOpenGL: TRUE  
-- Found XKB: /opt/lib/x86_64-linux-gnu/libxkbcommon.so (found suitable version "1.6.0", minimum required is "0.5.0") 
-- Found WrapVulkanHeaders: /opt/include  
-- Found Wayland_Client: /opt/lib/x86_64-linux-gnu/libwayland-client.so (found version "1.22.90") 
-- Found Wayland_Server: /opt/lib/x86_64-linux-gnu/libwayland-server.so (found version "1.22.90") 
-- Found Wayland_Cursor: /opt/lib/x86_64-linux-gnu/libwayland-cursor.so (found version "1.22.90") 
-- Found Wayland_Egl: /opt/lib/x86_64-linux-gnu/libwayland-egl.so (found version "18.1.0") 
-- Found Wayland: /opt/lib/x86_64-linux-gnu/libwayland-client.so;/opt/lib/x86_64-linux-gnu/libwayland-server.so;/opt/lib/x86_64-linux-gnu/libwayland-cursor.so;/opt/lib/x86_64-linux-gnu/libwayland-egl.so (found suitable version "1.22.90", minimum required is "1.15")  
-- Found WaylandScanner: /opt/bin/wayland-scanner  
-- Checking for module 'libsystemd'
--   Found libsystemd, version 252
-- The following features have been enabled:

 * Shell::Systemd, Enable systemd support

-- The following features have been disabled:

 * Liri::DevelopmentBuild, Build Liri Shell for development

-- Performing Test PAM_MESSAGE_CONST
-- Performing Test PAM_MESSAGE_CONST - Success
-- Found PAM: /usr/lib/x86_64-linux-gnu/libpam.so;/usr/lib/x86_64-linux-gnu/libdl.a
-- Found Wayland: /opt/lib/x86_64-linux-gnu/libwayland-client.so;/opt/lib/x86_64-linux-gnu/libwayland-server.so;/opt/lib/x86_64-linux-gnu/libwayland-cursor.so;/opt/lib/x86_64-linux-gnu/libwayland-egl.so (found suitable version "1.22.90", minimum required is "1.15") found components: Server 
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1") 
-- Found XkbCommon: /opt/lib/x86_64-linux-gnu/libxkbcommon.so (found version "1.6.0") 
-- Found Wayland: /opt/lib/x86_64-linux-gnu/libwayland-client.so;/opt/lib/x86_64-linux-gnu/libwayland-server.so;/opt/lib/x86_64-linux-gnu/libwayland-cursor.so;/opt/lib/x86_64-linux-gnu/libwayland-egl.so (found version "1.22.90")  
-- Found Wayland: /opt/lib/x86_64-linux-gnu/libwayland-client.so;/opt/lib/x86_64-linux-gnu/libwayland-server.so;/opt/lib/x86_64-linux-gnu/libwayland-cursor.so;/opt/lib/x86_64-linux-gnu/libwayland-egl.so (found suitable version "1.22.90", minimum required is "1.15") found components: Server 
-- Configuring done (1.2s)
CMake Error at /opt/lib/x86_64-linux-gnu/cmake/Liri1Xdg/Liri1XdgTargets.cmake:55 (set_target_properties):
  The link interface of target "Liri::Xdg" contains:

    Qt6::Core5Compat

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /opt/lib/x86_64-linux-gnu/cmake/Liri1Xdg/Liri1XdgConfig.cmake:35 (include)
  src/compositor/CMakeLists.txt:8 (find_package)


CMake Error at /opt/lib/x86_64-linux-gnu/cmake/Liri1Xdg/Liri1XdgTargets.cmake:55 (set_target_properties):
  The link interface of target "Liri::Xdg" contains:

    Qt6::Core5Compat

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /opt/lib/x86_64-linux-gnu/cmake/Liri1Xdg/Liri1XdgConfig.cmake:35 (include)
  src/imports/compositor/CMakeLists.txt:11 (find_package)


CMake Error at /opt/lib/x86_64-linux-gnu/cmake/Liri1Xdg/Liri1XdgTargets.cmake:55 (set_target_properties):
  The link interface of target "Liri::Xdg" contains:

    Qt6::Core5Compat

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /opt/lib/x86_64-linux-gnu/cmake/Liri1Xdg/Liri1XdgConfig.cmake:35 (include)
  src/imports/shell-private/CMakeLists.txt:7 (find_package)


CMake Error at /opt/lib/x86_64-linux-gnu/cmake/Liri1Xdg/Liri1XdgTargets.cmake:55 (set_target_properties):
  The link interface of target "Liri::Xdg" contains:

    Qt6::Core5Compat

  but the target was not found.  Possible reasons include:

    * There is a typo in the target name.
    * A find_package call is missing for an IMPORTED target.
    * An ALIAS target is missing.

Call Stack (most recent call first):
  /opt/lib/x86_64-linux-gnu/cmake/Liri1Xdg/Liri1XdgConfig.cmake:35 (include)
  src/imports/taskmanager/CMakeLists.txt:8 (find_package)


-- Generating done (0.1s)
CMake Warning:
  Manually-specified variables were not used by the project:

    INSTALL_LIBDIR
    INSTALL_QMLDIR


CMake Generate step failed.  Build files cannot be regenerated correctly.

Playing around with Liri1XdgTargets.cmake gets it slightly further, but it's an auto-generated file...
This is CMake 3.27

Latest commits brought it much closer, had to run sed -i 's/Qt6CoreCompat/Qt6Core5Compat/g' src/xdg/Liri1XdgDependencies.cmake.in though

Never write code at 4 AM... :-/

shell CI now builds.