1
Window / Re: SFML and Raspberry PI 3
« on: January 20, 2017, 01:23:30 am »
Well finally my problem is solved !
It was quite dumb (as always :p) : I just uninstalled completely SFML from my RPI, then reinstalled using sudo apt-get install libsfml-dev and not using https://github.com/mickelson/sfml-pi (it probably was a problem of version of SFML). The code of my first post now works.
Now on my project, it has almost nothing to do with SFML but I had to modify some parts of the code that were working on windows but not on RPI : std::to_string and std::vector of many objects with complex member attributes (like sf::RectangleShape) make the app crash. About the std::vector<sf::RectangleShape>, I just had to replace everything to make it a std::vector<sf::RectangleShape*>. I have found no solution for std::to_string but I don't actually need it anyway.
I hope this will help someone !
It was quite dumb (as always :p) : I just uninstalled completely SFML from my RPI, then reinstalled using sudo apt-get install libsfml-dev and not using https://github.com/mickelson/sfml-pi (it probably was a problem of version of SFML). The code of my first post now works.
Now on my project, it has almost nothing to do with SFML but I had to modify some parts of the code that were working on windows but not on RPI : std::to_string and std::vector of many objects with complex member attributes (like sf::RectangleShape) make the app crash. About the std::vector<sf::RectangleShape>, I just had to replace everything to make it a std::vector<sf::RectangleShape*>. I have found no solution for std::to_string but I don't actually need it anyway.
I hope this will help someone !