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

Author Topic: Touch.hpp missing  (Read 2371 times)

0 Members and 1 Guest are viewing this topic.

JPB515

  • Newbie
  • *
  • Posts: 6
    • View Profile
Touch.hpp missing
« on: May 15, 2017, 12:43:21 pm »
Trying to build a gui for a Raspberry Pi project but I can't seem to find Touch.hpp. Compiling a program containing

#include <Touch.hpp>

throws the usual not found error, and looking in the SFML/Window folder reveals that Touch.hpp is not there. If I copy the header off the GitHub repo, what source files do I need and where do they need to go?

Original install was on ubuntu 14.04 via apt-get.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Touch.hpp missing
« Reply #1 on: May 15, 2017, 01:51:28 pm »
Quote
Trying to build a gui for a Raspberry Pi project but I can't seem to find Touch.hpp
Touch.hpp was added "recently", so I guess your Ubuntu 14.04 provides an older version in official repositories.

Quote
If I copy the header off the GitHub repo, what source files do I need and where do they need to go?
You can't just add a few files from a newer version and expect it to work. You'll have to uninstall your old version, and then compile and install the latest version of SFML yourself, as explained in the corresponding tutorial.
Laurent Gomila - SFML developer

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Touch.hpp missing
« Reply #2 on: May 15, 2017, 05:15:42 pm »
And there's no touch support so far for Linux. If you know how the touch API works with xlib, feel free to make a PR or start a discussion about the implementation! :)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/