Solved

Delphi Not Using Project Settings in Compile

Posted on 2010-09-20
3
743 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now