如何在 Delphi 10.3 Rio 上安装 Indy?

How to install Indy on Delphi 10.3 Rio?

帮助说 "You can use GetIt Package Manager to discover and install additional third-party software onto RAD Studio." 但 Indy 在 GetIt 中不可用

我从 Github 下载了最新的文件。我 运行 Fullc_Rio.bat 文件然后打开 Indy260.groupproj 但是在编译时我得到:

[Fatal Error] Cannot compile package 'IndySystem260' which is currently required by Delphi 10.3.

Indy 已在产品安装期间安装在 Rio 中。它用于部分 RTL。它已经安装在 Delphi.

的所有版本中

如果您打开一个新的 VCL 或 FMX 应用程序,单击一个窗体以激活设计器,然后转到组件选项板,然后在搜索框中输入 TId,您可以在调色板中找到Indy相关的组件页面。

Indy 预装在每个 IDE 版本中,并且已经预装了很长时间。

但是,如果您想安装比 Embarcadero 发布的版本更新的版本,则必须先删除预安装的版本。 Indy 的 installation notes:

中提到了这一点

All package names are followed by X0 (where X0 is your Delphi/C++Builder/RAD Studio product version).

...

If Indy 10 is already installed, it needs to be uninstalled first:

  • Remove the pre-compiled design-time BPL files - dclIndyCoreX0.bpl and dclIndyProtocolsX0.bpl - from the IDE via the "Components > Install Packages" dialog.
  • Delete all of the existing binaries - IndySystemX0.*, (dcl)IndyCoreX0.*, and (dcl)IndyProtocolsX0.*
  • Delete any Indy 10 source files, if present.
  • Be sure to check for files in the IDE's \bin, \lib, and \source folders, \Indy subfolders, and OS system folders.

...

You can either:

  • Use the command-line FULLD#.BAT script that corresponds to your Delphi version.

  • Open the individual DPK files in the IDE and compile them, in the following order:

    1. IndySystemX0.dpk (in Lib\System)
    2. IndyCoreX0.dpk (in Lib\Core)
    3. IndyProtocolsX0.dpk (in Lib\Protocols)
    4. dclIndyCoreX0.dpk (in Lib\Core)
    5. dclIndyProtocolsX0.dpk (in Lib\Protocols)

...

有关完整说明,请参阅 installation notes