Ivo Bauer
2008-02-17 17:47:23 UTC
Hi,
I have problem compiling a project group that consists of 2 Delphi
projects (packages) from command line using msbuild. This is how I
call the msbuild:
msbuild /t:Build "C:\My
Components\ModLink2\Packages\ModLinkRadStudio2007.groupproj"
This compiles just fine in RAD Studio 2007, Delphi 2007 for Win32, but
not in *stand-alone* C++ Builder 2007 (December update applied,
11.0.2902.10471). I'm getting the following error:
===== console output begin ===
Microsoft (R) Build Engine Version 2.0.50727.42
[Microsoft .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation 2005. All rights reserved.
Build started 2/17/2008 6:27:45 PM.
__________________________________________________
Project "C:\My
Components\ModLink2\Packages\ModLinkRadStudio2007.groupproj" (Bui
ld target(s)):
Target Build:
Target modlink110r:
__________________________________________________
Project "C:\My
Components\ModLink2\Packages\ModLinkRadStudio2007.grouppr
oj" is building "C:\My
Components\ModLink2\Packages\RadStudio2007\modlink110r.dp
roj" (default targets):
Target CoreCompile:
C:\Program Files\CodeGear\RAD Studio\5.0\\bin\dcc32.exe -B
-DRELEASE
-JL -LE..\..\Bin\RadStudio2007 -LN..\..\Lib\RadStudio2007
-N0..\..\Lib\RadStudi
o2007 -NH..\..\Include\RadStudio2007 -NO..\..\Lib\RadStudio2007
-NB..\..\Lib\Rad
Studio2007 --no-config -$Q+ -$R+ modlink110r.dpk
CodeGear Delphi for Win32 compiler version 18.5
Copyright (c) 1983,2007 CodeGear
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Borland.Delphi.Targets
(113,3): error : modlink110r.dpk(31) Fatal: E2202 Required package
'vcl' not fou
nd
modlink110r.dpk(31) Fatal: E2202 Required package 'vcl'
not found
Done building target "CoreCompile" in project
"modlink110r.dproj" -- FAI
LED.
Done building project "modlink110r.dproj" -- FAILED.
Build FAILED.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Borland.Delphi.Targets(113,3):
err
or : modlink110r.dpk(31) Fatal: E2202 Required package 'vcl' not found
0 Warning(s)
1 Error(s)
===== console output end ===
It looks like msbuild does not pass the required library path to the
Delphi command line compiler. I cannot compile this project group from
the IDE, because there is simply no Delphi personality available with
stand-alone C++ Builder 2007. How do I proceed to get this work?
I have problem compiling a project group that consists of 2 Delphi
projects (packages) from command line using msbuild. This is how I
call the msbuild:
msbuild /t:Build "C:\My
Components\ModLink2\Packages\ModLinkRadStudio2007.groupproj"
This compiles just fine in RAD Studio 2007, Delphi 2007 for Win32, but
not in *stand-alone* C++ Builder 2007 (December update applied,
11.0.2902.10471). I'm getting the following error:
===== console output begin ===
Microsoft (R) Build Engine Version 2.0.50727.42
[Microsoft .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation 2005. All rights reserved.
Build started 2/17/2008 6:27:45 PM.
__________________________________________________
Project "C:\My
Components\ModLink2\Packages\ModLinkRadStudio2007.groupproj" (Bui
ld target(s)):
Target Build:
Target modlink110r:
__________________________________________________
Project "C:\My
Components\ModLink2\Packages\ModLinkRadStudio2007.grouppr
oj" is building "C:\My
Components\ModLink2\Packages\RadStudio2007\modlink110r.dp
roj" (default targets):
Target CoreCompile:
C:\Program Files\CodeGear\RAD Studio\5.0\\bin\dcc32.exe -B
-DRELEASE
-JL -LE..\..\Bin\RadStudio2007 -LN..\..\Lib\RadStudio2007
-N0..\..\Lib\RadStudi
o2007 -NH..\..\Include\RadStudio2007 -NO..\..\Lib\RadStudio2007
-NB..\..\Lib\Rad
Studio2007 --no-config -$Q+ -$R+ modlink110r.dpk
CodeGear Delphi for Win32 compiler version 18.5
Copyright (c) 1983,2007 CodeGear
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Borland.Delphi.Targets
(113,3): error : modlink110r.dpk(31) Fatal: E2202 Required package
'vcl' not fou
nd
modlink110r.dpk(31) Fatal: E2202 Required package 'vcl'
not found
Done building target "CoreCompile" in project
"modlink110r.dproj" -- FAI
LED.
Done building project "modlink110r.dproj" -- FAILED.
Build FAILED.
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Borland.Delphi.Targets(113,3):
err
or : modlink110r.dpk(31) Fatal: E2202 Required package 'vcl' not found
0 Warning(s)
1 Error(s)
===== console output end ===
It looks like msbuild does not pass the required library path to the
Delphi command line compiler. I cannot compile this project group from
the IDE, because there is simply no Delphi personality available with
stand-alone C++ Builder 2007. How do I proceed to get this work?
--
Ivo Bauer
Ivo Bauer