www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - try to compile githubs dmd-master zip with vstudio 2010

reply dennis luehring <dl.soluz gmx.net> writes:
i've grabbed the dmd-master.zip from github an opended the dmd_msc_vs10.sln

but i get 3 errors

C:\Test\dmd-master\src\mars.c wants missing include verstr.h

C:\Test\dmd-master\src\c1xx missing ph.h
C:\Test\dmd-master\src\c1xx missing util.c

what else is needed to build from source this way?
Jan 27 2013
parent reply "Namespace" <rswhite4 googlemail.com> writes:
I had the same problem, few days ago.
I wrote this short make script [1] which works for me.
My solution is that you must clean before, call the vs buildme 
and then build again with the normal make file.
Sounds weird but it works (for me).

[1] makefile:

set DM_HOME=D:\D

cd dmd
cd src
make -fwin32.mak clean

cd vcbuild
call builddmd.bat
cd ..

make -fwin32.mak release
copy *.exe %DM_HOME%\dmd2\windows\bin
make -fwin32.mak clean
pause

cd ../..
cd druntime
make -fwin32.mak
pause

cd ..
cd phobos
make -fwin32.mak
copy phobos.lib %DM_HOME%\dmd2\windows\lib

cd ..
dmd
Jan 27 2013
parent reply dennis luehring <dl.soluz gmx.net> writes:
and if i want to use the solution file?

Am 27.01.2013 14:45, schrieb Namespace:
 I had the same problem, few days ago.
 I wrote this short make script [1] which works for me.
 My solution is that you must clean before, call the vs buildme
 and then build again with the normal make file.
 Sounds weird but it works (for me).

 [1] makefile:

 set DM_HOME=D:\D

 cd dmd
 cd src
 make -fwin32.mak clean

 cd vcbuild
 call builddmd.bat
 cd ..

 make -fwin32.mak release
 copy *.exe %DM_HOME%\dmd2\windows\bin
 make -fwin32.mak clean
 pause

 cd ../..
 cd druntime
 make -fwin32.mak
 pause

 cd ..
 cd phobos
 make -fwin32.mak
 copy phobos.lib %DM_HOME%\dmd2\windows\lib

 cd ..
 dmd
Jan 27 2013
parent reply "Namespace" <rswhite4 googlemail.com> writes:
You mean the Visual Studio solution? I tried it also, but for me 
only the solution above works fine.
I asked for that problem here:
http://forum.dlang.org/thread/rzvaprvvgdtwrnotovwx forum.dlang.org?page=2#post-ehulzblzddasvyxncvdb:40forum.dlang.org
Jan 27 2013
parent reply dennis luehring <dl.soluz gmx.net> writes:
Am 27.01.2013 15:08, schrieb Namespace:
 You mean the Visual Studio solution? I tried it also, but for me
 only the solution above works fine.
 I asked for that problem here:
 http://forum.dlang.org/thread/rzvaprvvgdtwrnotovwx forum.dlang.org?page=2#post-ehulzblzddasvyxncvdb:40forum.dlang.org
can you add your win32 vc build findings also to the buld wiki? http://wiki.dlang.org/Building_DMD are the missing files generated by the make process?
Jan 29 2013
parent "Namespace" <rswhite4 googlemail.com> writes:
On Wednesday, 30 January 2013 at 05:39:03 UTC, dennis luehring 
wrote:
 Am 27.01.2013 15:08, schrieb Namespace:
 You mean the Visual Studio solution? I tried it also, but for 
 me
 only the solution above works fine.
 I asked for that problem here:
 http://forum.dlang.org/thread/rzvaprvvgdtwrnotovwx forum.dlang.org?page=2#post-ehulzblzddasvyxncvdb:40forum.dlang.org
can you add your win32 vc build findings also to the buld wiki? http://wiki.dlang.org/Building_DMD
Maybe tonight.
 are the missing files generated by the make process?
AFAIK yes.
Jan 30 2013