SFML community forums

Bindings - other languages => D => Topic started by: malkierian on November 18, 2013, 05:46:26 am

Title: Problems Compiling DSFML-C
Post by: malkierian on November 18, 2013, 05:46:26 am
OK, so I understand the reasoning behind wanting people to build on their own systems, but sometimes...

Anyway, so I can't actually get DSFML-C to compile because CMakeGUI won't find or let me choose entire MinGW installations.  I can assign gcc and g++, but then it starts looking for other things in the default folder instead of where those two programs are found.  How do I go about building this so I can build DSFML and start using it?
Title: Re: Problems Compiling DSFML-C
Post by: Jebbs on November 18, 2013, 08:22:13 am
What OS are you trying to compile it for?

I have gotten it working on Windows, I'm currently in the process of figuring it out on Linux(though I know others that have gotten it working), and I recently helped someone get it going on OSX.

Unfortunately, I don't get a lot of feedback from people that use the binding so it's difficult for me to make sure the building information is up to date.  :-\

Title: Re: Problems Compiling DSFML-C
Post by: malkierian on November 18, 2013, 06:52:12 pm
Windows 7 64-bit, but I have MinGW installed on my D drive instead of C, which is probably where it's looking by default.  Its there some way to configure the makelist/makefile manually so that it looks in the right spot for everything instead of just those two?
Title: Re: Problems Compiling DSFML-C
Post by: Jebbs on November 18, 2013, 07:10:31 pm
Its there some way to configure the makelist/makefile manually so that it looks in the right spot for everything instead of just those two?

There is, and that's how I usually do it actually.

I'm at work right now, but I can do a entry in the DSFML wiki later today for ya.

Edit: Alternatively, I could just have the dll's and import libraries readily available for download.
Title: Re: Problems Compiling DSFML-C
Post by: malkierian on November 18, 2013, 07:43:46 pm
Well, either way.  I just want to get working, ya know?  LOL.
Title: Re: Problems Compiling DSFML-C
Post by: Jebbs on November 19, 2013, 09:04:54 am
My apologies. I've been pretty busy!

Here's a link to the latest build: https://dl.dropboxusercontent.com/u/2911088/DSFML-Bin.zip

Also, make sure your MinGW\bin directory is included in your PATH. Could explain why CMake didn't find it.
Title: Re: Problems Compiling DSFML-C
Post by: malkierian on November 19, 2013, 04:18:11 pm
Oh, it was.  It has been for months.

And thanks :D.
Title: Re: Problems Compiling DSFML-C
Post by: malkierian on November 20, 2013, 04:51:20 am
Also, I remember that it's built on 2.0, right?  Will any dev environment work with these libs?

By the way, is there an IRC channel you hang out in?  Is there an #sfml channel somewhere?
Title: Re: Problems Compiling DSFML-C
Post by: zsbzsb on November 20, 2013, 05:16:10 am
I guess he hangs out here (http://en.sfml-dev.org/forums/index.php?topic=2997.0) sometimes  ;D
Title: Re: Problems Compiling DSFML-C
Post by: Jebbs on November 20, 2013, 08:55:42 am
I guess he hangs out here (http://en.sfml-dev.org/forums/index.php?topic=2997.0) sometimes  ;D

You guess? :P

zsbzsb is right, I do hang out in the irc. I mostly idle, but I'm usually around.

And as long as you have your favorite D IDE set up with the correct compiler switches, you shouldn't have any problems.

I tend to use Mono-D (http://mono-d.alexanderbothe.com/), a plug in for MonoDevelop/Xamarin Studio, but I know that Visual D (http://rainers.github.io/visuald/visuald/StartPage.html), a plug in for Visual Studio, is quite popular on Windows.