We help IT Professionals succeed at work.

Compiling 64 bit Delphi with Bamboo

Medium Priority
169 Views
Last Modified: 2019-11-25
Hi, I have been trying to Build a 64 bit Delphi project with a Bamboo Continuous Integration Build Server.

The weird thing is that I'm able to build the 64 bit project on the server machine itself using MSBuild in the Windows Command Line, but not through Bamboo.

But when making Bamboo run the same cmd script as on the server itself it always returns the error:
'error F1027: Unit not found: 'System' or binary equivalents (.dcu)'

Searching Google said that this was a problem with not including the right paths for the relevant Delphi components. But after including all of the paths it still doesn't compile a 64 bit Delphi project.

Here is the cmd batch script that Bamboo executes:
@SET BDS=C:\Program Files (x86)\Embarcadero\Studio\19.0
@SET BDSINCLUDE=C:\Program Files (x86)\Embarcadero\Studio\19.0\include
@SET BDSCOMMONDIR=C:\Users\Public\Documents\Embarcadero\Studio\19.0
@SET FrameworkDir=C:\Windows\Microsoft.NET\Framework\v3.5
@SET FrameworkVersion=v3.5
@SET FrameworkSDKDir=
@SET DXVCL=C:\Program Files (x86)\DevExpress VCL
@SET PATH=%FrameworkDir%;%FrameworkSDKDir%;C:\Program Files (x86)\Embarcadero\Studio\19.0\bin;C:\Program Files (x86)\Embarcadero\Studio\19.0\bin64;C:\Users\Public\Documents\Embarcadero\InterBase\redist\InterBaseXE3\IDE_spoof;$(BDSLIB)\win32\release;$(BDSLIB)\win64\release;$(BDSLIB)\win32\fura;$(BDSLIB)\win64\fura;C:\Program Files (x86)\Embarcadero\Studio\19.0\source\rtl\sys;C:\Program Files (x86)\DevExpress VCL\Library\RS25;C:\Program Files (x86)\DevExpress VCL\Library\RS25\Win64;C:\Users\Public\Documents\Embarcadero\Studio\19.0\Bpl;C:\Users\Public\Documents\Embarcadero\Studio\19.0\Bpl\Win64;C:\Program Files (x86)\Embarcadero\Studio\19.0\lib\win64\debug;C:\Program Files (x86)\Embarcadero\Studio\19.0\lib\win64\release;%PATH%
@SET LANGDIR=EN
@SET PLATFORM=Win64

"C:\WINDOWS\Microsoft.NET\Framework\v3.5\MSBuild.exe" /t:Rebuild /p:config=Debug "Delphi/RKNKERFI.dproj"

Open in new window

How can I fix this?
Comment
Watch Question

Sinisa VukSoftware architect
CERTIFIED EXPERT
Top Expert 2012

Commented:
I see lots of 32 bit folders in path line.
All folders should be for 64 bit .dcu-s. (C:\Program Files (x86)\DevExpress VCL\Library\RS25 is before C:\Program Files (x86)\DevExpress VCL\Library\RS25\Win64 ex.)
Why you don't build in Delphi instead - which fix that properly?
Commented:
The solution was that the user Bamboo is running did not have proper permission