Solved

Delphi Not Using Project Settings in Compile

Posted on 2010-09-20
3
748 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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