Solved

Delphi Not Using Project Settings in Compile

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Intraweb submit form as a POST request 4 304
Delphi: ForceDirectory plain function 7 34
SUM 2 INTEGER ARRAYS INTO 1 10 101
Convert MS Word document to a PDF file 9 83
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

832 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