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

Pages: [1]
1
General / Re: SFML + Eclipse. Nothing happens when I press "Run"
« on: September 26, 2015, 08:26:58 pm »
Ok, will do. Thanks all for your help.

2
General / Re: SFML + Eclipse. Nothing happens when I press "Run"
« on: September 26, 2015, 05:04:43 pm »
If someone would give me a link to MinGW of required version I would be grateful. Can't install/find it myself =/

3
General / Re: SFML + Eclipse. Nothing happens when I press "Run"
« on: September 26, 2015, 03:22:04 pm »
Then you didn't download it from mingw.org. ;)
At best you recompile SFML with your compiler.

The provided binaries are for the MinGW-w64 4.9.2 rev 2 (you have rev 4).
At first I did, but then, after your posts I decided to try another places..
In current installer there are so many options besides revision and version that I don't really know what most of them mean. I'm gonna try it with rev 2 now then.

4
General / Re: SFML + Eclipse. Nothing happens when I press "Run"
« on: September 26, 2015, 04:51:53 am »
Is the compiler exe in your path? Can you get the name of the compiler exe? Something like mingw-g++ iirc. If so, then open a cmd, and run "<compiler exe> -v" and paste the output.

If it isn't in your path, open a cmd in the folder that the exe is in (hold Shift, and right click in the folder), and then do the same thing.

This is the version of compiler I guess.
Exe in MinGW/bin folder.

5
General / Re: SFML + Eclipse. Nothing happens when I press "Run"
« on: September 26, 2015, 01:05:54 am »
32 bit or 64 bit? I'm assuming you're using the 64 bit compiler with the 32 bit DLLs then. Or you have the SJLJ compiler and the DW2 DLLs.
Actually i have no idea about the version of compiler, as there's only 1 link (at top right corner) and no additional info, just quick redirection to download. ..

6
General / Re: SFML + Eclipse. Nothing happens when I press "Run"
« on: September 26, 2015, 12:23:41 am »

7
General / Re: SFML + Eclipse. Nothing happens when I press "Run"
« on: September 25, 2015, 10:43:20 pm »
The DLLs you used are not compatible with the compiler you use.

Where did you get the DLL from and what compiler do you use?
DLLs from this site. GCC 4.9.2 MinGW (DW2) - 32-bit.
And compiler is MinGW.

8
General / Re: SFML + Eclipse. Nothing happens when I press "Run"
« on: September 25, 2015, 09:37:26 pm »
Launch it in a debugger, put a breakpoint early in your program's execution, and step line by line until you find out the reason for the (seemingly) early exit.
Doesn't really look like the program even starts... I set the breakpoint, run a debug, it doesn't redirect me to debug view so I'm going there myself and there's pretty much nothing except <terminated>.
I should probably just give up and go with VS13 then. Eclipse seems really inconvenient for me.

9
General / Re: SFML + Eclipse. Nothing happens when I press "Run"
« on: September 25, 2015, 07:40:26 pm »
Ok, I've tried to run exe file directly from project folder, and it gives me this:


I had the same problem at start with VS13 so I threw all DLLs from SFML bin folder to executable file, and got this:


Probably I'm doing smth wrong =/

10
General / Re: SFML + Eclipse. Nothing happens when I press "Run"
« on: September 25, 2015, 07:22:51 pm »
Do you link SFML statically? If not, does the program find the right *.dll files (the one you compiled/downloaded with/for VS13 aren't compatible).

Have you tried to run the executable yourself? (it's located in the Debug folder iirc)



AlexAUT
Dynamically, I installed VS13 on another laptop so I'm pretty sure I'm using right DLLs for MinGW.
Right click + run on exe file does exactly the same "nothing".

11
General / Re: SFML + Eclipse. Nothing happens when I press "Run"
« on: September 25, 2015, 06:05:22 pm »
It builds with no errors or warnings, and then empty console pop up.
(Above console the small text box with "<terminated> executableName.exe")
That's pretty much it. I'm new to both Eclipse and SFML, so sorry if I'm not giving you what you mean..

edit
And yes, the program window doesn't show up at all.

12
General / Re: SFML + Eclipse. Nothing happens when I press "Run"
« on: September 25, 2015, 02:59:13 pm »
but it does nothing.
Which means...? What is your code supposed to do?

Seems like an IDE- and not SFML-related problem. Maybe people at an Eclipse forum can help you more :)
I'm just trying to run a code from tutorial page.
#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;
}

Meanwhile, in the same project, if I replace the example code, with just "Hello World" - console shows me an output pretty fine...
May be you are right about asking for help on eclipse forum, as I got SFML working in VS 13 in few minutes...

13
General / SFML + Eclipse. Nothing happens when I press "Run"
« on: September 25, 2015, 12:05:47 am »
Hi,

I'm trying to run SFML with Eclipse Luna + MinGW, but it does nothing.
All libraries are assigned in settings, exactly as it says in code blocks tutorial on the site.
Project seems to build with no errors, no warnings.
Both Java 32 bit and 64 bit are installed.

Any ideas what's might be wrong? Thanks.

Pages: [1]