Re: How to wrap a tcl file to .exe on windows?
CJL <[email protected]> Thu, 24 Apr 2014 01:49:42 -0700 (PDT)
| Newsgroups | gmane.comp.lang.tcl.starkit |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_941_28952188.1398329382425 Content-Type: text/plain; charset=UTF-8 On Friday, 18 April 2014 15:44:10 UTC+1, neutrino wrote: > Thank you so much for your reply .I will try the steps you listed. I find > a > tool called Mytcl looks like VC++ written by In-Hak Min from South > Korea.It > is easy to make an exe with it. But when I use PNGs, there are some errors > .It seems that the Mytcl can't read PNGs, but the packge "img::png" really > exists when I check it with the command "package names" . This confused me > a > lot. I don't know MyTcl or how .exe files it builds compare to tclkits. I can tell you that to make a package available to a tclkit app, simply copy it into a subdirectory of chess.vfs\lib It might be that img::png is available on your system, but is not being built into chess.exe by MyTcl. > Then I convert the PNGs into GIFs. I finally get the chess.exe like > this: > <http://tcl.2662.n7.nabble.com/file/n65440/%E5%9B%BE%E7%89%871.png> > > I will try the steps you listed to see if it is ok with the PNGs. thankyou > again for your reply. > > PS:My tcl version is 8.6.1, do I have to make a 8.6.1 tclkit.exe ? > You will need a tclkit.exe that supports whatever Tcl and Tk features you have used in your scripts. Generally features from a recent version can be added to an older version using packages, but it is often easier and neater to just use the newest version. To solve your PNG problem : 8.6 introduces native support for PNGs without needing img::png, or for an older tclkit, copy the img package into chess.vfs\lib\img (note - a full 'img' package will have .dlls for all sorts of image formats - you can leave out any that aren't relevant to PNG to make a smaller .exe) Chris -- -- You received this message because you are subscribed to the "starkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/starkit?hl=en --- You received this message because you are subscribed to the Google Groups "starkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout. ------=_Part_941_28952188.1398329382425 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>On Friday, 18 April 2014 15:44:10 UTC+1, neutrino wr= ote:<br></div><div><blockquote class=3D"gmail_quote" style=3D"margin: 0;mar= gin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">Thank you s= o much for your reply .I will try the steps you listed. I find a <br>tool called Mytcl looks like VC++ written by In-Hak Min from South Kore= a.It <br>is easy to make an exe with it. But when I use PNGs, there are some err= ors <br>.It seems that the Mytcl can't read PNGs, but the packge "img::png" rea= lly <br>exists when I check it with the command "package names" . This confused= me a <br>lot.</blockquote><div><br></div><div>I don't know MyTcl or how .exe fil= es it builds compare to tclkits. I can tell you that to make a package avai= lable to a tclkit app, simply copy it into a subdirectory of chess.vfs\lib<= br></div><div>It might be that img::png is available on your system, but is= not being built into chess.exe by MyTcl.</div><div><br></div><div> </= div><blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex= ;border-left: 1px #ccc solid;padding-left: 1ex;">Then I convert the PNGs in= to GIFs. I finally get the chess.exe like <br>this: <br><<a href=3D"http://tcl.2662.n7.nabble.com/file/n65440/%E5%9B%BE%E7%8= 9%871.png" target=3D"_blank" onmousedown=3D"this.href=3D'http://www.google.= com/url?q\75http%3A%2F%2Ftcl.2662.n7.nabble.com%2Ffile%2Fn65440%2F%25E5%259= B%25BE%25E7%2589%25871.png\46sa\75D\46sntz\0751\46usg\75AFQjCNFobKrv8FPFJUi= W1ftt2NHsZe8UJg';return true;" onclick=3D"this.href=3D'http://www.google.co= m/url?q\75http%3A%2F%2Ftcl.2662.n7.nabble.com%2Ffile%2Fn65440%2F%25E5%259B%= 25BE%25E7%2589%25871.png\46sa\75D\46sntz\0751\46usg\75AFQjCNFobKrv8FPFJUiW1= ftt2NHsZe8UJg';return true;">http://tcl.2662.n7.nabble.<wbr>com/file/n65440= /%E5%9B%BE%E7%<wbr>89%871.png</a>>=20 <br> <br>I will try the steps you listed to see if it is ok with the PNGs. thank= you <br>again for your reply. <br> <br>PS:My tcl version is 8.6.1, do I have to make a 8.6.1 tclkit.exe ? <br></blockquote><div><br></div>You will need a tclkit.exe that supports wh= atever Tcl and Tk features you have used in your scripts. Generally feature= s from a recent version can be added to an older version using packages, bu= t it is often easier and neater to just use the newest version. To solve yo= ur PNG problem : 8.6 introduces native support for PNGs without needing img= ::png, or for an older tclkit, copy the img package into chess.vfs\lib\img = (note - a full 'img' package will have .dlls for all sorts of image formats= - you can leave out any that aren't relevant to PNG to make a smaller .exe= )<div><br></div><div>Chris</div></div><div><br></div></div> <p></p> -- <br /> -- <br /> You received this message because you are subscribed to the "starkit&q= uot; group.<br /> To post to this group, send email to [email protected]<br /> To unsubscribe from this group, send email to starkit-unsubscribe@googlegro= ups.com<br /> For more options, visit this group at <a href=3D"http://groups.google.com/g= roup/starkit?hl=3Den">http://groups.google.com/group/starkit?hl=3Den</a><br= /> --- <br /> You received this message because you are subscribed to the Google Groups &= quot;starkit" group.<br /> To unsubscribe from this group and stop receiving emails from it, send an e= mail to <a href=3D"mailto:[email protected]">starkit+uns= [email protected]</a>.<br /> For more options, visit <a href=3D"https://groups.google.com/d/optout">http= s://groups.google.com/d/optout</a>.<br /> ------=_Part_941_28952188.1398329382425--