SFML community forums

Help => General => Topic started by: ThomasWilliamson on February 24, 2014, 12:45:14 am

Title: [SOLVED] Installation of SFML to Visual Studio Express 2013
Post by: ThomasWilliamson on February 24, 2014, 12:45:14 am
Okey, Hello everyone!

I have spent, 6 hours (literally) trying to get SFML2.1 to work on my new installation of Visual Studio Express 2013

I have tried compiling it myself, using other peoples compiles for 2013 Express and a whole host of other things.

My current error i seem to be getting is:
(http://i.imgur.com/CKqEUVL.png)

Can someone please help me get this thing installed before i blow a fuse?

Thanks
Title: Re: Installation of SFML to Visual Studio Express 2013
Post by: zsbzsb on February 24, 2014, 01:40:02 am
What you posted shows absolutely nothing that we can use to help you.

This link (http://www.sfml-dev.org/tutorials/2.1/compile-with-cmake.php) is your best bet.
Title: Re: Installation of SFML to Visual Studio Express 2013
Post by: ThomasWilliamson on February 24, 2014, 06:39:18 am
I have followed that tutorial and ended up with the same thing happening.

Using this one:
http://en.sfml-dev.org/forums/index.php?topic=13549.0

Also gave me the same error.

I am not exactly sure what info you need. Sorry.
Title: Re: Installation of SFML to Visual Studio Express 2013
Post by: eXpl0it3r on February 24, 2014, 09:09:42 am
The error code simply states, that the application has been prematurely closed/crashed. To figure out what happend, you'll have to use your debugger. Step into the application and go through it step-by-step, so you'll see where exactly it crashes. Don't forget to run your application as debug build.
And keep in mind that the library has to match the compiler version & setting (debug-debug, release-release).
Title: Re: Installation of SFML to Visual Studio Express 2013
Post by: ThomasWilliamson on February 24, 2014, 09:49:16 am
Hmm, i have the debug to debug and such...

Im using the default program:
#include <SFML/Graphics.hpp>

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

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

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

        return 0;
}

When i tell it to go through debugging, it just does the exact same thing, nothing in the error list.

Im going to try re-setup SFML.
Title: Re: Installation of SFML to Visual Studio Express 2013
Post by: eXpl0it3r on February 24, 2014, 09:56:35 am
What if you create a new project with just:

#include <iostream>
int main()
{
    std::cout << "Hello World" << std::endl;
}

If that doesn't work, you might have a corrupted VS install or something else, that's not really related to SFML.
Title: Re: Installation of SFML to Visual Studio Express 2013
Post by: ThomasWilliamson on February 24, 2014, 10:13:34 am
Ended up reinstalling it with another guys compile (already done several other peoples that didn't work)

http://en.sfml-dev.org/forums/index.php?topic=13010.0

This one works a treat for it :)

only thing i needed to do other then follow the instructions was to convert his template project into an actual template :)


Thanks for the help folks, with some luck you might see somthing il make in the future! (as unlikely as it is)