How to build examples\network\tcp_connection\server

How to install Indy in FPCUPdeluxe?

in delphi ,build(examples\network\tcp_connection\server) is ok! delphi installed indy!
in lazarus,this code is build and test run ok! FPCUPdeluxe lazarus installed indy!
-------------------------test IdTCPServer in FPCUPdeluxe lazarus OK----------------------
unit Unit1;

{$mode objfpc}{$H+}

interface

uses
Classes, SysUtils, Forms, Controls, Graphics, Dialogs, StdCtrls, IdTCPServer, IdCustomTCPServer, IdContext;

type

{ TForm1 }

TForm1 = class(TForm)
Button1: TButton;
Button2: TButton;
Edit1: TEdit;
IdTCPServer1: TIdTCPServer;
Memo1: TMemo;
procedure Button1Click(Sender: TObject);
procedure Button2Click(Sender: TObject);
procedure IdTCPServer1Execute(AContext: TIdContext);
private

public

end;

var
Form1: TForm1;

implementation

{$R *.lfm}

{ TForm1 }

procedure TForm1.Button1Click(Sender: TObject);
begin
IdTCPServer1.DefaultPort:= 80;
IdTCPServer1.Active:= true;
Button1.Enabled:= false;
Button2.Enabled:= true;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
IdTCPServer1.Active:= false;
Button1.Enabled:= true;
Button2.Enabled:= false;
end;

procedure TForm1.IdTCPServer1Execute(AContext: TIdContext);
begin
//
end;

end.

but build examples\network\tcp_connection\server


Running “D:\castle_game_engine\bin\castle-engine.exe compile --mode=debug --compiler=fpc”

Compiling project “server” for OS / CPU “win64 / x86_64” in mode “debug”.
FPC executing…
Compiling Debug Version
Free Pascal Compiler version 3.2.2-r0d122c49 [2025/10/20] for x86_64
Copyright (c) 1993-2021 by Florian Klaempfl and others
Target OS: Win64 for x64
Compiling server_standalone.dpr
User defined: Thread support enabled.
Compiling .\code\gameinitialize.pas
Compiling .\code\gameviewmain.pas
Compiling D:\castle_game_engine\src\files\indy\castleclientserver.pas
D:\castle_game_engine\src\files\indy\castleclientserver.pas(35,5) Fatal: Can’t find unit IdTCPServer used by CastleClientServer
Fatal: Compilation aborted
Error: D:\fpcupdeluxe3_4\fpc\bin\x86_64-win64\ppcx64.exe returned an error exitcode
Exception “Exception”:
Failed to compile

Command finished with status 1.

Powered by:

  • Castle Game Engine
  • Indy
  • freepascal
add search_paths    in CastleEngineManifest.xml 
test (exe and apk) ok!!
 compiler_options
   search_paths    
           path value="code/" 
	  path value="code/indy/Core" 
	  path value="code/indy/Protocols" 
	  path value="code/indy/System" 
   search_paths
 compiler_options

I see you found the solution, indeed you should edit the paths in CastleEngineManifest.xml to point Castle Game Engine build tool to where your Indy sources are.

Note that we have

Edit the client/CastleEngineManifest.xml and server/CastleEngineManifest.xml files and replace the your/path/to/Indy10 example there with actual path to Indy units on your system. It can be an absolute path (like c:/indy/ or /home/me/indy) or relative path (like ../../indy/).