delphidelphi-10-seattlebuild-server

Delphi 10 Seattle Automated Builds


I'm trying to add automated builds of our Delphi 10 Seattle projects to our build server (which currently builds all our .NET and Java projects). Now that Delphi uses MSBUILD it integrates well with TeamCity.

I can build things locally on a machine with Delphi 10 Seattle installed.

I want to run the builds on the server without having to install the full IDE if at all possible.

I've followed the instructions in
this article and in this article

When running on the server, the builds fail due to the following error (second line, first is build command):

[15:24:24][DCC] c:\Delphi\17.0\bin\dcc32.exe -$O- -$W+ --no-config -B -Q -TX.exe -AGenerics.Collections=System.Generics.Collections;Generics.Defaults=System.Generics.Defaults;WinTypes=Winapi.Windows;WinProcs=Winapi.Windows;DbiTypes=BDE;DbiProcs=BDE;DbiErrs=BDE -DDEBUG -E..\..\MODASMobileServer\Win32\Debug -I..\..\Source\Common;..\..\Source\Interfaces;..\..\Source\Messages;..\..\Source\Language\English;c:\Delphi\17.0\lib\Win32\Debug -NU..\..\Temp\MODASMobileServer\Win32\Debug -NSWinapi;System.Win;Data.Win;Datasnap.Win;Web.Win;Soap.Win;Xml.Win;Bde;System;Xml;Data;Datasnap;Web;Soap;Vcl;Vcl.Imaging;Vcl.Touch;Vcl.Samples;Vcl.Shell; -O..\..\Source\Common;..\..\Source\Interfaces;..\..\Source\Messages;..\..\Source\Language\English;c:\Delphi\17.0\lib\Win32\Debug -R..\..\Source\Common;..\..\Source\Interfaces;..\..\Source\Messages;..\..\Source\Language\English;c:\Delphi\17.0\lib\Win32\Debug -U..\..\Source\Common;..\..\Source\Interfaces;..\..\Source\Messages;..\..\Source\Language\English;c:\Delphi\17.0\lib\Win32\Debug -V -VN -NO..\..\Temp\MODASMobileServer\Win32\Debug   MODASMobileServer.dpr   
[15:24:24][DCC] This version of the product does not support command line compiling.

Clearly it thinks it isn't licensed properly.

The BIN, BIN64 and LIB directories were copied over from a fully registered and working installation.

What do I need to do in order to get XE10 projects building on a build server without installing the IDE? Or do I need to resign myself to installing the IDE?


Solution

  • I figured this out. Although I had what seemed like a fully functioning install of Delphi 10, I remembered that I had originally installed it from a trial. The trial has been properly licensed, so I had assumed that it was now a pukka installation. This was not the case, there is clearly some difference between a registered trial version and proper installation.

    To resolve this issue I:

    Re-ran the build and it worked successfully.