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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - FromageChaud

Pages: [1]
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 !

2
Window / SFML and Raspberry PI 3
« on: January 19, 2017, 07:42:13 pm »
Hi everyone !

I have used SFML for many years. This is my first time posting here though, I think I have really tried everything and I cannot find similar problems on the web...

I recently successfully compiled SFML on RPI 3 (with Raspbian) following the instructions here : https://github.com/mickelson/sfml-pi

I then tested the basic code at the end of this tutorial (my include files are located in /usr/include/SFML)
http://www.sfml-dev.org/tutorials/2.4/start-vc.php

I successfully compile on my RPI without any warning with this line :
Code: [Select]
g++ main.cpp -o prgrm -lsfml-graphics -lsfml-window -lsfml-system(my .so files are located in /usr/lib)

When executing prgrm, the result is visually as expected, but the 200*200 squared image has no title bar. When I click on it, I am actually clicking on whatever application is "under" the image. So I cannot move the "window" nor interact with it nor close it (I have not found any other solution than killing the app in Task Manager).

Also I tested 2 solutions to this : adding the option sf::Style::Titlebar or sf::Style::Default do not help.

I have tested some looping animations on the image, those work.

I hope this kind of symptom is known by somebody here, please let me know !

Pages: [1]
anything