Indy 10.1.6 在BCB6上的编译方法

Indy 10.1.6 在BCB6上的编译方法

欢迎转载,也欢迎使用Indy和BCB的朋友和我交流。

最近下载了Indy 10.1.6,惊喜的发现其中的FullC6.bat 竟然更新了,先激动了一下,然后运行了一下,哇噻!顺利的生成了 dclIndyCore60.bpl、dclIndyProtocols60.bpl、IndyCore60.bpl、IndyProtocols60.bpl 等文件 ,赶紧启动BCB6,Install Package ... ... 怎么回事?BCB6 竟然提示“This is not design time package”,以为自己RPWT,赶紧又试了几次,还是不行,又在另一台机器上试,还是同样的错误,没办法,又到Indy的新闻组去询问,可是新闻组的大牛Gambit回答说“Works fine for me.”,真是无可奈何。后来仔细观察,发现它连lib文件都没有生成,于是尝试参照indy9的bat又改写了一下,编译,安装-> 嘿,还真装上了,用了用,目前没发现有问题。

下面将我改过的FullC6.bat 公布一下。希望能对使用BCB、Indy的朋友有帮助!

》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

@echo off

if (%1)==() goto test_command
if (%1)==(start) goto start
goto endok

:test_command
if (%COMSPEC%)==() goto no_command
%COMSPEC% /E:9216 /C %0 start %1 %2 %3
goto endok

:no_command
echo No Command Interpreter found
goto endok

:start
call clean.bat
computil SetupC6
if exist setenv.bat call setenv.bat
if not exist ../C6/*.* md ../C6 >nul
if exist ../C6/*.* call clean.bat ../C6/
if (%NDC6%)==() goto enderror

REM ***************************************************
REM Compile Runtime Package IndySystem60
REM ***************************************************
cd System
copy *.pas ../../C6
copy *.dpk ../../C6
copy *.obj ../../C6
copy *.inc ../../C6
copy *.res ../../C6
copy *.dcr ../../C6
copy *.lsp ../../C6
cd ../../C6
%NDC6%/bin/dcc32.exe IndySystem60.dpk /O../objs /DBCB /M /H /W /JPHN -$d-l-n+p+r-s-t-w-y- %2 %3 %4
if errorlevel 1 goto enderror
%NDC6%/bin/dcc32.exe IndySystem60.dpk /M /DBCB /O../objs /H /W -$d-l-n+p+r-s-t-w-y- %2 %3 %4
if errorlevel 1 goto enderror
../Lib/LspFix IndySystem60.lsp
%NDC6%/bin/tlib.exe IndySystem60.lib /P32 @IndySystem60.lsp

REM ***************************************************
REM Clean-up IndyCore60
REM ***************************************************

REM ***************************************************
REM Compile Runtime/Designtime Packages IndyCore60
REM ***************************************************
cd ../Lib/Core
copy *.pas ../../C6
copy *.dpk ../../C6
copy *.obj ../../C6
copy *.inc ../../C6
copy *.res ../../C6
copy *.dcr ../../C6
copy *.lsp ../../C6
cd ../../C6
%NDC6%/bin/dcc32.exe IndyCore60.dpk /O../objs /DBCB /M /H /W /JPHN -$d-l-n+p+r-s-t-w-y- %2 %3 %4
if errorlevel 1 goto enderror
%NDC6%/bin/dcc32.exe IndyCore60.dpk /M /DBCB /O../objs /H /W -$d-l-n+p+r-s-t-w-y- %2 %3 %4
if errorlevel 1 goto enderror

../Lib/LspFix IndyCore60.lsp
%NDC6%/bin/tlib.exe IndyCore60.lib /P32 @IndyCore60.lsp

%NDC6%/bin/dcc32.exe dclIndyCore60.dpk /DBCB /O../objs /H /W /N. /LIndyCore60.dcp -$d-l-n+p+r-s-t-w-y- %2 %3 %4
if errorlevel 1 goto enderror

 

REM ***************************************************
REM Clean-up IndyCore60
REM ***************************************************


REM ***************************************************
REM Compile Runtime/Designtime Packages IndyProtocols60
REM ***************************************************
cd ../Lib/Protocols
copy *.pas ../../C6
copy *.dpk ../../C6
copy *.obj ../../C6
copy *.inc ../../C6
copy *.res ../../C6
copy *.dcr ../../C6
copy *.lsp ../../C6
cd ../../C6
%NDC6%/bin/dcc32.exe IdCompressionIntercept.pas /O../objs /DBCB /M /H /W /JPHN -$d-l-n+p+r-s-t-w-y- %2 %3 %4
%NDC6%/bin/dcc32.exe IdDummyUnit.pas /LIndy60.dcp /DBCB /O../objs /M /H /W /JPHN -$d-l-n+p+r-s-t-w-y- %2 %3 %4
if errorlevel 1 goto enderror
del IdDummyUnit.dcu >nul
del IdDummyUnit.hpp >nul
del IdDummyUnit.obj >nul

%NDC6%/bin/dcc32.exe IndyProtocols60.dpk /O../objs /DBCB /M /H /W /JPHN -$d-l-n+p+r-s-t-w-y- %2 %3 %4
if errorlevel 1 goto enderror
%NDC6%/bin/dcc32.exe IndyProtocols60.dpk /M /DBCB /O../objs /H /W -$d-l-n+p+r-s-t-w-y- %2 %3 %4
if errorlevel 1 goto enderror

../Lib/LspFix IndyProtocols60.lsp
%NDC6%/bin/tlib.exe IndyProtocols60.lib /P32 @IndyProtocols60.lsp

%NDC6%/bin/dcc32.exe dclIndyProtocols60.dpk /DBCB /O../Lib/Protocols/objs /H /W /N. /LIndyProtocols60.dcp -$d-l-n+p+r-s-t-w-y- %2 %3 %4
if errorlevel 1 goto enderror

REM ***************************************************
REM Clean-up IndyProtocols60
REM ***************************************************
REM del *.dcu > nul
del *.pas > nul
del *.dpk > nul
REM del *.obj > nul
del *.inc > nul
REM del *.res > nul
del *.dcr > nul
del *.lsp > nul
cd ../Lib
goto endok

:enderror
call ../Lib/clean.bat
cd ../Lib
echo Error!

:endok

 

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》》

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值