SFML community forums
Help => Graphics => Topic started by: Lupinius on April 07, 2010, 10:57:21 pm
-
After I installed SFML 1.6 every Time something is supposed to be drawn i just get an Segmentation fault. Everything except drawing operations works fine (and it's not because of my code, the examples also have create Segmentation faults).
I'm running Ubuntu 9.10 32 Bit Version. I don't know what other informations are needed, feel free to ask :P
-
I am using SFML 1.6 with Ubuntu to (but the 9.04). I have compilded the 1.6 version and I did not have any problem. Please, post your code and the the errors that you get.
-
#include <SFML/Graphics.hpp>
int main () {
sf::RenderWindow App(sf::VideoMode(800, 600), "Please work");
while (App.IsOpened()) {
App.Clear();
App.Display();
}
return 0;
}
eric@eric-desktop:~/Desktop$ ./sfmltest
Segmentation fault
Anything not involving graphics works fine though. Even
#include <SFML/Graphics.hpp>
int main () {
sf::RenderWindow App(sf::VideoMode(800, 600), "Please work");
while (App.IsOpened()) {
}
return 0;
}
works.
-
Your code compile and run well for me. Do you use 32 bits or 64 bits version? Did you uninstall all previous install of SFML before installing the 1.6? Did you try to make a local install?
-
32 bit version.
I'm not sure if I uninstalled all previous install of SFML though... What exactly do I need to do? I just deleted everything containing "SFML" :P
-
It depends what you did before... I you have juste replaced the SFML 1.4 (in the depots of Ubuntu), just remove with apt-get all the libsfml1.4-* packages.
If you have installed some previous version of SFML by compiling it, you can try to re-install them using "make checkinstall" if it works. Then, uninstall with apt-get. Else, you can do it in a dirty way: delete SFML in include and all the libsfml-* in lib.
Before doing such critical actions, you should try to make a local install of SFML 1.6 to see if graphics works well. Just modify Makefile in src/SFML/ (in the SFML-1.6 directory of sources) to change the DESTDIR path. Next you will just re-direct g++ with -I and -L.
-
Forgot to delete the lib files :/ Stupid me
Thank you very much for the detailed information!