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

Author Topic: Why is SFML 2.0 crashing?  (Read 4378 times)

0 Members and 1 Guest are viewing this topic.

Criminull

  • Newbie
  • *
  • Posts: 5
    • View Profile
Why is SFML 2.0 crashing?
« on: January 03, 2012, 11:16:09 pm »
hi, since i download the 2.0 SFML i cant do anything
even the base code framework makes BEX crashes, ATI driver crashes,
bluescreens, satan screams and squeals


Code: [Select]

#include <SFML\Graphics.hpp>

#pragma comment(lib,"sfml-system-d.lib")
#pragma comment(lib,"sfml-window-d.lib")
#pragma comment(lib,"sfml-graphics-d.lib")

int main()
{
    sf::RenderWindow App(sf::VideoMode(800, 600, 32), "SFMLtest");
sf::Event Event;

App.SetFramerateLimit(20);
    while (App.IsOpened())
    {    
        while (App.PollEvent(Event))
        {
            if (Event.Type == sf::Event::Closed)
                App.Close();

            if (Event.Type == sf::Event::KeyPressed)
            {
                if (Event.Key.Code == sf::Keyboard::Escape)
                    App.Close();
            }
        }
        App.Clear(sf::Color(200, 0, 0));
        App.Display();
    }
    return EXIT_SUCCESS;
}

its Debugging mode with SFML_DYNAMIC set
VC10

i downloaded latest include files from github
and libs/dlls  compilted by
http://www.sfml-dev.org/forum/viewtopic.php?t=6548

i just dont know what to do with that, dont wanna go back to 1.6

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
Why is SFML 2.0 crashing?
« Reply #1 on: January 03, 2012, 11:29:57 pm »
Code: [Select]

#pragma comment(lib,"sfml-system-d.lib")
#pragma comment(lib,"sfml-window-d.lib")
#pragma comment(lib,"sfml-graphics-d.lib")

^
This is not how you include the SFML .lib files for starters. :(

Here's how you include them in your project: :)

http://
http://www.youtube.com/watch?v=fMNlUfvWOwA&feature=mfu_in_order&list=UL


This person shows how to setup your compilers for SFML. In this case he is setting up on Visual Studio 2010.  He has a setup for Code::Blocks as well.

Hope this helps. :)
I have many ideas but need the help of others to find way to make use of them.

Criminull

  • Newbie
  • *
  • Posts: 5
    • View Profile
Why is SFML 2.0 crashing?
« Reply #2 on: January 03, 2012, 11:55:38 pm »
i did just like SFMLCoder, but jingle balls...
 it sometimes shows me the red window
but everytime i quit that im getting BEX errors and sometimes on running, drivers crashes :< i cant even sleep like that, having fact that it doesnt work in my mind

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
Why is SFML 2.0 crashing?
« Reply #3 on: January 04, 2012, 12:45:47 am »
:(

Not sure how to help now.

It seems like it is more likely an issue with CMake but I'm not sure on that note since I've been having trouble with SFML2.0 and haven't got it up and running yet either but I did get mostly set though.  Try the earlier video that shows how to setup SFML using CMake.  That might clear up your problem but I'm sure of that. :( :?:

Could you post the error that you are getting?
I have many ideas but need the help of others to find way to make use of them.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Why is SFML 2.0 crashing?
« Reply #4 on: January 04, 2012, 07:51:47 am »
Which CMake options did you use to compile SFML?
Laurent Gomila - SFML developer

BMB

  • Newbie
  • *
  • Posts: 21
    • View Profile
Re: Why is SFML 2.0 crashing?
« Reply #5 on: January 04, 2012, 08:43:28 am »
Quote from: "Criminull"

i downloaded latest include files from github
and libs/dlls  compilted by
http://www.sfml-dev.org/forum/viewtopic.php?t=6548

i just dont know what to do with that, dont wanna go back to 1.6


Those pre-compiled libs are from Dec 21, before the merge of the new grapihics API (Dec 25), while the latest include files from git are after the merge. There were a few major changes, and so your includes files don't match your libs.

Criminull

  • Newbie
  • *
  • Posts: 5
    • View Profile
Why is SFML 2.0 crashing?
« Reply #6 on: January 04, 2012, 04:54:28 pm »
can anyone here please upload his working SFML dynamic libs with include folder? ;/

im on Win7 64x and using VC10

@Down

i hate CMake :{
but looks like ill have to compile it by self

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Why is SFML 2.0 crashing?
« Reply #7 on: January 04, 2012, 05:01:23 pm »
Quote from: "Laurent"
Which CMake options did you use to compile SFML?
Laurent Gomila - SFML developer

Criminull

  • Newbie
  • *
  • Posts: 5
    • View Profile
Why is SFML 2.0 crashing?
« Reply #8 on: January 04, 2012, 05:28:33 pm »
http://www.speedyshare.com/file/qgc7X/download/SFML2.0.rar

i built it using Cmake

heres the working 2.0 sfml with all the include files and libs
with  -d prefix ( for debug)