On 19. 10. 21, 7:33, Jiri Slaby wrote:
On 19. 10. 21, 7:15, Jiri Slaby wrote:
I don't know the reason (maybe potentially conflicting headers with other packages), but it's done properly anyways: $ pkg-config --cflags wayland-client -I/usr/include/wayland
cmake works with ECM too: $ cat CMakeLists.txt project(wayland-find-test) cmake_minimum_required(VERSION 3.21)
find_package(ECM REQUIRED) ecm_use_find_modules(DIR ${CMAKE_BINARY_DIR}/cmake MODULES FindWayland.cmake NO_OVERRIDE) set(CMAKE_MODULE_PATH ${CMAKE_BINARY_DIR}/cmake)
find_package(Wayland REQUIRED COMPONENTS Client) message("Wayland headers found: " ${Wayland_INCLUDE_DIRS}) $ cmake . ... -- Found Wayland_Client: /usr/lib64/libwayland-client.so (found version "1.19.0") -- Found Wayland: /usr/lib64/libwayland-client.so (found version "1.19.0") found components: Client Wayland headers found: /usr/include/wayland -- Configuring done
On the top of that, detection in vulkan's cmake works too: $ cat CMakeLists.txt project(xyz) cmake_minimum_required(VERSION 3.21) include(/tmp/1.2.189.0/source/Vulkan-ValidationLayers/cmake/FindWayland.cmake) message("WAYLAND_CLIENT_INCLUDE_DIR=" ${WAYLAND_CLIENT_INCLUDE_DIR}) message("WAYLAND_SERVER_INCLUDE_DIR=" ${WAYLAND_SERVER_INCLUDE_DIR}) $ cmake . ... -- Found WAYLAND_CLIENT: /usr/lib64/libwayland-client.so -- Found WAYLAND_SERVER: /usr/lib64/libwayland-server.so -- Found WAYLAND_EGL: /usr/lib64/libwayland-egl.so -- Found WAYLAND_CURSOR: /usr/lib64/libwayland-cursor.so -- Found WAYLAND: /usr/lib64/libwayland-client.so;/usr/lib64/libwayland-server.so;/usr/lib64/libwayland-egl.so;/usr/lib64/libwayland-cursor.so WAYLAND_CLIENT_INCLUDE_DIR=/usr/include/wayland WAYLAND_SERVER_INCLUDE_DIR=/usr/include/wayland -- Configuring done -- Generating done So... what is the actual problem? -- js suse labs