March 02, 2010
> Tried bud, it compiled but it filled my command prompt window with errors when I tried running it. When trying to run it it came up with 'not a Win32 program'. I tried using ReBuild, but it didn't even compile.
>

Btw, xfBuild is better.

My script simply looks like:

xfbuild main.d +obin\OpenBB-d -debug -g
cv2pdb -D2 bin\OpenBB-d.exe // for debugging

also be sure to properly compile the latest csfml dlls.
It seems like you can't use static CSFML libraries for this.
March 03, 2010
Hmm.. didn't know about xfBuild. I've tried it and it worked (on my game). Thanks Trass3r.

I'm not sure about compiling the latest csfml dlls.

Now I don't know what I'm doing :-/. Maybe later take another look.
March 03, 2010
> I'm not sure about compiling the latest csfml dlls.
> Now I don't know what I'm doing :-/. Maybe later take another look.

Well DSFML is just a wrapper around CSFML (which in turn is a C wrapper around SFML :D but hell, there's no other way except a complete port)
So you need the CSFML shared libraries and since there are no prebuilt versions you need to compile them yourself. Works flawlessly with Visual Studio 2008 on Windows for me.
March 04, 2010
Trass3r wrote:
> Btw, xfBuild is better.

I've been trying xfBuild and have now found that I can't write to the command prompt, and there doesn't seem to be any flag to activate to do it. It seems faster though.
March 04, 2010
> I've been trying xfBuild and have now found that I can't write to the command prompt, and there doesn't seem to be any flag to activate to do it.

Don't understand what you mean.
March 04, 2010
On Thu, 04 Mar 2010 15:48:19 +0300, Trass3r <un@known.com> wrote:

>> I've been trying xfBuild and have now found that I can't write to the command prompt, and there doesn't seem to be any flag to activate to do it.
>
> Don't understand what you mean.

Maybe he is looking for a way to pass some custom arguments to DMD and couldn't find a way to do so via xfBuild?
March 04, 2010
> Maybe he is looking for a way to pass some custom arguments to DMD and couldn't find a way to do so via xfBuild?

compiler arguments are passed just as normal.
March 05, 2010
Trass3r wrote:
>> Maybe he is looking for a way to pass some custom arguments to DMD and couldn't find a way to do so via xfBuild?
> 
> compiler arguments are passed just as normal.

For example:
writefln("Hello");
Wasn't having any effect. Seems to be working now though.

But now I have other problems. If I put..
Start source:
module xft;

import std.stdio;

void main() {
	writefln("Hello xfbuild World!");
}
Finish source.
>>
C:\Jpro\dpro\small>xfbuild xft.d
Thread 1: compiling 1 modules
Thread 0: compiling 0 modules
Error: unrecognized switch '-deps=xft.moduleDeps'
Build failed: "dmd @xfbuild.1660e00.rsp" returned 1
<<

And with Tango, using my one source code file and with the option +o it doesn't work. But every thing works with a bigger program, (only tried one though).
March 08, 2010
> C:\Jpro\dpro\small>xfbuild xft.d
> Thread 1: compiling 1 modules
> Thread 0: compiling 0 modules
> Error: unrecognized switch '-deps=xft.moduleDeps'
> Build failed: "dmd @xfbuild.1660e00.rsp" returned 1
> 

Yeah it still has its quirks. Feel free to contact the authors/file an issue/etc.
1 2
Next ›   Last »