6
votes

I am trying to build a delphi project from the command line compiler

Example: C:\dcc32 -B C:\BD\Delphi7\work\MyProject.dpr

Aside from the the standard evironment pathing:

$(DELPHI)\Bin; $(DELPHI)\Lib; $(DELPHI)\Imports; $(DELPHI)\Projects\Bpl; $(DELPHI)\Rave5\Lib;

there is nearly 50 other paths to other libraries, components, etc...

How do i package this all up and point to these to use in the commanline parameters to make my build?

When i run the example above

C:\dcc32 -B C:\BD\Delphi7\work\MyProject.dpr

i get a FATAL: File not found : 'file name here'

thanks

3

3 Answers

7
votes

Under Delphi 7 you need to edit you dcc32.cfg file (in you Delphi bin folder). You need to copy the library path from the IDE and put in the dcc32.cfg file. You have to add it 4 times for the different command line parameters, eg:

-u=path
-i=path
-r=path
-o=path

There are 4, I believe. I haven't done this in a few years so I hope that the info is correct. Certainly, the command line compiler does not use the same place to store the paths as the IDE does.

0
votes

I don't think dcc32.exe is stored under C:\, if it is you're installation of Delphi is really out of order, or you have moved only the dcc32.exe file.

It's advised to use the dcc32.exe from the directory where the Delphi install has stored it. The Delphi directory depends strongly on the Delphi version, but for Delphi versions op to 7, this looked something like this:

C:\Program Files\Borland\Delphi7\bin\dcc32.exe
-1
votes

For later versions of Delphi, this should be changed to:

"C:\Program Files (x86)\Embarcadero\RAD Studio\8.0\bin\DCC32.exe" -h