我无法使用TclDevKit5.2包装最简单的TCL应用程序。
我在64位CentOS上,这里wat uname -a
返回:
Linux hp1 2.6.18-194.11.1.el5 #1 SMP Tue Aug 10 19:05:06 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
输入时:
/opt/TclDevKit-5.2/bin/tclapp -out wrap empty.tcl
(此处empty.tcl是一个空文件)它会生成./wrap
可执行文件,但在尝试运行./wrap
时,会报告此信息:
can't find package starkit
while executing
"package require starkit"
(file "./wrap" line 5)
以下是./wrap
的第一行:
#!/bin/sh
# \
exec tclsh "$0" ${1+"$@"}
##
package require starkit
starkit::header mk4 -readonly
##
# here goes the binary executable ....
我做错了什么? starkit
包位于何处?也许我必须在add_path
上添加一些东西?
我正在使用TclDevKit的21天试用版,这是生成./wrap
时报告的日志:
info | Tcl Dev Kit TclApp
info | Copyright (C) 2001-2010 ActiveState Software Inc. All rights reserved.
info | Licensed to Trial User (Trial license, serial number *6928738*).
info |
info | Embedding license information into wrap result as comments.
info |
info | Expires: 18-11-2010.
info |
info | WARNING: All applications generated by this trial version
info | will also stop working on 18-11-2010.
info Expanding...
info Following only profile dependencies
info
info Issues...
info
notice Packages ...
notice * No packages
info Inserting "tclsh" into starkit header.
info Inserting "-readonly" into starkit header.
info Inserting TEApot metadata
info Nothing to insert
info
notice Extending the list of provided packages
info
info F 0B /home/vminasyan/workspace/tests/TclDevKit/empty.tcl
info
info Generated wrap
答案 0 :(得分:1)
我没有测试,但我认为你缺少前缀参数
-prefix /TclDevKit/bin/base-tk-<whatever-your-platform>
所以你的命令应该是这样的:
/opt/TclDevKit-5.2/bin/tclapp -prefix /TclDevKit/bin/base-tk-<whatever-your-platform> -out wrap empty.tcl
无论如何,我建议你使用项目文件。你可以创建它而不需要任何参数来执行tclapp
(注意:你需要一个图形环境)