Solved

Delphi Not Using Project Settings in Compile

Posted on 2010-09-20
3
747 Views
Last Modified: 2012-06-21
We are running Delphi 2007 Enterprise on Windows XP SP3.  I recently replaced my computer so I reinstalled Delphi.  Our company uses roaming profiles so all of my Delphi settings were applied to this new installation.  But, when I went to recompile some of our software, I got error messages about Delphi not being able to find certain DCUs.  The DCUs it could not find were based on units that are in the project search path and as I normally do a build all, the compiler should have found and recompiled the DCUs.  So I created a simple application and declared a 3rd party unit in the project source file (ExceptionalMagic in this case).  I tried to compile the program and got the error "[DCC Error] BuildAllTest.dpr(7): F1026 File not found: 'ADSISearch.dcu'".  

After toying with various settings for a couple of hours, I finally just uninstalled Delphi, manually removed any traces of it from the file system and registry and reinstalled from scratch.  I opened the little program I created and tried to compile it and got the same error.

So, I looked at the Target Core Compile command and this is what I have:
c:\program files\codegear\rad studio\5.0\bin\dcc32.exe 
-B 
-I"c:\program files\codegear\rad studio\5.0\lib";
  D:\Source\Delphi\\Imports;
  "c:\program files\codegear\rad studio\5.0\Imports";
  "c:\program files\codegear\rad studio\5.0\Lib\Indy10";
  D:\Source\Delphi\Common\Dcp;
  "c:\program files\codegear\rad studio\5.0\RaveReports\Lib" 
-LED:\Source\Delphi\Common\Bpl 
-LND:\Source\Delphi\Common\Dcp 
-O"c:\program files\codegear\rad studio\5.0\lib";
  D:\Source\Delphi\\Imports;
  "c:\program files\codegear\rad studio\5.0\Imports";
  "c:\program files\codegear\rad studio\5.0\Lib\Indy10";
  D:\Source\Delphi\Common\Dcp;
  "c:\program files\codegear\rad studio\5.0\RaveReports\Lib" 
-R"c:\program files\codegear\rad studio\5.0\lib";
  D:\Source\Delphi\\Imports;
  "c:\program files\codegear\rad studio\5.0\Imports";
  "c:\program files\codegear\rad studio\5.0\Lib\Indy10";
  D:\Source\Delphi\Common\Dcp;
  "c:\program files\codegear\rad studio\5.0\RaveReports\Lib" 
-U"c:\program files\codegear\rad studio\5.0\lib";
  D:\Source\Delphi\\Imports;
  "c:\program files\codegear\rad studio\5.0\Imports";
  "c:\program files\codegear\rad studio\5.0\Lib\Indy10";
  D:\Source\Delphi\Common\Dcp;
  "c:\program files\codegear\rad studio\5.0\RaveReports\Lib" 
--no-config   BuildAllTest.dpr   

Open in new window


In the directories/conditional settings of my project I have the search path set to "D:\Source\Delphi\Components\ADSISearch\Source" which is not included in the above compile command.  Other changes to the project settings don't seem to be reflected in the compile command either (such as output directory).

Anyone have any idea what I could try to fix this?
0
Comment
Question by:CIPortAuthority
  • 2
3 Comments
 

Author Comment

by:CIPortAuthority
ID: 33717041
I should mention that I went back and compiled the same little test app on my old PC and I get the following compile command:

[code]
c:\program files\codegear\rad studio\5.0\bin\dcc32.exe
-B
-DRELEASE
-ED:\Source\Delphi\Projects
-ID:\Source\Delphi\Components\ADSISearch\Source;
  D:\Source\Delphi\Components\ExceptionalMagic\Source;
  "c:\program files\codegear\rad studio\5.0\lib";
  "c:\program files\codegear\rad studio\5.0\Imports";
  "C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\Dcp";
  "c:\program files\codegear\rad studio\5.0\RaveReports\Lib";
  D:\Source\Delphi\Components\Woll2Woll\ipstudio\lib\windows;
  D:\Source\Delphi\components\dragdrop\lib;
  D:\Source\Delphi\components\tms\lib;
  "D:\Source\Delphi\components\ivc activex\lib";
  D:\Source\Delphi\Components\SDeanComponents\Lib;
  D:\Source\Delphi\components\hyperterp\lib;
  D:\Source\Delphi\components\kbmmemtable\lib;
  D:\Source\Delphi\Components\SvCom\SvCom\Code\D9\RunTime\DCU;
  D:\Source\Delphi\Components\RBuilder\Lib;
  d:\source\delphi\components\html5parser;
  d:\source\delphi\common\dcp;
  "D:\Source\Delphi\Components\Developer Express.VCL\Library\Delphi11";
  d:\source\delphi\components\setshapecornerround
-LED:\Source\Delphi\Common\Bpl
-LND:\Source\Delphi\Common\Dcp
-N0D:\Source\Delphi\Projects
-NHD:\Source\Delphi\Projects
-NOD:\Source\Delphi\Projects
-OD:\Source\Delphi\Components\ADSISearch\Source;
  D:\Source\Delphi\Components\ExceptionalMagic\Source;
  "c:\program files\codegear\rad studio\5.0\lib";
  "c:\program files\codegear\rad studio\5.0\Imports";
  "C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\Dcp";
  "c:\program files\codegear\rad studio\5.0\RaveReports\Lib";
  D:\Source\Delphi\Components\Woll2Woll\ipstudio\lib\windows;
  D:\Source\Delphi\components\dragdrop\lib;
  D:\Source\Delphi\components\tms\lib;
  "D:\Source\Delphi\components\ivc activex\lib";
  D:\Source\Delphi\Components\SDeanComponents\Lib;
  D:\Source\Delphi\components\hyperterp\lib;
  D:\Source\Delphi\components\kbmmemtable\lib;
  D:\Source\Delphi\Components\SvCom\SvCom\Code\D9\RunTime\DCU;
  D:\Source\Delphi\Components\RBuilder\Lib;
  d:\source\delphi\components\html5parser;
  d:\source\delphi\common\dcp;
  "D:\Source\Delphi\Components\Developer Express.VCL\Library\Delphi11";
  d:\source\delphi\components\setshapecornerround
-RD:\Source\Delphi\Components\ADSISearch\Source;
  D:\Source\Delphi\Components\ExceptionalMagic\Source;
  "c:\program files\codegear\rad studio\5.0\lib";
  "c:\program files\codegear\rad studio\5.0\Imports";
  "C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\Dcp";
  "c:\program files\codegear\rad studio\5.0\RaveReports\Lib";
  D:\Source\Delphi\Components\Woll2Woll\ipstudio\lib\windows;
  D:\Source\Delphi\components\dragdrop\lib;
  D:\Source\Delphi\components\tms\lib;
  "D:\Source\Delphi\components\ivc activex\lib";
  D:\Source\Delphi\Components\SDeanComponents\Lib;
  D:\Source\Delphi\components\hyperterp\lib;
  D:\Source\Delphi\components\kbmmemtable\lib;
  D:\Source\Delphi\Components\SvCom\SvCom\Code\D9\RunTime\DCU;
  D:\Source\Delphi\Components\RBuilder\Lib;
  d:\source\delphi\components\html5parser;
  d:\source\delphi\common\dcp;
  "D:\Source\Delphi\Components\Developer Express.VCL\Library\Delphi11";
  d:\source\delphi\components\setshapecornerround
-UD:\Source\Delphi\Components\ADSISearch\Source;
  D:\Source\Delphi\Components\ExceptionalMagic\Source;
  "c:\program files\codegear\rad studio\5.0\lib";
  "c:\program files\codegear\rad studio\5.0\Imports";
  "C:\Documents and Settings\All Users\Documents\RAD Studio\5.0\Dcp";
  "c:\program files\codegear\rad studio\5.0\RaveReports\Lib";
  D:\Source\Delphi\Components\Woll2Woll\ipstudio\lib\windows;
  D:\Source\Delphi\components\dragdrop\lib;
  D:\Source\Delphi\components\tms\lib;
  "D:\Source\Delphi\components\ivc activex\lib";
  D:\Source\Delphi\Components\SDeanComponents\Lib;
  D:\Source\Delphi\components\hyperterp\lib;
  D:\Source\Delphi\components\kbmmemtable\lib;
  D:\Source\Delphi\Components\SvCom\SvCom\Code\D9\RunTime\DCU;
  D:\Source\Delphi\Components\RBuilder\Lib;
  d:\source\delphi\components\html5parser;
  d:\source\delphi\common\dcp;
  "D:\Source\Delphi\Components\Developer Express.VCL\Library\Delphi11";
  d:\source\delphi\components\setshapecornerround
--no-config
-$D-
-$L-
-$Y-   BuildAllTest.dpr  
[/code]

Other than the extra paths, you will notice the extra parameters for output directories and compiler flags are included.
0
 

Accepted Solution

by:
CIPortAuthority earned 0 total points
ID: 33717649
I discovered a page which detailed what the issue is and how to fix it here:
https://forums.embarcadero.com/thread.jspa?threadID=1069&tstart=0

Apparently HP sets the "PLATFORM" environment variable (my new PC is an HP, my old was a generic clone) for its setup utility.  This environment variable messes with the Delphi build functions.  Deleting it fixed the problem.
0
 
LVL 22

Expert Comment

by:8080_Diver
ID: 33725356
Thank you for posting the solution you found.  
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question