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

Author Topic: [Solved] Problem with Graphics after updating to 1.6  (Read 3778 times)

0 Members and 1 Guest are viewing this topic.

Lupinius

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
[Solved] Problem with Graphics after updating to 1.6
« 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

Meseira

  • Newbie
  • *
  • Posts: 15
    • View Profile
[Solved] Problem with Graphics after updating to 1.6
« Reply #1 on: April 08, 2010, 01:12:26 am »
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.

Lupinius

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
[Solved] Problem with Graphics after updating to 1.6
« Reply #2 on: April 08, 2010, 01:31:22 pm »
Code: [Select]
#include <SFML/Graphics.hpp>

int main () {

    sf::RenderWindow App(sf::VideoMode(800, 600), "Please work");

    while (App.IsOpened()) {
        App.Clear();
        App.Display();
    }

    return 0;
}


Quote
eric@eric-desktop:~/Desktop$ ./sfmltest
Segmentation fault


Anything not involving graphics works fine though. Even
Code: [Select]
#include <SFML/Graphics.hpp>

int main () {

    sf::RenderWindow App(sf::VideoMode(800, 600), "Please work");

    while (App.IsOpened()) {
    }

    return 0;
}

works.

Meseira

  • Newbie
  • *
  • Posts: 15
    • View Profile
[Solved] Problem with Graphics after updating to 1.6
« Reply #3 on: April 08, 2010, 05:12:06 pm »
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?

Lupinius

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
[Solved] Problem with Graphics after updating to 1.6
« Reply #4 on: April 08, 2010, 07:08:11 pm »
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

Meseira

  • Newbie
  • *
  • Posts: 15
    • View Profile
[Solved] Problem with Graphics after updating to 1.6
« Reply #5 on: April 08, 2010, 07:35:55 pm »
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.

Lupinius

  • Jr. Member
  • **
  • Posts: 85
    • View Profile
[Solved] Problem with Graphics after updating to 1.6
« Reply #6 on: April 08, 2010, 08:17:01 pm »
Forgot to delete the lib files :/ Stupid me

Thank you very much for the detailed information!