Solved

Delphi Not Using Project Settings in Compile

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 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

17 Experts available now in Live!

Get 1:1 Help Now