"Required package rtl not found" when building with Hudson

admin

Administrator
Staff member
I am trying to get <a href="http://hudson-ci.org/">Hudson</a> to work with my Delphi project. I am using the following batch file to build my project (as suggested in this <a href="http://christerblog.wordpress.com/2010/04/25/using-hudson-to-build-delphi-projects/">blog post</a>):

Code:
call "C:\Program Files\Embarcadero\RAD Studio\8.0\bin\rsvars.bat"
msbuild /p:Win32LibraryPath="$(BDS)\lib;$(BDS)\lib\win32\release;$(BDS)\lib\win32\debug;$(BDSUSERDIR)\Imports;$(BDS)\Imports;$(BDSCOMMONDIR)\Dcp;$(BDS)\include;" /t:build /p:config=Debug /verbosity:detailed "MyProject\src\MyProject.dproj"
if errorlevel 1 exit 1

I always end up with the error

Code:
Embarcadero Delphi for Win32 compiler version 22.0
Copyright (c) 1983,2010 Embarcadero Technologies, Inc.
Fatal: E2202 Required package 'rtl' not found

I don't understand this as
Code:
rtl.dcp
is in "$(BDS)\lib\win32\release" which is on the library path. I am using runtime packages by the way.

Any hints what I can do to solve this?

<strong>Edit</strong> It seems that the paths do not end up in the command line, which looks something like (after removing project-specific paths):

Code:
C:\Program Files\Embarcadero\RAD Studio\8.0\bin\dcc32.exe -$O- -$W+ --inline:off -$A4 -$R+ -$Q+ --doc --no-config -B -LUrtl;vcl;ReportingR;ComponentsR -Q -AWinTypes=Windows;WinProcs=Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE -DDEBUG;CONSTRAINT_CHECKING;_VER6;EUREKALOG_VER6;EurekaLog -V -VN -GD --drc -W-SYMBOL_DEPRECATED -W-SYMBOL_PLATFORM -W-UNIT_PLATFORM -W-UNIT_DEPRECATED   Myproject.dpr