-
Notifications
You must be signed in to change notification settings - Fork 154
TLDR Quick How‐to: Replacing default Indy on fresh install of Delphi 12
Installing Indy from source tends to be complicated to install due to a) preinstalled version of Indy, and b) an emphasis on backwards-compatibility with every version of Delphi (or Lazarus/Free Pascal) ever released.
This page has simplified step-by-step instructions for installing Indy from source on a fresh install of Delphi 12 (installed with the Offline installer using the RAD Studio, Delphi, C__ Builder 12.2 inline ISO (RADStudio_12_2_i_0329_C2CC.iso) image and Indy source on GitHub as of 12/20/2024) on Windows 10 x64.
The basic steps can probably be adapted for other versions of Delphi.
-
{exit out of Delphi}
-
{open Administrator Command prompt}
-
cd \Prog
(or whatever your preferred folder is to hold the Indy source folder that will be created) -
git clone https://github.com/IndySockets/Indy
(assumes that git.exe is installed and is in the path) -
cd Indy/Lib
-
Clean_Athens.cmd
(removes default install of Indy) -
Fullc_Athens.bat
(rebuilds Indy. May be optional, as the resulting .bpl files aren't easily used, but will progamatically build the source and report any errors) -
Note output: *.bpl files saved in C:\Users\Public\Documents\Embarcadero\Studio\23.0\Bpl but get moved to C:\Prog\Indy\C29\Win32\Release
-
Launch Delphi
-
Note error / confirm dialog: Can't load package c:\program files (x86)\embarcadero\studio\23.0\Bin\LivePreview290.bpl (click No to prevent this error in the future)
-
File / Open C:\Prog\Indy\Lib\Indy290.groupproj
-
For each project (in order) right-click and Build (Or right-click the top level group Indy290 and Build All)
-
right-click dclIndyCore290.bpl and Install
-
right-click dclIndyProtocols290.bpl and Install
-
Exit Delphi
-
Save changes to dclIndyCore290.dprog? click Yes
-
Save changes to dclIndyCProtocols290.dprog? click Yes
-
Launch Delphi
-
Tools / Options
-
Language / Delphi / Library / Library Path then click ...
-
In edit box enter: C:\Prog\Indy\Lib\Core then click Add
-
In edit box enter: C:\Prog\Indy\Lib\System then click Add
-
In edit box enter: C:\Prog\Indy\Lib\Protocols then click Add
-
Click OK then Save
Now you should be ready to use Indy in a new or existing project. When you build your project the new version of Indy will be linked in.