Hello,

Thanks for reply!  :)

following is my environment:

OS: GNU/linux
perl: 5.8.8
tcl/tk : 8.5

Which means I need to wrap binary file libtk8.5.so / libtkstub8.5.a into my
excutable.

I've tried. But it still didn't work.

The packing command   I apply shows below:

pp -vvv -l /twhome/wcliue/usr/local/lib -a /twhome/wcliue/usr/local/lib -C
-c -M Tcl::Tk -o my_execute script.pl


the perl library and Tcl library are all in twhome/wcliue/usr/local/lib
directory. Is there anything wrong?



So I am wondering  how the tcl intepreter, which is created by your Tcl
module, searchs for used package.

Will it depend on the environment settings, for example, TCLLIBPATH?



Best regards,

Wei-Chih Liu
ASIC Service Department / Design Methodology Division
Taiwan Semiconductor Manufacturing Company, Ltd.
Tel : 886-3-5636688 ext 707-6190
Fax: 886-3-5768839
[email protected]
----- Forwarded by WCLIUE/TSMC on 2010/10/07 05:52 PM -----
|---------+------------------------------------>
|         |           "Konovalov, Vadim        |
|         |           (Vadim)** CTR **"        |
|         |           <vadim.konova...@alcatel-|
|         |           lucent.com>              |
|         |                                    |
|         |           2010/10/07 05:37 PM      |
|         |                                    |
|---------+------------------------------------>
  
>--------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                             |
  |       To:      "[email protected]" <[email protected]>                          
                                             |
  |       cc:                                                                   
                                             |
  |       Subject: RE: Perl Tcl module issue                                    
                                             |
  
>--------------------------------------------------------------------------------------------------------------------------|




> My name is Wei-Chih, I'm from Taiwan,
>
> Thank you for maintaining Tcl, Tk module for us.
>
>
> I have a question about Tcl::Tk module.
>
> I am trying to use pp(perl paking utility) to wrap a perl
> script, which
> includes your Tcl::Tk module, into binary.
>
> Before wrapping to binary, this script just works fine.
>
> But after I wrap this script into binary, some error occured.
>
> the error message shows as below:
>
> Tcl procedure 'winfo' not found at Tcl/Tk.pm line 591.
>
>
> I guess it is because the tcl intepreter can not find tk library,
>
> so I specify the TCLLIBPATH in my environment, but still not work.
>
>
> Is there any suggestion to resolve this kind of issue?

Hi,
sorry for the delay in answering, but please use mailing list
[email protected] for questions like yours, there are more chances to get
timely reply.

Indeed, message "'winfo' not found " means problem with finding tk library,
while tcl seemingly works okay.

However the PAR approach is indeed a bit non-trivial.
It packs needed Perl binaries, and dependant libraries could also go into
executable.
I think that in Tk case you should bother about dependant tkkit.dll - it
should be found properly during Tcl.pm bootstrap process

I guess that PAR works for Tkx already, and tweaking Tcl::Tk to also work
should be not hard.

What OS and Perl and Tk binaries do you use?

Best regards,
Vadim.



 --------------------------------------------------------------------------- 
                                                         TSMC PROPERTY       
 This email communication (and any attachments) is proprietary information   
 for the sole use of its                                                     
 intended recipient. Any unauthorized review, use or distribution by anyone  
 other than the intended                                                     
 recipient is strictly prohibited.  If you are not the intended recipient,   
 please notify the sender by                                                 
 replying to this email, and then delete this email and any copies of it     
 immediately. Thank you.                                                     
 --------------------------------------------------------------------------- 



Reply via email to