1
General / libgudev vs libudev
« on: March 15, 2022, 12:13:23 am »
RHEL 8 (8.5 in particular) supports libgudev but not libudev. Libgudev is designed to "consume library libudev from subpackage libudev". The SFML cmake configuration does not appear to be able to use libgudev. When attempting to build SFML-2.5.1, cmake reports
-- UDev not found.
-- UDev: You can specify includes: -DUDEV_PATH_INCLUDES=/opt/udev/include
-- currently found includes: UDEV_INCLUDE_DIR-NOTFOUND
-- UDev: You can specify libs: -DUDEV_PATH_LIB=/opt/udev/lib
-- currently found libs: UDEV_LIBRARIES-NOTFOUND
CMake Error at cmake/Modules/FindUDev.cmake:49 (MESSAGE):
Could not find UDev library
Call Stack (most recent call first):
cmake/Macros.cmake:279 (find_package)
src/SFML/Window/CMakeLists.txt:276 (sfml_find_package)
-- Configuring incomplete, errors occurred!
Adding the paths to libgudev headers and library does not make any change.
cmake -DUDEV_PATH_INCLUDES=/usr/include/gudev-1.0/ -DUDEV_PATH_LIB=/usr/lib64 ..
gives the same result as above.[ Packages libgudev and libgudev-devel have been installed.]
Does SFML work with libgudev? How can I modify the 2.5.1 cmake config to make it succeed?
-- UDev not found.
-- UDev: You can specify includes: -DUDEV_PATH_INCLUDES=/opt/udev/include
-- currently found includes: UDEV_INCLUDE_DIR-NOTFOUND
-- UDev: You can specify libs: -DUDEV_PATH_LIB=/opt/udev/lib
-- currently found libs: UDEV_LIBRARIES-NOTFOUND
CMake Error at cmake/Modules/FindUDev.cmake:49 (MESSAGE):
Could not find UDev library
Call Stack (most recent call first):
cmake/Macros.cmake:279 (find_package)
src/SFML/Window/CMakeLists.txt:276 (sfml_find_package)
-- Configuring incomplete, errors occurred!
Adding the paths to libgudev headers and library does not make any change.
cmake -DUDEV_PATH_INCLUDES=/usr/include/gudev-1.0/ -DUDEV_PATH_LIB=/usr/lib64 ..
gives the same result as above.[ Packages libgudev and libgudev-devel have been installed.]
Does SFML work with libgudev? How can I modify the 2.5.1 cmake config to make it succeed?