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

Pages: [1]
1
Graphics / Re: simple drawing shape problem
« on: June 09, 2014, 04:21:20 am »
ok I tried the vs2013 build from http://www.nightlybuilds.ch/
everything is set up the same, statically linked as well, that build worked as expected, the circle shows up at the beginning, I wonder what causes my build not working as expected (strangely the code compiled, linked and ran all well except this little glitch)??

2
Graphics / Re: simple drawing shape problem
« on: June 09, 2014, 03:54:59 am »
Could you post the actual code you are using?

#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;
}
 


3
Graphics / Re: simple drawing shape problem
« on: June 08, 2014, 07:25:10 pm »
Since there are no official prebuild binaries for vs2013 I assume you've rebuild SFML for vs2013 yourself. If not, then you are using an unsupported setup and I'm surprised the program even runs - in any case, if this is the situation then all bets are off.

yes i built SFML from source(latest version>2.1) in vs2013 express, and that circle program is statically linked, it just doesn't show the circle immediately, but when you set the window background into some colour (e.g. window.clear(sf::Color::Green)) the background colour shows up all right once the program runs, since i use the latest source, wouldn't it be SFML changed something in the latest version?

4
Graphics / simple drawing shape problem
« on: June 08, 2014, 04:21:07 pm »
Hi I use the code from http://www.sfml-dev.org/tutorials/2.1/start-vc.php to draw a simply circle, i run it in vs2013, the prpgram doesn't show the circle but the blank screen at the beginning until you change the windows size by dragging the border or maximizing the window,  then the circle shows up all good, why it doesn't show immediately when the program started?

5
General / Re: vs 2013 express build error Error 2 error LNK2001
« on: May 26, 2014, 01:29:54 pm »
cheers, the build went through without any error this time except the code doesn't run as expected, its supposed to show a cyan circle instead what i've got here is blank screen, but since now i got it linked i'll figure it out by myself, thank you for your help!

ps here the code maybe its for 1.2 i haven't got a chance to look into it

#include <SFML/Graphics.hpp>

int main()
{
        sf::RenderWindow window(sf::VideoMode(800, 480), "SFMLApplication");
        sf::CircleShape shape;
        shape.setRadius(40.f);
        shape.setPosition(100.f, 100.f);
        shape.setFillColor(sf::Color::Cyan);
       
        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();
        }
}
 

6
General / Re: AW: vs 2013 express build error Error 2 error LNK2001
« on: May 26, 2014, 12:36:54 am »
When building SFML CMake does all the work.

If you link your project statically against SFML you need to specify the additional libraries.

thats where i was stuck, i don't think i missed a single step and setting, it still gives the same error, additional libraries were added, SFML_STATIC was set.

does this error mean that in the link stage the compiler simply can't find the proper libraries?


7
General / Re: vs 2013 express build error Error 2 error LNK2001
« on: May 25, 2014, 02:10:04 pm »
still getting the same errors, should the adding ext lib part be done while building the SFML source or individual project stage?

8
General / Re: vs 2013 express build error Error 2 error LNK2001
« on: May 24, 2014, 03:57:38 pm »
which i suppose to add these lib in the additional link input in VS2013? it failed with same error, then i suppose these libs were made in 2012, so i need to build each external library (from source) in 2013 by myself?

9
General / vs 2013 express build error Error 2 error LNK2001
« on: May 23, 2014, 02:48:49 pm »
windows 8 64bit, latest snapshot, followed every step in
http://www.sfml-dev.org/tutorials/2.0/compile-with-cmake.php
and
http://www.sfml-dev.org/tutorials/2.0/start-vc.php
and it built just fine with static link (both release and debug), but when i do a little test using the hello code vs threw a bunch of errors like the format of this one:

Error 2 error LNK2001: unresolved external symbol __imp_glReadPixels E:\src\SFML\test\sfml-graphics-s.lib(RenderWindow.obj)

SFML_STATIC is set, any ideas what went wrong?

10
General / when is windows 64bit version coming out
« on: May 01, 2012, 03:31:32 am »
any plan?

Pages: [1]
anything