SFML community forums
Help => General => Topic started by: MickeJ on February 24, 2025, 03:47:11 pm
-
Hi i followed the documentation and have the cmake fetch content example in my cmakelist. Downloads starts but then after a while cmake fails with below error message. I assume i need to install some Fedora package but which one?
cmake] CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
[cmake] Could NOT find X11 (missing: Xi)
[cmake] Call Stack (most recent call first):
[cmake] /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
[cmake] /usr/share/cmake/Modules/FindX11.cmake:676 (find_package_handle_standard_args)
[cmake] Build/Clang_Release/_deps/sfml-src/src/SFML/Window/CMakeLists.txt:279 (find_package)
-
The documentation states The exact name of the packages may vary from distribution to distribution.
Have anyone notes on what named Fedora packages is needed to build SFML v3?
-
You can use the fedora package page and search for the names that CMake will spit out or you can find in the list on the CMake template.
It's reporting that X11's Xi library is missing, so entering "Xi" in search box lead me to https://packages.fedoraproject.org/pkgs/libXi/libXi/
Since you want also the headers, you'll need to fetch the devel package, which you can see listed by clicking on "View other packages from libXi ยป", which lead me to https://packages.fedoraproject.org/pkgs/libXi/libXi-devel/
-
Awsome, your response got me in the right direction.
Below packages was missing for me. If anyone else looking for same info note that my Fedora installation is old so assume a fresh Fedora install needs more packages then just below.
libgudev-devel.x86_64
mesa-libGL-devel.x86_64
libXi.x86_64
Thx