SFML community forums

Help => General => Topic started by: Csharpest on March 24, 2015, 04:38:42 pm

Title: Eclipse IDE Linux setup help
Post by: Csharpest on March 24, 2015, 04:38:42 pm
Hello,

I've been trying for a few hours now to set up SFML on my Linux mint machine and cannot get it to work in my preferred IDE of Eclipse c++.

Everything seems to be an issue. I've installed the libraries from the apt-get commands and tried linking in project settings but nothing seems to work.

Everything is on its defaults as it's a clean install. I can't get minGW tool chain to show or work either?

So stuck for this. Does anyone else use Eclipse on Linux (none of the windows version of Eclipse walk throughs have worked for me)

Any help of a walk through would be so appreciated.
Title: Re: Eclipse IDE Linux setup help
Post by: Rhimlock on March 25, 2015, 01:49:03 pm
So your problem is to get Eclipse to build any C++ project or just to include and link SFML?
Title: Re: Eclipse IDE Linux setup help
Post by: flashrocket on April 18, 2015, 02:20:24 pm
I use ubuntu but this should work on mint too.(I think)
make sure you have eclipse CDT(eclipse for c/c++ developers)
Install the following packages
g++ libsfml-dev
(click to show/hide)
Open eclipse and goto File > Project > C/C++ > C++ Project
click next.
Type the name and select Linux GCC as the toolchain and you can select hello world as project type.
Press Finish.
Click build(Hammer button) and then press run(Play button).
It should say hello world!!.

now right click on the project name and select properties.
Goto C/C++ build > Settings > Tool Settings
Select Configuration as [all configurations]
Goto GCC C++ Linker > Libraries
On the right hand side use add button and rearrange libraries so you see the following in correct order
(click to show/hide)
press OK
Now select everything and paste the following code.
(click to show/hide)
Now save and build then run.
Hope this was useful.


Edit:
Here is some info
(click to show/hide)