SFML community forums

Help => General => Topic started by: Bedda on February 03, 2021, 04:37:09 pm

Title: Try to compile SFML Library (file not found)
Post by: Bedda on February 03, 2021, 04:37:09 pm
Hello
I try to compile the SFML Library for my Ubuntu 20.04 System.
first i try it with the QTCreator but a error appeared.
then i try my luck under the terminal with the same result.
i checked the needed libraries but the are all installed.
and this Error was displayed

    44%] Building CXX object src/SFML/Window/CMakeFiles/sfml-window.dir/Unix/CursorImpl.cpp.o
    /home/bedda/Document/C++/SFML-files/SFML-master/src/SFML/Window/Unix/CursorImpl.cpp:32:10: fatal error: X11/Xcursor/Xcursor.h: File not found
       32 | #include <X11/Xcursor/Xcursor.h>
          |          ^~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.

Title: Re: Try to compile SFML Library (file not found)
Post by: Bedda on February 03, 2021, 04:38:12 pm
Sorry for the double post.
Title: Re: Try to compile SFML Library (file not found)
Post by: Stauricus on February 03, 2021, 07:54:23 pm
what command did you use in the terminal exacly?
are you trying to build from cmake? aren't you trying to use the QTCreator files (you probably have a option for that in cmake)
Title: Re: Try to compile SFML Library (file not found)
Post by: eXpl0it3r on February 13, 2021, 01:10:04 pm
With some of the latest changes on the master branch you also need the dependency libxcursor-dev.