SFML community forums
Help => Window => Topic started by: JPB515 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.
-
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.
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.
-
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! :)