Jump to page: 1 2 3
Thread overview
Cross compiling for windows from linux
Jan 21
deadalnix
Jan 21
kinke
Jan 21
deadalnix
Jan 21
deadalnix
Jan 21
deadalnix
Jan 25
Matthew
Jan 25
Matthew
Jan 22
RazvanN
Jan 23
deadalnix
January 21
Pretty much all is in the title.

I wanted to do this, and I don't even know where to begin. What are the options available?

Thanks in advance,

Amaury

PS: Glad to be back in D land. Hi everybody! I missed you!
January 21
The only option is LDC (GDC doesn't support Windows). See https://wiki.dlang.org/Cross-compiling_with_LDC.
January 22
On 22/01/2021 1:15 AM, kinke wrote:
> The only option is LDC (GDC doesn't support Windows). See https://wiki.dlang.org/Cross-compiling_with_LDC.

dmd should also work via wine (note: 64bit should also work now thanks to mingw libs).
January 21
On Thursday, 21 January 2021 at 12:19:03 UTC, rikki cattermole wrote:
> On 22/01/2021 1:15 AM, kinke wrote:
>> The only option is LDC (GDC doesn't support Windows). See https://wiki.dlang.org/Cross-compiling_with_LDC.
>
> dmd should also work via wine (note: 64bit should also work now thanks to mingw libs).

Is there an install guide somewhere? I don't have a GUI, so I can't use the installer.
January 21
On Thursday, 21 January 2021 at 12:39:19 UTC, deadalnix wrote:
> Is there an install guide somewhere? I don't have a GUI, so I can't use the installer.

No idea.

I'd just use the zip file.

http://downloads.dlang.org/releases/2.x/2.095.0/dmd.2.095.0.windows.zip
January 21
On Thursday, 21 January 2021 at 12:52:24 UTC, Rikki Cattermole wrote:
> On Thursday, 21 January 2021 at 12:39:19 UTC, deadalnix wrote:
>> Is there an install guide somewhere? I don't have a GUI, so I can't use the installer.
>
> No idea.
>
> I'd just use the zip file.
>
> http://downloads.dlang.org/releases/2.x/2.095.0/dmd.2.095.0.windows.zip

Ok I'll figure it out. Thanks.
January 21
On Thursday, 21 January 2021 at 12:15:39 UTC, kinke wrote:
> The only option is LDC (GDC doesn't support Windows). See https://wiki.dlang.org/Cross-compiling_with_LDC.

It seems like the most straightforward way to do it, I'll try that.
January 21
On Thursday, 21 January 2021 at 12:39:19 UTC, deadalnix wrote:
> Is there an install guide somewhere? I don't have a GUI, so I can't use the installer.

Have a look at install.sh: https://dlang.org/install.html

— Bastiaan
January 21
On Thursday, 21 January 2021 at 13:39:21 UTC, deadalnix wrote:
> Ok I'll figure it out. Thanks.

The beauty of dmd (and ldc's package too) from zip is that you don't have to install it.

Just run it directly from the unzipped location.

On my linux box, I have a little helper script called dmdw that just:

#!/bin/bash

exec wine /home/me/d/windows/dmd2/windows/bin/dmd.exe -m32mscoff $*


So then I unzip dmd in ~/d/windows and boom it just works to `dmdw whatever.d` from there on.
January 21
On Thursday, 21 January 2021 at 12:12:43 UTC, deadalnix wrote:
> Pretty much all is in the title.
>
> I wanted to do this, and I don't even know where to begin. What are the options available?
>
> Thanks in advance,
>
> Amaury
>
> PS: Glad to be back in D land. Hi everybody! I missed you!

Welcome back! :-)
« First   ‹ Prev
1 2 3