www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Building D on windows

reply "Kashyap" <ckkashyap gmail.com> writes:
Hi,
I was able to build dmd on my windows machine using VS2013 (using 
the vs2010 sln file). However, I am not sure how to proceed with 
building the druntime and phobos. Could someone please point me 
to instructions for the same?

I tried the following

1. Downloaded make and shell (digital mars)
2. created a shell file script.sh that contains the following
make -f posix.mak 
DMD=../dmd/src/vcbuild/Win32/Release/dmd_msc.exe\
3. Executed the sh file "shell script.sh"

I got the following error -
C:\Users\labuser\dlang\druntime>dir 
..\dmd\src\vcbuild\Win32\Release\dmd_msc.exe


C:\Users\labuser\dlang\druntime>shell script.sh
shell 1.01
make -f posix.mak DMD=../dmd/src/vcbuild/Win32/Release/dmd_msc.exe
Error on line 10: '=' is not a valid filename char

--- errorlevel 1

Regards,
Kashyap
Jul 02 2014
parent reply "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Wednesday, 2 July 2014 at 16:06:08 UTC, Kashyap wrote:
 I got the following error -
 C:\Users\labuser\dlang\druntime>dir 
 ..\dmd\src\vcbuild\Win32\Release\dmd_msc.exe


 C:\Users\labuser\dlang\druntime>shell script.sh
 shell 1.01
 make -f posix.mak 
 DMD=../dmd/src/vcbuild/Win32/Release/dmd_msc.exe
 Error on line 10: '=' is not a valid filename char

 --- errorlevel 1
Hi, It looks like you are trying to use the posix makefile with Digital Mars make. posix.mak uses GNU make syntax - the makefile for DigitalMars make is win32.mak. So you will need to either make sure GNU make comes first in your PATH, or simply use win32.mak instead. There is a wiki page with instructions for building D from source: http://wiki.dlang.org/Building_DMD
Jul 02 2014
parent "Kashyap" <ckkashyap gmail.com> writes:
On Wednesday, 2 July 2014 at 16:24:40 UTC, Vladimir Panteleev 
wrote:
 On Wednesday, 2 July 2014 at 16:06:08 UTC, Kashyap wrote:
 I got the following error -
 C:\Users\labuser\dlang\druntime>dir 
 ..\dmd\src\vcbuild\Win32\Release\dmd_msc.exe


 C:\Users\labuser\dlang\druntime>shell script.sh
 shell 1.01
 make -f posix.mak 
 DMD=../dmd/src/vcbuild/Win32/Release/dmd_msc.exe
 Error on line 10: '=' is not a valid filename char

 --- errorlevel 1
Hi, It looks like you are trying to use the posix makefile with Digital Mars make. posix.mak uses GNU make syntax - the makefile for DigitalMars make is win32.mak. So you will need to either make sure GNU make comes first in your PATH, or simply use win32.mak instead. There is a wiki page with instructions for building D from source: http://wiki.dlang.org/Building_DMD
Thank you Valdmir ... things seem to build so quickly - its hard for me to believe that its a successful build :) Regards, Kashayp
Jul 02 2014