hyprwm / xdg-desktop-portal-hyprland

xdg-desktop-portal backend for Hyprland
BSD 3-Clause "New" or "Revised" License
273 stars 47 forks source link

Building issue maybe related to hyprland-protocols #238

Closed janemba closed 2 months ago

janemba commented 2 months ago

Hello,

I have an issue while building xdg-desktop-portal-Hyprland it look like the issue is related to hyprland-protocols. Below the log:

 $ cmake -DCMAKE_INSTALL_LIBEXECDIR=/usr/lib -DCMAKE_INSTALL_PREFIX=/usr -B build
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.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
-- Configuring XDPH in Release with CMake
-- Checking deps...
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE  
-- Found OpenGL: /usr/lib64/libOpenGL.so   
-- Found WrapOpenGL: TRUE  
-- Found XKB: /usr/lib64/libxkbcommon.so (found suitable version "1.5.0", minimum required is "0.5.0") 
-- Found WrapVulkanHeaders: /usr/include  
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.2") 
-- Checking for modules 'wayland-client;wayland-protocols;wayland-scanner;libpipewire-0.3;libspa-0.2;libdrm;gbm;hyprlang>=0.2.0'
--   Found wayland-client, version 1.22.0
--   Found wayland-protocols, version 1.34
--   Found wayland-scanner, version 1.22.0
--   Found libpipewire-0.3, version 1.0.4
--   Found libspa-0.2, version 0.2
--   Found libdrm, version 2.4.120
--   Found gbm, version 24.0.3
--   Found hyprlang, version 0.37.1
-- Checking for module 'sdbus-c++'
--   Found sdbus-c++, version 1.5.0
-- Checking for module 'hyprland-protocols'
--   Found hyprland-protocols, version 0.2
-- Found WaylandScanner at /usr/bin/wayland-scanner
-- Found wayland-protocols at //usr/share/wayland-protocols
-- Configuring done (0.5s)
CMake Error in CMakeLists.txt:
  Imported target "PkgConfig::deps" includes non-existent path

    "/usr/local/include/hyprland/protocols"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

CMake Error in CMakeLists.txt:
  Imported target "PkgConfig::deps" includes non-existent path

    "/usr/local/include/hyprland/protocols"

  in its INTERFACE_INCLUDE_DIRECTORIES.  Possible reasons include:

  * The path was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and references files it does not
  provide.

-- Generating done (0.0s)
CMake Generate step failed.  Build files cannot be regenerated correctly.

Hyprland protocols is installed here:

[0/1] Installing files.
Installing /tmp/hyprland-protocols/protocols/hyprland-focus-grab-v1.xml to /usr/share/hyprland-protocols/protocols
Installing /tmp/hyprland-protocols/protocols/hyprland-global-shortcuts-v1.xml to /usr/share/hyprland-protocols/protocols
Installing /tmp/hyprland-protocols/protocols/hyprland-toplevel-export-v1.xml to /usr/share/hyprland-protocols/protocols
Installing /tmp/hyprland-protocols/build/hyprland-protocols.pc to /usr/share/pkgconfig

So I don't see any includes files/directories being installed but the install directory is /usr and not /usr/local. So I'm 100% sure it is related.

Any idea ?

janemba commented 2 months ago

I added the option --trace-expand to cmake, the output is in the attached file. log.txt