2010-10-28 63 views
1

我無法用TclDevKit5.2包裝最簡單的TCL應用程序。Tcl開發工具包:找不到包裝starkit

我在64位的CentOS,這裏笏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+"[email protected]"} 
## 
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 

回答

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(注意:你需要一個圖形環境)