Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do a command line build using Delphi 7?

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

like image 347
IElite Avatar asked Nov 18 '10 16:11

IElite


1 Answers

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.

like image 126
Steve Avatar answered Oct 14 '22 10:10

Steve