win10 64bits install indy10.2.0.3 for lazausr1.6

205次阅读
没有评论

共计 2458 个字符,预计需要花费 7 分钟才能阅读完成。

Mac os下安装lazausr及indy10.2.0.3成功;成功源于Mac os 是一个标准系统,不像windows有众多分支,winxxp 32/64,win7 32/64等,每个系统安装的方式都不一样。
本人从win10内测开始使用win10 ,已经习惯在win10下工作。
为开发跨平台的应用软件,找到了lazausr,我们都只到INDY是一个成熟的网络通讯组件,那比不可少的要安装indy10.2.0.3,官方最新版。
实际上安装并不麻烦,只是我们习惯了‘百度’,浪费了我1天时间用来搜索,安装方式,而且大多数都是错误的知道方式。
看官方安装文档,我用了10分钟就按完,有8分钟用来翻译官方文档。在吐槽一下,,百度的翻译太垃圾了。
windows安装方式

How to install (confirmed) on Windows - Indy 10.2.03
/* How to install [3] Windows, Indy 10.5.8.0 and above */ For a lot of users, I'm sure that the information given above won't work, or will be somewhat confusing given the differences between versions and inconsistent explanations.
The website points you to download the latest version from the snapshots page.
This wiki tells you to copy a lot of files over into directories.
For me, neither worked, and ended up making a mess of my Lazarus installations.
Firstly, the page I would retrieve this from ishere. Other sites I tried had problems with some files inside the archive.
When you open up the archive above, you will see there are folders: "fpc" and "lazarus".
You can copy the contents of "fpc" into: LAZARUS_DIR\fpc\2.6.0\source\packages\indylaz if you want to have things neat and tidy.
The "lazarus" folder, you copy into LAZARUS_DIR\components\indylaz
With both of these, make sure that there isn't a sub-directory inside the folders given. i.e. LAZARUS_DIR\components\indylaz\lazarus\
Go into Lazarus and go to "Package" -> "Open package file" and point it to the "indylaz.lpk" inside the LAZARUS_DIR\components\indylaz directory.
Once the package loads inside your project, click on the "options" button, which resembles an image of a parcel with a cog next to it.
Click the "Compiler Options" on the left-hand side and Click on the ".." button next to "Other unit files (-Fu) (delimiter is semicolon)".
Select the "fpc" then "lazarus" folders you created above and click OK.Lazarus will sort out the relative path for you. Don't change it.
Click OK and compile and then direct angry bile towards the individual who has steered you wrong with the previous, unhelpful, instructions.

中文翻译

1.复制‘FPC’文件夹下的内容到“LAZARUS_路径\fpc\3.0.0\source\packages\indylaz”下,说实在的没明白怎么回事
2.复制‘lazarus’文件夹下的内容到“LAZARUS_路径\components\indylaz”下,必须这么做。
3.打开lazarus 点击"Package" -> "Open package file(.lpk)" 定位到 "indylaz.lpk"文件 ,‘打开’,然后点击‘编译’,待编译完成后,点‘use’-->单击“安装”
安装完成会提示你重启lazausr.安装完成

如果你的是64位系统请修改下面的文件,否则无法编译成功。

IdAntiFreeze.pas文件
源代码为
type  TIdAntiFreeze = class(TIdAntiFreezeBase)  public    procedure Process; override;  end;
修改为
type  TIdAntiFreeze = class(TIdAntiFreezeBase)  public    {$IFDEF WIN32}    procedure Process; override;    {$ENDIF}  end;

下载地址 http://chi-na.cn/?p=726

引用该控件工程需要在:工程浏览器–》路径 其他文件(-fu)添加“lazarus\components\indylaz\lib\x86_64-win64\” lazausr路径\组件\indylaz(根据自己的名字修改)lib\x86_64-win64(我的是win10 64位根据自己的修改)\

正文完
 
admin
版权声明:本站原创文章,由 admin 2016-08-21发表,共计2458字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。