简体   繁体   中英

Cmake build error on Fedora 37 ; cannot find UDev library

I was trying to make some games in SFML, download the source code on github but i have some dependencies issues while trying to build the code.

enter image description here

I'm working on Fedora 37. Anyone know how to solve it?

The library exit on /usr/lib/udev so i guess it's a path issues but i already try to export it on the $PATH but didn't work either.

There is no reason to build SFML on Fedora since it is in the repos. Just do

dnf install SFML SFML-devel

If you really want to build SFML from sources in Fedora 37, you have to

# dnf install systemd-devel

package, it will add missing udev dependency.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM