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

Author Topic: Try to compile SFML Library (file not found)  (Read 1889 times)

0 Members and 2 Guests are viewing this topic.

Bedda

  • Newbie
  • *
  • Posts: 7
    • View Profile
Try to compile SFML Library (file not found)
« 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.


Bedda

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Try to compile SFML Library (file not found)
« Reply #1 on: February 03, 2021, 04:38:12 pm »
Sorry for the double post.

Stauricus

  • Sr. Member
  • ****
  • Posts: 369
    • View Profile
    • A Mafia Graphic Novel
    • Email
Re: Try to compile SFML Library (file not found)
« Reply #2 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)
Visit my game site (and hopefully help funding it? )
Website | IndieDB

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Try to compile SFML Library (file not found)
« Reply #3 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything