Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Need help to build v3, what Fedora package is missing to build v3 on Fedora 41?  (Read 1916 times)

0 Members and 1 Guest are viewing this topic.

MickeJ

  • Newbie
  • *
  • Posts: 3
    • View Profile
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)
« Last Edit: February 24, 2025, 04:01:49 pm by MickeJ »

MickeJ

  • Newbie
  • *
  • Posts: 3
    • View Profile
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?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11175
    • View Profile
    • development blog
    • Email
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/
Official FAQ: https://www.sfml-dev.org/faq/
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

MickeJ

  • Newbie
  • *
  • Posts: 3
    • View Profile
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

 

anything