Delphi中Indy 10的安装和老版本的卸载

安装中遇到的问题:

1,用新的indy替换掉了老版本source下面的indy

2,按照参考资料编译的.dpk版本要保持跟老版本一致,如本人的就是XXX100.dpk

3,编译和安装路径统一放在了delphi安装目录的bin下面

4,在tool的library path中要加入    XXXDelphi 7\Source\Core 

XXX Delphi 7\Source\Protocols 

XXX Delphi 7\Source\SuperCore 

XXX Delphi 7\Source\System

参考资料:

http://www.cnblogs.com/tc310/p/5087907.html

http://www.cnblogs.com/railgunman/archive/2010/08/31/1814112.html

Indy 10的安装和老版本的卸载

Indy 10下载地址:

http://www.indyproject.org/downloads/10/indy10.0.52_source.zip

Indy 10 安装步骤
1、解压压缩包。 
2、打开\System\IndySystem70.dpk,点Compile。 
3、打开\Core\IndyCore70.dpk,点Compile。 
4、打开\Protocols\IndyProtocols70.dpk,点Compile。 
5、打开\SuperCore\IndySuperCore70.dpk,点Compile。//可选 

6、打开\Core\dclIndyCore70.dpk,点install。 
7、打开\Protocols\dclIndyProtocols70.dpk,点install。 
8、打开\SuperCore\dclIndySuperCore70.dpk,点install。//可选 

Indy 10 卸载及注意事项

卸载: 

1. Remove the package from Install Packages menu 

从Delphi的IDE中卸载Indy组件包 


2. Delete the *.BPL and *.DCP files of Indy from the installation directoy and from your System folder 

从你的系统目录中删除以Indy开头的所有bpl和dcp文件 


3. Remove any old old Indy files from your library path 

从你的Delphi的Library path中删除所有Indy的路径 

4。安装你的新Indy组件 



安装很顺利(安装前请先卸载Delphi自带的Indy),不过加载项目进行编译的时候报错: 

[Fatal Error] Unit1.pas(11): Unit IdContext was compiled with a different version of IdSocketHandle.TIdSocketHandle 



解决方法也很简单:只要把下列路径(默认安装在C:\Program Files\Indy 10 for Delphi 7)加入Delphi的 Library Path即可。 

C:\Program Files\Indy 10 for Delphi 7\Source\Core 

C:\Program Files\Indy 10 for Delphi 7\Source\Protocols 

C:\Program Files\Indy 10 for Delphi 7\Source\SuperCore 

C:\Program Files\Indy 10 for Delphi 7\Source\System

  

Indy下载地址

 

 

再次踩坑补充:

1,工程输出目录:C:\Proxxxx\Borland\BDS\4.0\Bin  该目录下的indyxx.bpl和dclindyxx.bpl一定要删掉

2,tool>delphi options> library - win32有调用indy的地方先删掉,安装完成之后再添加,有调用到c盘bpl的地方也删掉

 

 

 

 

 

 

http://www.indyproject.org/Sockets/Download/Borland.EN.aspx

posted @ 2017-09-25 16:47  辉辉太郎  阅读(713)  评论(0编辑  收藏  举报