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 - Jarzka

Pages: [1]
1
General / Re: Getting Started: Runtime Crash
« on: November 04, 2012, 06:58:23 pm »
By the way I can't even run the example files found from SFML-2.0-rc\examples\shader. I start the exe file but nothing happens. :o

2
General / Re: Getting Started: Runtime Crash
« on: November 04, 2012, 06:36:31 pm »
I linked the project already in the previous post? The main.cpp is the same you introduced in the Getting started tutorial (I only added using namespace sf).
Quote
#include <SFML/Graphics.hpp>

using namespace sf;

int main()
{
    RenderWindow window(VideoMode(200, 200), "SFML works!");
    CircleShape shape(100.f);
    shape.setFillColor(Color::Green);

    while (window.isOpen())
    {
        Event event;
        while (window.pollEvent(event))
        {
            if (event.type == Event::Closed)
                window.close();
        }

        window.clear();
        window.draw(shape);
        window.display();
    }

    return 0;
}


I wanted to use C++11 and that's why I downloaded C::B without compiler and then I seperately downloaded MinGW. And there is the libgcc_s_dw2-1.dll file in MinGW/bin.

3
General / Re: Getting Started: Runtime Crash
« on: November 04, 2012, 06:18:11 pm »
Call stack:
#0 6E182B85   sf::VideoMode::VideoMode(this=0xc8, modeWidth=200, modeHeight=32, modeBitsPerPixel=2) (D:\developpement\sfml-master\src\SFML\Window\VideoMode.cpp:50)
#1 00401424   main() (main.cpp:7)

Error message:
Program received signal SIGSEGV, Segmentation fault.
In sf::VideoMode::VideoMode (this=0xc8, modeWidth=200, modeHeight=32, modeBitsPerPixel=2) at D:\developpement\sfml-master\src\SFML\Window\VideoMode.cpp:50 ()

4
General / Re: Getting Started: Runtime Crash
« on: November 04, 2012, 05:08:51 pm »
It's just a normal Windows program crash (Program has stopped working...). Code::Blocks debugger gives the following error: Program received signal SIGSEGV, Segmentation fault.

Here is the C::B project file if somebody would like to take a look at it:
https://dl.dropbox.com/u/19087490/SFML%20Template.7z

5
General / Re: Getting Started: Runtime Crash
« on: November 04, 2012, 05:04:37 pm »
Yes those dll's are in the same folder but the program still crashes. :/

EDIT: SFML 2.0. I have AMD graphics card. Does it matter?

6
General / Getting Started: Runtime Crash
« on: November 04, 2012, 04:52:38 pm »
I have read Getting started page but couldn't get SFML working properly with Code::Blocks. I can compile the test project included in the documentation but I only see the command line window crashing.

Checklist:
- I have libgcc_s_dw2-1.dll in MinGW/bin folder (and I have the latest version of MinGW installed) -> I downloaded Windows 32 bits - GCC DW2 (11.5 MB)
- SFML include/lib are added correctly to the project (sure, because I can compile the project)
- .a-files are added corectly (-d versions for debugger) and are in the follow order:
libsfml-audio.a
libsfml-network.a
libsfml-graphics.a
libsfml-window.a
libsfml-system.a

Anything else I can do? :/

Pages: [1]
anything