You can make it work. It is not that hard.
- Download from SVN. I'll refer to the base directory as
tplockbox
. - Go to the
tplockbox/trunc/packages
directory. Copy the d2010
directory contents to a new directory namedXE
. - Rename
TP_LockBox_d2010.grouproj
to TP_LockBox_XE.groupproj
- Open it, right click
TP_LockBox3_d2010.bpl
, go to Options, change "LIB suffix" from the Description section to_XE
. - Do the same for the
dclTP_LockBox3_d2010.bpl
project - Adjust output paths and directories for all projects. I don't remember if I just went ahead and changed this globally.
- Build and install
TP_LockBox3_XE.bpl
and dclTP_LockBox3_XE.bpl
packages.
If you want the test cases to work, you'll have to modify the tplockbox/trunc/test/uLockBox_TestCases.pas
file. There are some hard coded checks for an older version of DUnit than the one that comes with Delphi XE. You can just comment out these checks.
another method:
Installation Problem with Delphi XE
I can not compile. The Installation program fails with this error:
......................
Will now attempt to execute 10 jobs.
Cmd: De-installing the design-time package dclTP_LockBox3.dpk with compiler Delphi XE
Diag: Job completed ok.
Cmd: Configuring TP_LockBox3.dpk in preparation for compilation.
TP_LockBox3.dpk:
Compiler = Delphi XE
Type = Package (BPL output)
RunTime = True
DesignTime = False
Description = 'TurboPower LockBox 3 run-time package'
Project directory = "D:\DelphiTools\LockBox3\packages\DXE"
BPL suffix = _dXE
BPL output dir = "D:\Users\Alfonso\Documents\Borland Studio-Projekte\Bpl"
Include directories = D:\Users\Alfonso\Documents\Borland Studio-Projekte\Inc
DCP output dir = "D:\DelphiTools\LockBox3\Compiled"
DCU output dir = "D:\DelphiTools\LockBox3\Compiled"
Diag: Job completed ok.
Cmd: Compiling package TP_LockBox3.dpk with compiler Delphi XE.
Embarcadero Delphi für Win32 Compiler-Version 22.0
Copyright (c) 1983,2010 Embarcadero Technologies, Inc.
TP_LockBox3.dpk(82) Warnung: W1007 Unit 'uTPLb_OpenSSL' ist experimentell
25067 Zeilen, 0.14 Sekunden, 213828 Byte-Code, 16072 Byte-Daten.
Diag: Job completed ok.
Cmd: Configuring dclTP_LockBox3.dpk in preparation for compilation.
dclTP_LockBox3.dpk:
Compiler = Delphi XE
Type = Package (BPL output)
RunTime = False
DesignTime = True
Description = 'TurboPower LockBox 3 design-time package'
Project directory = "D:\DelphiTools\LockBox3\packages\DXE"
BPL suffix = _dXE
BPL output dir = "D:\Users\Alfonso\Documents\Borland Studio-Projekte\Bpl"
Include directories = D:\Users\Alfonso\Documents\Borland Studio-Projekte\Inc
DCP output dir = "D:\DelphiTools\LockBox3\Compiled"
DCU output dir = "D:\DelphiTools\LockBox3\Compiled"
Diag: Job completed ok.
Cmd: Compiling package dclTP_LockBox3.dpk with compiler Delphi XE.
Embarcadero Delphi für Win32 Compiler-Version 22.0
Copyright (c) 1983,2010 Embarcadero Technologies, Inc.
dclTP_LockBox3.dpk(32) Schwerwiegend: E2202 Package 'TP_LockBox3_DXE' wird benötigt, konnte aber nicht gefunden werden
Diag: Job "Compiling package dclTP_LockBox3.dpk with compiler Delphi XE." failed!
Cmd: Erasing temporary configuration files.
Diag: Job completed ok.
At least one job failed. Processing of remaining jobs aborted.
method:
It looks like the run-time package was compiled ok, but when it came to compiling the design-time package, the compiler could not find the dependant run-time package.
Is your BPL directory ("D:\Users\Alfonso\Documents\Borland Studio-Projekte\Bpl") on the system PATH? (This is required.)
After the run-time package is compiled using the automated installer, look in the BPL directory. What is the file-name of the run-time package? Is it TP_LockBox3_DXE.bpl or TP_LockBox3_DXE_DXE.bpl?
Faithfully,
Sean.
最终问题其实是:编译成功,并且编译的 BPL 出现在 DELPHI IDE 设置的 BPL 目录里面了,但 DELPHI 提示找不到 BPL 文件!因此在编译时提示错误,错误信息是找不到 BPL 文件。
DELPHI 设置的 BPL 目录是:C:\Users\Public\Documents\RAD Studio\9.0\Bpl 。(delphi xe2)
最后,直接设置 LockBox 3 工程的 Option 里面的输出BPL目录为工程的当前目录,而非上述 DELPHI 指定的目录,结果编译和安装成功。
line:http://lockbox.seanbdurkin.id.au/tiki-view_forum_thread.php?comments_parentId=249&topics_offset=11
http://lockbox.seanbdurkin.id.au/tiki-view_forum_thread.php?comments_parentId=321
转自:http://stackoverflow.com/questions/4080825/is-there-a-version-of-lockbox-for-delphi-xe