www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Building DMD from sources

reply Daniel Ribeiro Maciel <daniel.maciel gmail.com> writes:
Hello!

How do I build DMD from sources? Do I have to buy and use Digital Mars C++
compiler only?

Best Regards,
Daniel
Dec 04 2009
next sibling parent reply "Denis Koroskin" <2korden gmail.com> writes:
On Fri, 04 Dec 2009 20:34:10 +0300, Daniel Ribeiro Maciel  
<daniel.maciel gmail.com> wrote:

 Hello!

 How do I build DMD from sources? Do I have to buy and use Digital Mars  
 C++ compiler only?

 Best Regards,
 Daniel

Digital Mars C++ compiler is free to use and is available for download on the same page with Digital Mars D compiler: http://www.digitalmars.com/d/download.html Just download the dmc.zip package, install it and update you PATH environment variable to include path to dmc.exe: (For Windows) set path=c:\dm\bin;%PATH% cd c:\dmd\src\dmd make -fwin32.mak Under Linux, you should also be able to build DMD with GCC.
Dec 04 2009
parent reply Daniel Ribeiro Maciel <daniel.maciel gmail.com> writes:
Thank you for answering so fast.
I'll try that. One more thing: I noticed I need to convert VS libraries from
COFF format to OMF format so I can link them with my D software. I also noticed
that coff2omf tool from Digital Mars is not free.

Do you know any free tools that do that job? 

Best regards,
Daniel

Denis Koroskin Wrote:

 On Fri, 04 Dec 2009 20:34:10 +0300, Daniel Ribeiro Maciel  
 <daniel.maciel gmail.com> wrote:
 
 Hello!

 How do I build DMD from sources? Do I have to buy and use Digital Mars  
 C++ compiler only?

 Best Regards,
 Daniel

Digital Mars C++ compiler is free to use and is available for download on the same page with Digital Mars D compiler: http://www.digitalmars.com/d/download.html Just download the dmc.zip package, install it and update you PATH environment variable to include path to dmc.exe: (For Windows) set path=c:\dm\bin;%PATH% cd c:\dmd\src\dmd make -fwin32.mak Under Linux, you should also be able to build DMD with GCC.

Dec 04 2009
next sibling parent reply Daniel Ribeiro Maciel <daniel.maciel gmail.com> writes:
Well, I tried to download it from:

http://www.digitalmars.com/download/freecompiler.html

But the link to the Extended Utilities Package is a link to DM Shop.
Maybe we should document this stuff on DMD home page, perhaps include them on
FAQ.

Can I build DMD using mingw? Or link to mingw libraries?

Best Regards,
Daniel

Denis Koroskin Wrote:

 On Fri, 04 Dec 2009 20:43:01 +0300, Daniel Ribeiro Maciel  
 <daniel.maciel gmail.com> wrote:
 
 Thank you for answering so fast.
 I'll try that. One more thing: I noticed I need to convert VS libraries  
 from COFF format to OMF format so I can link them with my D software. I  
 also noticed that coff2omf tool from Digital Mars is not free.

 Do you know any free tools that do that job?

 Best regards,
 Daniel

Where did you get that information from? coff2omf is free, download it from ftp://digitalmars.com In my experience, it's not that easy to get you VS compiled binary working with DMD (due to object format incompatibility). In most cases it's easier to re-compile your library with DMC compiler, if sources are available.

Dec 04 2009
next sibling parent Daniel Ribeiro Maciel <daniel.maciel gmail.com> writes:
I just wanted coff2omf.
I did not try to build dmd usind dmc yet. I was just wondering whether it could
be built using mingw.

Denis Koroskin Wrote:

 On Fri, 04 Dec 2009 21:08:39 +0300, Daniel Ribeiro Maciel  
 <daniel.maciel gmail.com> wrote:
 
 Well, I tried to download it from:

 http://www.digitalmars.com/download/freecompiler.html

 But the link to the Extended Utilities Package is a link to DM Shop.
 Maybe we should document this stuff on DMD home page, perhaps include  
 them on FAQ.

 Can I build DMD using mingw? Or link to mingw libraries?

 Best Regards,
 Daniel

Why do you need all these tools for? What problem are you facing? Compiling DMD from source is as simple as I described. Are you getting any errors?

Dec 04 2009
prev sibling parent reply BCS <none anon.com> writes:
Hello Daniel,

 Well, I tried to download it from:
 
 http://www.digitalmars.com/download/freecompiler.html
 

try this link: http://www.digitalmars.com/download/dmcpp.html
 But the link to the Extended Utilities Package is a link to DM Shop.
 Maybe we should document this stuff on DMD home page, perhaps include
 them on FAQ.
 
 Can I build DMD using mingw? Or link to mingw libraries?
 
 Best Regards,
 Daniel
 Denis Koroskin Wrote:
 
 On Fri, 04 Dec 2009 20:43:01 +0300, Daniel Ribeiro Maciel
 <daniel.maciel gmail.com> wrote:
 
 Thank you for answering so fast.
 I'll try that. One more thing: I noticed I need to convert VS
 libraries
 from COFF format to OMF format so I can link them with my D
 software. I
 also noticed that coff2omf tool from Digital Mars is not free.
 Do you know any free tools that do that job?
 
 Best regards,
 Daniel

it from ftp://digitalmars.com In my experience, it's not that easy to get you VS compiled binary working with DMD (due to object format incompatibility). In most cases it's easier to re-compile your library with DMC compiler, if sources are available.


Dec 04 2009
parent BCS <none anon.com> writes:
Hello BCS,

 Hello Daniel,
 
 Well, I tried to download it from:
 
 http://www.digitalmars.com/download/freecompiler.html
 

http://www.digitalmars.com/download/dmcpp.html

Oops, that's to DMC. got the threads mixed up.
 But the link to the Extended Utilities Package is a link to DM Shop.
 Maybe we should document this stuff on DMD home page, perhaps include
 them on FAQ.
 
 Can I build DMD using mingw? Or link to mingw libraries?
 
 Best Regards,
 Daniel
 Denis Koroskin Wrote:
 On Fri, 04 Dec 2009 20:43:01 +0300, Daniel Ribeiro Maciel
 <daniel.maciel gmail.com> wrote:
 
 Thank you for answering so fast.
 I'll try that. One more thing: I noticed I need to convert VS
 libraries
 from COFF format to OMF format so I can link them with my D
 software. I
 also noticed that coff2omf tool from Digital Mars is not free.
 Do you know any free tools that do that job?
 Best regards,
 Daniel

it from ftp://digitalmars.com In my experience, it's not that easy to get you VS compiled binary working with DMD (due to object format incompatibility). In most cases it's easier to re-compile your library with DMC compiler, if sources are available.



Dec 04 2009
prev sibling parent Walter Bright <newshound1 digitalmars.com> writes:
Daniel Ribeiro Maciel wrote:
 Thank you for answering so fast. I'll try that. One more thing: I
 noticed I need to convert VS libraries from COFF format to OMF format
 so I can link them with my D software. I also noticed that coff2omf
 tool from Digital Mars is not free.
 
 Do you know any free tools that do that job?

It's only $15! It's part of the Extended Utility Package: http://www.digitalmars.com/shop.html
Dec 04 2009
prev sibling next sibling parent reply Alexander Suhoverhov <cy ngs.ru> writes:
Daniel Ribeiro Maciel <daniel.maciel gmail.com> writes:
 Hello!

 How do I build DMD from sources? Do I have to buy and use
 Digital Mars C++ compiler only?

 Best Regards,
 Daniel

Which OS are you trying to build it on? gcc compiles the linux version with the linux.mak makefile. -- Best regards, Alexander Suhoverhov
Dec 04 2009
parent reply Daniel Ribeiro Maciel <daniel.maciel gmail.com> writes:
I'm trying to build it on windows.

Alexander Suhoverhov Wrote:

 Daniel Ribeiro Maciel <daniel.maciel gmail.com> writes:
 Hello!

 How do I build DMD from sources? Do I have to buy and use
 Digital Mars C++ compiler only?

 Best Regards,
 Daniel

Which OS are you trying to build it on? gcc compiles the linux version with the linux.mak makefile. -- Best regards, Alexander Suhoverhov

Dec 04 2009
parent reply Walter Bright <newshound1 digitalmars.com> writes:
Daniel Ribeiro Maciel wrote:
 I'm trying to build it on windows.

You will need DMC++. It can be built with the free download version of DMC++, but if you need the coff2omf, that needs to be purchased. It's part of the complete C/C++ development system, or comes with the Extended Utility Package.
Dec 04 2009
parent Daniel Ribeiro Maciel <daniel.maciel gmail.com> writes:
Thanks a lot ppl. I got to build it on Linux. Gonna try to build on Windows  
home.

Walter Bright Wrote:

 Daniel Ribeiro Maciel wrote:
 I'm trying to build it on windows.

You will need DMC++. It can be built with the free download version of DMC++, but if you need the coff2omf, that needs to be purchased. It's part of the complete C/C++ development system, or comes with the Extended Utility Package.

Dec 04 2009
prev sibling next sibling parent "Denis Koroskin" <2korden gmail.com> writes:
On Fri, 04 Dec 2009 20:43:01 +0300, Daniel Ribeiro Maciel  
<daniel.maciel gmail.com> wrote:

 Thank you for answering so fast.
 I'll try that. One more thing: I noticed I need to convert VS libraries  
 from COFF format to OMF format so I can link them with my D software. I  
 also noticed that coff2omf tool from Digital Mars is not free.

 Do you know any free tools that do that job?

 Best regards,
 Daniel

Where did you get that information from? coff2omf is free, download it from ftp://digitalmars.com In my experience, it's not that easy to get you VS compiled binary working with DMD (due to object format incompatibility). In most cases it's easier to re-compile your library with DMC compiler, if sources are available.
Dec 04 2009
prev sibling parent "Denis Koroskin" <2korden gmail.com> writes:
On Fri, 04 Dec 2009 21:08:39 +0300, Daniel Ribeiro Maciel  
<daniel.maciel gmail.com> wrote:

 Well, I tried to download it from:

 http://www.digitalmars.com/download/freecompiler.html

 But the link to the Extended Utilities Package is a link to DM Shop.
 Maybe we should document this stuff on DMD home page, perhaps include  
 them on FAQ.

 Can I build DMD using mingw? Or link to mingw libraries?

 Best Regards,
 Daniel

Why do you need all these tools for? What problem are you facing? Compiling DMD from source is as simple as I described. Are you getting any errors?
Dec 04 2009