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

Author Topic: Can#t compile SFML files (File not found)  (Read 1148 times)

0 Members and 1 Guest are viewing this topic.

Bedda

  • Newbie
  • *
  • Posts: 7
    • View Profile
Can#t compile SFML files (File not found)
« on: February 01, 2021, 05:48:35 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.


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Can#t compile SFML files (File not found)
« Reply #1 on: February 17, 2021, 02:37:28 pm »
You need to install libxcursor-dev with the latest master version on Linux.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/