f



Compiling TCL/TK and extensions under windows

I have recently delved into the black art of compiling things tcl on
windows (BLT/freewrap) and I am very surprised that everytning still
uses VC 6.0.  This compiler has not been available for sale (even
apparently on ebay)  for many years.

I looked into trying to build a custom starpack with BLT statically
linked in as windows cannot load a BLT dll and found that even the
kitgen for 8.6 uses VC6.

This is fine for all those who have a copy but using bittorrent to
compile is not realy an option.

Has anyone managed to change the makefile.vc for TCL/TK and especially
BLT and starpacks to use the FREE visual C++ 2008 compiler.

I have a stop gap solution for now but I prefer a more stable solution
for a tool which is used regularly by several hundred users.

Thanks in advance

Martyn
0
msedit (170)
10/8/2009 8:21:44 AM
comp.lang.tcl 23429 articles. 2 followers. Post Follow

13 Replies
1155 Views

Similar Articles

[PageSpeed] 30

On 8 okt, 10:21, MSEdit <mse...@gmail.com> wrote:
> I have recently delved into the black art of compiling things tcl on
> windows (BLT/freewrap) and I am very surprised that everytning still
> uses VC 6.0. =A0This compiler has not been available for sale (even
> apparently on ebay) =A0for many years.
>
> I looked into trying to build a custom starpack with BLT statically
> linked in as windows cannot load a BLT dll and found that even the
> kitgen for 8.6 uses VC6.
>
> This is fine for all those who have a copy but using bittorrent to
> compile is not realy an option.
>
> Has anyone managed to change the makefile.vc for TCL/TK and especially
> BLT and starpacks to use the FREE visual C++ 2008 compiler.
>
> I have a stop gap solution for now but I prefer a more stable solution
> for a tool which is used regularly by several hundred users.
>
> Thanks in advance
>
> Martyn

VC 6.0 introduces the least additional dependencies. It may not be
pretty to use such an old compiler, but with any later version you
need to ship extra DLLs AFAIK.

Regards,

Arjen
0
10/8/2009 9:00:50 AM
The kitgen makefile.vc seems to support newer versions of VC++ *also*
as does the makefile.vc in the tcl/win sources. I still use (my
preciously guarded) VC 6.0, so not sure how well they work. Have you
actually tried building with newer versions and failed?

/Ashok

On Oct 8, 1:21=A0pm, MSEdit <mse...@gmail.com> wrote:
> I have recently delved into the black art of compiling things tcl on
> windows (BLT/freewrap) and I am very surprised that everytning still
> uses VC 6.0. =A0This compiler has not been available for sale (even
> apparently on ebay) =A0for many years.
>
> I looked into trying to build a custom starpack with BLT statically
> linked in as windows cannot load a BLT dll and found that even the
> kitgen for 8.6 uses VC6.
>
> This is fine for all those who have a copy but using bittorrent to
> compile is not realy an option.
>
> Has anyone managed to change the makefile.vc for TCL/TK and especially
> BLT and starpacks to use the FREE visual C++ 2008 compiler.
>
> I have a stop gap solution for now but I prefer a more stable solution
> for a tool which is used regularly by several hundred users.
>
> Thanks in advance
>
> Martyn

0
palmtcl (454)
10/8/2009 9:29:40 AM
O/H MSEdit έγραψε:
> I have recently delved into the black art of compiling things tcl on
> windows (BLT/freewrap) and I am very surprised that everytning still
> uses VC 6.0.  This compiler has not been available for sale (even
> apparently on ebay)  for many years.
> 
> I looked into trying to build a custom starpack with BLT statically
> linked in as windows cannot load a BLT dll and found that even the
> kitgen for 8.6 uses VC6.
> 
> This is fine for all those who have a copy but using bittorrent to
> compile is not realy an option.
> 
> Has anyone managed to change the makefile.vc for TCL/TK and especially
> BLT and starpacks to use the FREE visual C++ 2008 compiler.
> 
> I have a stop gap solution for now but I prefer a more stable solution
> for a tool which is used regularly by several hundred users.
> 
> Thanks in advance
> 
> Martyn

At least tcl/tk compiles with newer compilers...
I have compiled them using the latest VC++ compiler.
(I remember tweaking the tk makefiel.vc though, by taking stuff from the 
tcl makefile.vc...)

George
0
petasis (1405)
10/8/2009 9:37:27 AM
At Thu, 8 Oct 2009 01:21:44 -0700 (PDT) MSEdit <msedit@gmail.com> wrote:

> 
> I have recently delved into the black art of compiling things tcl on
> windows (BLT/freewrap) and I am very surprised that everytning still
> uses VC 6.0.  This compiler has not been available for sale (even
> apparently on ebay)  for many years.
> 
> I looked into trying to build a custom starpack with BLT statically
> linked in as windows cannot load a BLT dll and found that even the
> kitgen for 8.6 uses VC6.
> 
> This is fine for all those who have a copy but using bittorrent to
> compile is not realy an option.
> 
> Has anyone managed to change the makefile.vc for TCL/TK and especially
> BLT and starpacks to use the FREE visual C++ 2008 compiler.
> 
> I have a stop gap solution for now but I prefer a more stable solution
> for a tool which is used regularly by several hundred users.
> 
> Thanks in advance
> 
> Martyn

I cross-compile for MS-Windows on a Linux system using mingw32.  I
wonder if that is what most other producers of MS-Windows Tcl extensions
are doing these days -- this would explain why the 'native' MS-Windows
built stuff has not been updated. 


>                                                                                                              

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
heller@deepsoft.com       -- http://www.deepsoft.com/ModelRailroadSystem/
                                                     
0
heller (3031)
10/8/2009 12:29:12 PM
Thanks all for the pointers.

Arjen, My problem was not that it was pretty or not but that from a
legal position for a company using bittorrent to obtain a copy of the
only working compiler to make TCL/TK under windows is not good.

APN, The makefile.vc I tried was not recognised and VC2008 said it was
corrupt without extra information.

My collegue said that a lot of the options for the compiler have
changed or been removed.

The cross compiling sounds like an easier solution.
Robert do you have any pointers for how to generate .exe's under
linux ?

I have downloaded the last version of freewrap to use TCL 8.4 (6.32
8.4.19) and will try that when I get some time.

I was always impressed with the availability of tcl on many platforms
and now I have seen what is involved on windows I am even more so,
Hats off to you all.

Martyn

0
msedit (170)
10/8/2009 2:29:34 PM
At Thu, 8 Oct 2009 07:29:34 -0700 (PDT) MSEdit <msedit@gmail.com> wrote:

> 
> 
> Thanks all for the pointers.
> 
> Arjen, My problem was not that it was pretty or not but that from a
> legal position for a company using bittorrent to obtain a copy of the
> only working compiler to make TCL/TK under windows is not good.
> 
> APN, The makefile.vc I tried was not recognised and VC2008 said it was
> corrupt without extra information.
> 
> My collegue said that a lot of the options for the compiler have
> changed or been removed.
> 
> The cross compiling sounds like an easier solution.
> Robert do you have any pointers for how to generate .exe's under
> linux ?

I downloaded and installed the mingw32 package, built a cross-compile
version of gcc (3.4.2 20040916) and binutils (2.15.91 20040904), got a
copy of the MS-Windows tcl/tk stub libraries and headers, along with a
the tclConfig.sh and tkConfig.sh files for MS-Windows.  I use a
MS-Windows tclkit file as the runtime, using sdx to build the kits and
starpacks.  I don't try to compile and link .exe's.  Instead I create
.dll's and then copy them (and pkgIndex.tcl files) into the .vfs tree
and then bundle things together with sdx into a starpack, using a
MS-Windows version of tclkit as a runtime.  Feel free to download my
Model Railroad System's source code and look at the Makefiles.

> 
> I have downloaded the last version of freewrap to use TCL 8.4 (6.32
> 8.4.19) and will try that when I get some time.

I gave up on freewrap years ago.  There were some problems using it in a
cross-build environment.  The tclkit/starpack technology seems to work
lots better.

> 
> I was always impressed with the availability of tcl on many platforms
> and now I have seen what is involved on windows I am even more so,
> Hats off to you all.
> 
> Martyn
> 
>                                                  

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Download the Model Railroad System
http://www.deepsoft.com/  -- Binaries for Linux and MS-Windows
heller@deepsoft.com       -- http://www.deepsoft.com/ModelRailroadSystem/
                                                                                                
0
heller (3031)
10/8/2009 3:18:54 PM
On Oct 8, 7:29=A0pm, MSEdit <mse...@gmail.com> wrote:
> Thanks all for the pointers.
was
> corrupt without extra information.
>
> Martyn

Two things to check - do NOT have spaces in the directory path to the
Tcl sources. Also, verify that the makefile does not have Unix line
endings (I seem to vaguely remember one of the MS tools barfing, can't
remember if it was nmake)

/Ashok
0
palmtcl (454)
10/8/2009 4:29:32 PM
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigE1164379D8A702BFDB44BD4C
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

APN wrote:
=2E..
> Also, verify that the makefile does not have Unix line
> endings (I seem to vaguely remember one of the MS tools barfing, can't
> remember if it was nmake)

The resource compiler blows chucks from \n only :)  I remember that
pretty well.

Martyn:

1) BLT is a troubled extension.  10 years later it doesn't support
Stubs.  If you can, search the Wiki and find the Stubs patched version
of the source.
2) There's just no way that I can fathom how a non-Stubbed extension can
ever be used with a wrapper tool unless it was combined statically with
the wrapper executable.

It's been a while since I've messed around that deep and hope that
things have changed for the better since I last looked.

--=20



--------------enigE1164379D8A702BFDB44BD4C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkrOJ0QACgkQlZadkQh/RmEW1gCeNvAQayhZbHZWRQ1mwhRVmkHD
DFMAnj/AtQVZmSgsJ7JUeLGm1/S6Q1EZ
=84Qn
-----END PGP SIGNATURE-----

--------------enigE1164379D8A702BFDB44BD4C--
0
davygrvy (1376)
10/8/2009 5:53:57 PM
On 8 Oct, 18:53, David Gravereaux <davyg...@pobox.com> wrote:
> 1) BLT is a troubled extension. =A010 years later it doesn't support
> Stubs. =A0If you can, search the Wiki and find the Stubs patched version
> of the source.

To be exact, the problem is that BLT pokes itself inside Tcl in ways
that really very strongly violate what extensions should do. (IIRC,
the original BLT code rewrote how hashtables worked and other crazy
stuff like that.) Teasing apart the pieces so that the bits that are
visible to programmers (the widgets and other commands) are available
through an extension package is just plain difficult, and it seems to
have proved difficult to bring together desire, expertise and time in
the same person...

Donal.
0
10/8/2009 9:10:12 PM
On Oct 8, 4:21=A0am, MSEdit <mse...@gmail.com> wrote:
> I have recently delved into the black art of compiling things tcl on
> windows (BLT/freewrap) and I am very surprised that everytning still
> uses VC 6.0. =A0This compiler has not been available for sale (even
> apparently on ebay) =A0for many years.
>
> I looked into trying to build a custom starpack with BLT statically
> linked in as windows cannot load a BLT dll and found that even the
> kitgen for 8.6 uses VC6.
>
> This is fine for all those who have a copy but using bittorrent to
> compile is not realy an option.
>
> Has anyone managed to change the makefile.vc for TCL/TK and especially
> BLT and starpacks to use the FREE visual C++ 2008 compiler.
>
> I have a stop gap solution for now but I prefer a more stable solution
> for a tool which is used regularly by several hundred users.
>
> Thanks in advance
>
> Martyn

The latest version of freeWrap uses a Makefile for Visual C++ 2008.
However, that version of freeWrap also uses TCL/TK 8.5 and BLT doesn't
work with 8.5. Therefore, freeWrap 6.42 (the latest version) does not
include BLT.

I suggest that you retrieve the freeWrap 6.42 source distribution,
extract the Makefile and use it as an example of what to change in the
freeWrap 6.32 Makefile to build with the newer C++ compiler.

Dennis LaBelle (freeWrap author)
0
10/8/2009 10:53:30 PM
Thanks again everyone

Our system engineer just phoned me to say they found a CV6.0
enterprise edition (I can now boldly go where FEW have gone before).

Dennis, Thanks for your help ,I managed to compile a frewrap 55 blt
edition using tcl/tk 8.4.19 and my blt source. it seems to work ok. I
will try with the 6.32 code next week.

I found two problems with your 6.32 binary version however.
1. The zvfs does not report directories with the glob command e.g.
glob source/lib/* gives no files found but glob source/lib/themes/blue
gives me files !  This means that the package require and theme
require mechanism does not work and the auto path has to include
specifically the directories of each package and has to source each
theme manually to be included.
2. the version of blt has a bug in it which is not in my BLTz edition
(I think I have seen it in a BLTv stubs enabled version).  the
'element closest x y' reports that the element is hidden.

One other remark is that I had alot of trouble with the number 1 point
as you use exactly the same path names internally as the host machine
so the files are found on MY machine because they are there so the
executable works but when I change machines it no longer works.

This is not a critique as I am extrmly grateful for Freewrap and your
continued help. But each time I forget to test things on other
machines/drives and get caught out at the last hurdle.

Donal, as I said on another thread George appears to be advancing as
his last commited makefile for BLT includes stubs options !!!  I hope
he makes an announcement soon for those of us stuck in 8.4 land.

Martyn

0
msedit (170)
10/9/2009 9:28:12 AM
On Oct 8, 4:29=A0pm, MSEdit <mse...@gmail.com> wrote:
> Thanks all for the pointers.
>
> Arjen, My problem was not that it was pretty or not but that from a
> legal position for a company using bittorrent to obtain a copy of the
> only working compiler to make TCL/TK under windows is not good.
>
> APN, The makefile.vc I tried was not recognised and VC2008 said it was
> corrupt without extra information.
>
> My collegue said that a lot of the options for the compiler have
> changed or been removed.
>
> The cross compiling sounds like an easier solution.
> Robert do you have any pointers for how to generate .exe's under
> linux ?
>
> I have downloaded the last version of freewrap to use TCL 8.4 (6.32
> 8.4.19) and will try that when I get some time.
>
> I was always impressed with the availability of tcl on many platforms
> and now I have seen what is involved on windows I am even more so,
> Hats off to you all.
>
> Martyn

I so this to build a win32 tclsh from linux:

../configure --prefix=3D`pwd`/out/win32 --disable-shared --disable-
threads --target=3Di586-mingw32msvc --host=3Di586-mingw32msvc --
build=3Dlinux
patch < win32_Makefile.patch
make
make install

The win32_Makefile.patch is:

--- orig.Makefile	2009-02-25 10:38:29.000000000 +0200
+++ Makefile	2009-02-25 10:38:57.000000000 +0200
@@ -164,10 +164,10 @@

 VPATH =3D $(GENERIC_DIR):$(TOMMATH_DIR):$(WIN_DIR):$(COMPAT_DIR):$
(ZLIB_DIR)

-AR		=3D ar
-RANLIB		=3D ranlib
+AR		=3D i586-mingw32msvc-ar
+RANLIB		=3D i586-mingw32msvc-ranlib
 CC		=3D i586-mingw32msvc-gcc
-RC		=3D windres
+RC		=3D i586-mingw32msvc-windres
 RES		=3D res.o
 AC_FLAGS	=3D  -DPACKAGE_NAME=3D\"\" -DPACKAGE_TARNAME=3D\"\" -
DPACKAGE_VERSION=3D\"\" -DPACKAGE_STRING=3D\"\" -DPACKAGE_BUGREPORT=3D\"\" =
-
DSTDC_HEADERS=3D1 -DHAVE_NO_SEH=3D1 -DEXCEPTION_DISPOSITION=3Dint -
DHAVE_WINNT_IGNORE_VOID=3D1 -DHAVE_ALLOCA_GCC_INLINE=3D1 -
DHAVE_CAST_TO_UNION=3D1 -DTCL_CFGVAL_ENCODING=3D\"cp1252\" -
DSTATIC_BUILD=3D1 -DHAVE_ZLIB=3D1 -DHAVE_SYS_TYPES_H=3D1 -DHAVE_SYS_STAT_H=
=3D1
-DHAVE_STDLIB_H=3D1 -DHAVE_STRING_H=3D1 -DHAVE_MEMORY_H=3D1 -
DHAVE_STRINGS_H=3D1 -DHAVE_INTTYPES_H=3D1 -DHAVE_STDINT_H=3D1 -
DHAVE_UNISTD_H=3D1 -DTCL_CFG_OPTIMIZED=3D1 -DTCL_CFG_DEBUG=3D1
 CPPFLAGS	=3D


I don't know why configure doesn't correctly set the ar, ranlib and
windres commands to the mingwin versions, but I really am not
motivated to understand autoconf well enough to debug it

Cyan
0
10/9/2009 9:45:17 AM
On Oct 8, 2:29 pm, MSEdit <mse...@gmail.com> wrote:
>...obtain a copy of the only working compiler to make TCL/TK under windows...

Just to make it clear to others interested in building TCL/TK under
windows - MinGW/MSYS (http://www.mingw.org/) is also an option.

I've been using it to build TCL/TK directly on various windows
versions for years.

Perhaps there are some extensions which require VC to build on windows
- but I suspect not many nowadays.

For extensions that come with TEA config file etc - you usually just
follow the Unix instructions when building with MinGW on windows.

Julian


0
neuronstorm (108)
10/10/2009 1:33:40 PM
Reply:

Similar Artilces:

Official Windows compiler for Tcl 8.5 (or what compiler to use for extensions)?
Are the "official" builds for Tcl 8.5 going to stick to VC++ 6.0 or move to newer versions of the compiler? I'm asking because if I want to ship a C++ DLL extension that is compatible with the official 8.4 and 8.5 binaries, do I need to worry about the compiler being used and whether the main Tcl shell and my extension land up using different C runtimes? If I'm careful about memory alloc/dealloc from the correct heap, can I assume the compiler is immaterial or are there other issues (e.g. exception handling runtime) I would need to take care of? Thanks in advance /Ashok ...

Possible bug in Tcl or Windows or Tcl on Windows
Hi, There seems to be a bug in the way numbers are compared in Tcl. Consider the below script for calculating Pythagorean triplets. For hypotenuse upto a value of 100, there should have been 63 unique triplets. On Windows XP the script detects only 62. The script doesn't detect the case where c=99, b=20 ==> a=101. However running the same script under Tcl 8.4.1 in Cygwin detects 63 triplets. I don't have a Linux machine at hand to test it there. Following is the script and relevant output. Could anyone shed some light on the cause of this. Maybe it has something to do with how the numbers are represented internally? Running the script for N>100 shows up many more such missed values. An equivalent program in C runs correctly on the same machine. C code was compiled using both gcc and VC++6.0. ######################################################################### # a^2 = b^2 + c^2 proc pythag {MAX} { set i 0 for {set c 2} {$c <= $MAX} {incr c} { for {set b 1} {$b < $c} {incr b} { set a [expr hypot($c, $b)] ;# Calc. Hypot if { ($c == 99) && ($b == 20)} { ;# <<<<<<<< puts ">> [expr round($a)] == $a" } if {[expr round($a)] == $a} { puts "$a : $b : $c" incr i } } } return $i } if {$argc == 1} { set MAX [lindex $argv 0] } else { puts stderr "Usage: tclsh $argv0 N" exit } puts [pythag $MAX] ############# OUTPUT ################ Tcl 8.4.1 (Cygwi...

Tcl/Tk extension access from python under windows
Hi, I found a tcl extension that does exactly what I need to access a DLL and it would require a large amount of SWIG glue to generate an equivalent python extension. I want to access it via root.tk.call("eval", "package require extension"). I placed the extension dll (as well as the target DLL) in my Python DLLs path at the same place where the tcl/tk DLLs are. The eval fails because it doesn't find the extension. Is there a special initialisation/registration/setup change to be made to python ? thanks Marcel Achim The default search path for tcl packages from the...

[TCL/TK interface] Passing variable to TCL/TK
Hi, I am trying to sent to a variable to tcl/tk and unify there it with a string. I wrote the prolog code: :- use_module(library(tcltk)). :- use_package(classic). go(A):- tk_new([name('Simple')], Tcl), tcl_eval(Tcl, 'source simple2.tcl', _), tcl_eval(Tcl, ['ask', br(write(A))], _), tk_main_loop(Tcl), tcl_delete(Tcl). and the tcl file simple2.tcl proc ask {var} { unify_term $var my_value } unfortunatelly when I query for go(S). the interpeter goes into a loop (!?). Where I am wrong. Are there any example code somewhere i...

How to compile tcl or encrypt tcl
I use TclPro1.5 to compile my tcl script with tixwish in the Solaris before. But I cannot use the same method in Linux. Why? Is there any utility for me to compile or encrypt the code by using tixwish? The following is the simple code if I use the tixwish: #!/home/albertl/local/bin/tixwish puts "haha" And after using procomp by the TclPro1.5 Error in startup script: The TclPro ByteCode Loader is not available or does not support the correct version while executing "error "The TclPro ByteCode Loader is not available or does not support the correct version""...

Free Tcl App + Libs and TK Extension. Giving something back to the TCL Dev community
Free Tcl App + Libs and TK Extension. Giving something back to the TCL Dev community. After years of TCL Dev I am giving something back to the Dev Tcl Community. You can download NetpackX including source code at http://helihobby.com/netpackx/index.html and also you may download lots of cool aps and libs here: http://helihobby.com/netpackx/Tcl_Tk/tcl_tk.html I hope TCL/TK continues to grow and special thanks to Jeff Hobbs for his support. Regards, Sean - www.HeliHobby.com ...

Opening a TCL program from within another TCL program in ANSYS Tcl-Tk
Hi everyone, I have been pulling my hair with this one for a couple of days and still have not found a fix. I'm working within ANSYS Tcl-Tk implementation. I created a Tcl-Tk script that generates a simple window with three buttons. Each button opens another window which is created in a separate Tcl file. The second window have a lot of text entries, variables, procedures, etc. I can open the second Tcl file by itself and everything works as supposed, but when I open it using the button in the first window, it opens but any procedure called by the widgets on the second window are not found... Here's the deal... Since I'm working within the ANSYS implementation of Tcl-Tk, I'm actually using an ANSYS command to open the second window. The command I use is: ### ans_sendcommand ~eui,'source O:/mad_projects_2/ANSYS/Macros/ IBR_CAS.tcl' ### It actually sends a command back to ANSYS telling it to execute a Tcl command... I know this is not pretty but its the only way i was able to make it at least show the window. ############################## #Main Tcl (excerpt): ############################## namespace eval Tools { proc IBRCambpell {} { #source O:/mad_projects_2/ANSYS/Macros/IBR_CAS.tcl ans_sendcommand ~eui,'source O:/mad_projects_2/ANSYS/Macros/ IBR_CAS.tcl' } proc viewManager {} { ans_sendcommand ~eui,'source O:/mad_projects_2/ANSYS/Macros/ ViewManager.tcl' } proc powerAnnotation {} { ans_sendcommand ~eui,'source ...

Can I compile a tcl/tk extended C file into an exe file on windows?
I'm new to tcl/tk. I have a simple tk/tcl extended C file like this, #include <stdio.h> #include <stdlib.h> #include <tcl.h> #include <tk.h> int Tcl_AppInit(Tcl_Interp* interp) { int status; status = Tcl_Init(interp); if (status != TCL_OK) { return TCL_ERROR; } /* Initialize Tk values. */ status = Tk_Init(interp); if (status != TCL_OK) { return TCL_ERROR; } return TCL_OK; } int main(int argc, char** argv) { Tk_Main(argc, argv, Tcl_AppInit); return 0; } Can I compile this file into an exe file on windows? How? Thank you ysrise@gmail.com (yan) writes: [snip[ ...

Tcl extension: check Tcl version?
Is there a recommended way to check if a (binary) Tcl extension is loaded to the same Tcl version that was used for linking the extension? Currently I'm encountering a problem with an extension that I have built (and linked) with libtk8.3.so and that can be loaded under wish8.5 as well (without re-bulding, using package require). A number of newly provided commands work well in spite of the version mixture, but others don't, and wish8.5 crashes when these commands are used. Is this behavior normal, i.e. should I check that compile-time version and run-time version are identical? Or does this indicate some subtle coding problem? Thanks for any suggestions Olaf Olaf Dietrich wrote: > Is there a recommended way to check if a (binary) Tcl extension > is loaded to the same Tcl version that was used for linking > the extension? > > Currently I'm encountering a problem with an extension that > I have built (and linked) with libtk8.3.so and that can be > loaded under wish8.5 as well (without re-bulding, using > package require). A number of newly provided commands work > well in spite of the version mixture, but others don't, and > wish8.5 crashes when these commands are used. > > Is this behavior normal, i.e. should I check that compile-time > version and run-time version are identical? Or does this > indicate some subtle coding problem? Not subtle. Major problem. DO NOT DO THAT. If you want to be loadable across mult...

Debugger for Tcl/Tk and [incr Tcl]
hi, where can i get Coverage for debugging tcl/tk, [incr Tcl] source? this tool is advised to use in 'Practical Programming in Tcl and Tk' or any other good debugger, which i could use? best, s. On Jan 23, 5:56=A0am, Sitaca <sit...@gmail.com> wrote: > hi, > > where can i get Coverage for debugging tcl/tk, [incr Tcl] source? > this tool is advised to use in 'Practical Programming in Tcl and Tk' > > or any other good debugger, which i could use? I see, at http://wiki.tcl.tk/8638 , a brief reference to the topic of coverage for tcl. I don't know whether or not any of the tools mentioned include coverage of itcl. On 23 jan, 12:52, "Larry W. Virden" <lvir...@gmail.com> wrote: > On Jan 23, 5:56=A0am, Sitaca <sit...@gmail.com> wrote: > > > hi, > > > where can i get Coverage for debugging tcl/tk, [incr Tcl] source? > > this tool is advised to use in 'Practical Programming in Tcl and Tk' > > > or any other good debugger, which i could use? > > I see, athttp://wiki.tcl.tk/8638, a brief reference to the topic of > coverage for tcl. I don't know whether or not any of the tools > mentioned include coverage of itcl. I have a more complete version of the coverage tool mentioned on that page. I just never got around to publishing it more widely. As for debuggers: the Wiki has a lot of pointers on that subject as well. Regards, Arjen Larry W. Virden wrote:...

Tcl extension compiled
Hi there, How can I compile a Tcl C extension and link with libtcl8.x.a instead of libtcl8.x.so to get a battary-included static lib? GCC command example on Linux would be appreciated. Thanks, On 15 dec, 05:55, Wiwat <ohh...@gmail.com> wrote: > Hi there, > > How can I compile a Tcl C extension and link with libtcl8.x.a instead > of libtcl8.x.so to get a battary-included static lib? GCC command > example on Linux would be appreciated. > > Thanks, You can do so either with the explicit library name (/usr/lib/ libtcl8.x.a instead of -ltcl8.x) or wi...

TCL/TK window with no window decoration, but with keyboard and mouse events
Hi all, I want to make a toplevel window that is shown without window decoration on a linux box, but I want it to receive all mouse and keyboard events. I am trying to build a GUI that looks a bit like an old DOS GUI: one full screen window without decoration, and with a menu on the top of the window that can be navigated both with the mouse and keyboard. I am trying the following piece of code, but if I type <Alt-F>, it does not open the file menu. Can anyone give me a hint on how to achieve this? Thanks a lot #!/usr/bin/wish # Hide the main window wm withdraw . # Make sure the main window covers the entire screen area wm geometry . 1440x900+0+0 # Make sure the main window is shown without any borders surrounding it wm overrideredirect . 1 # Create the menu menu .menu -tearoff 1 # The File menu ..menu add cascade -label "File" -menu .menu.file -underline 0 menu .menu.file -tearoff 0 ..menu.file add command -label "Quit" -underline 0 -command {destroy .} # Bind the menu to the main window .. configure -menu .menu # Show the main window wm deiconify . # Make sure the wm commands are sent to the menu after 100 grab set -global . dirk.debecker@gmail.com wrote: > Hi all, > > I want to make a toplevel window that is shown without window > decoration on a linux box, but I want it to receive all mouse and > keyboard events. > I am trying to build a GUI that looks a bit like an old DOS GUI: one > full screen window without decoratio...

Incr Tcl /Tk for Tcl 8.4
Hi, I am trying to download incr Tcl and incr Tk for Tcl/Tk 8.4.19. I looked at: http://sourceforge.net/projects/incrtcl/files/%5BIncr%20Tcl_Tk%5D-source/3.4.1/ But only itcl seems to be there. And the CVS doesn't have the 3.4.1 tag. Do you know where I can get incr Tk and hopefully a corresponding iwidgets? Thanks, Andres On 5 Okt., 11:16, Andres Garcia <tclc...@gmail.com> wrote: > Hi, > > I am trying to download incr Tcl and incr Tk for Tcl/Tk 8.4.19. > > I looked at: > > http://sourceforge.net/projects/incrtcl/files/%5BIncr%20Tcl_Tk%5D-sou... > > But only itcl seems to be there. And the CVS doesn't have the 3.4.1 > tag. There is no tag for this version. But you can use a date. cvs -d :pserver:anonymous@incrtcl.cvs.sourceforge.net:/cvsroot/incrtcl -z3 co -P -D 2010-10-28 incrTcl > > Do you know where I can get incr Tk and hopefully a corresponding > iwidgets? Itk is inside itcl sources. cvs -d :pserver:anonymous@incrtcl.cvs.sourceforge.net:/cvsroot/incrtcl -z3 co -P -D 2010-10-28 iwidgets HTH rene Thanks. Andres >> I am trying to download incr Tcl and incr Tk for Tcl/Tk 8.4.19. >> >> I looked at: >> >> http://sourceforge.net/projects/incrtcl/files/%5BIncr%20Tcl_Tk%5D-sou... >> >> But only itcl seems to be there. And the CVS doesn't have the 3.4.1 >> tag. The released sources for Itcl 3.4.1 were not developed in SF CVS. SF CVS got abandoned during the January...

E.J. Friedman-Hill's Tcl/Tk Course
E.J. Friedman-Hill's Tcl/Tk Course Tcl/Tk Programming in Five Easy Lessons http://www.linbox.com/ucome.rvt/any/doc_distrib/tcltk-8.3.2/TclCourse/ I am unable to open the ppt files that seem very promising. Can anyone see what is the problem with them and can convert/fix so that I can open in the office 2007 or open office ? Thanks Bolega On 24/03/2011 2:51 AM, bolega wrote: > E.J. Friedman-Hill's Tcl/Tk Course > Tcl/Tk Programming in Five Easy Lessons > > http://www.linbox.com/ucome.rvt/any/doc_distrib/tcltk-8.3.2/TclCourse/ > > I am unable to o...

tcl-gaul: Genetic Algorithms for Tcl. (Tcl package)
This is an announcement for a relatively new Tcl project: tcl-gaul Tcl-gaul is a Tcl extension for genetic/evolutionary algorithm processing.It relies on the GAUL library: http://gaul.sourceforge.net/ * A genetic algorithm (GA) is a search technique used in computing to find exact or approximate solutions to optimization and search problems. Genetic algorithms are categorized as global search heuristics. They are a particular class of evolutionary algorithms that use techniques inspired by evolutionary biology such as inheritance, mutation, selection, and crossover. For an introduction to genetic algorithms visit: http://gaul.sourceforge.net/intro.html Platform: Linux (GAUL library dependency) Home page: http://sourceforge.net/projects/tcl-gaul/ Man page: http://tcl-gaul.sourceforge.net/ Author: Alexandros Stergiakis alsterg ...

Compiling a TCL Extension with Cygwin
I am making my first attemp to build a Tcl loadable package. I understand a Tcl extension is simply a shared library conforming to the Tcl standard for managing the dlopen() interface. >From the load command of Tcl Manual, an example extension is provided, I have included it below for reference. In compile, I get errors of undefined references to the Tcl functions Tcl_PkgRequire and Tcl_CreateObjCommand. Environment is Cygwin on WinXP. gcc -shared -o mytclext.dll -ltcl mytclext.c Given the example below, Can anyone help me compile. Your help will be much appreciated. Chad /* File my...

Cross compiling Tcl extension
Hi, I've written a Tcl extension, and have been using it successfully on Linux. I'm now trying to find on overview on how to cross compile a Tcl extension on a Linux machine targetting windows. I've searched for quite a while, including on the Tcl Wiki, but haven't yet found anything. Is there a good resource that I've missed? Or can someone provide a brief overview? Or is this fundamentaly a bad idea, and it's best that I forget about the cross compile, and just compile it under windows. Thanks, Paul. I have succesfully used MingW to compile both .dlls and executables for windows on redhat linux. It was not me who set up the system however so I do not now if it was a standard install of if changed where needed. the tar gz files war dated in 2006 but this all works up to at least windows 7 I have not tried 8 yet. Martyn You did not mention which distro you use. If it is an RPM-based system, you can install tons of things from openSUSE's OBS. I obtain my cross-compilers as well as many libraries from that source. They really do have lots of WIN32 and WIN64 things available. -- Roger Oberholtzer On 08/11/11 16:19, msedit@gmail.com wrote: > I have succesfully used MingW to compile both .dlls and executables for windows on redhat linux. > > It was not me who set up the system however so I do not now if it was a standard install of if changed where needed. > And you can build the entire toolchain yourself, see: http://www.mi...

Tcl-fann: A Tcl extension for Artificial Neural Networks.
This is an announcement for a relatively new Tcl project: tcl-fann Tcl-fann enables artificial neural networks processing in Tcl. It is using the FANN (Fast Artificial Neural Networks) library underneath. Tcl-fann supports: * Fully, sparse and shortcut type connected multi-layer networks. * Backpropagation training (RPROP, Quickprop, Batch, Incremental) * Evolving topology training which dynamically builds and trains the ANN (Cascade) * Versatile (possible to adjust many parameters and features on-the-fly) * Several different activation functions implemented (including stepwise linear functions for that extra bit of speed) * Saving and loading of entire ANNs * Cross-platform (linux/unix & MS Windows (not tested)) Dependencies: * Tcl 8.5 or greater. * FANN Library (http://leenissen.dk/fann/) Version 2.2.0 or greater. Platform: Linux/Unix & MS Windows Home page: http://sourceforge.net/projects/tcl-fann/ Man page: http://tcl-fann.sourceforge.net/ Author: Alexandros Stergiakis ...

tk/tcl compile errors
Latest lcc-win32 downloaded 18-Dec-04: Error in WIN.H, 'PSID' on line 9871. Changing 'SID' on line 9852 to 'PSID' seemed to fix that. But here's my real problem, and why I did a new download: Has anyone successfully compiled the TK/TCL headers? I get an error like this: Error d:\tk\test.c: tcldecls.h: 444 Syntax error; missing semicolon before `_ANSI_ARGS_' But the declaration is 130th of hundreds of similar ones. The headers were part of the binary Windows TCL download from www.activestate.com. Bart. ...

Windows deployment of Tcl and extensions
Does anyone out there support a business environment where users do not have access to installing programs ? I'm trying to figure out the best way to deploy a windows environment when the users cannot install programs, tcl, etc. Does ActiveTcl need to be installed on the desktop itself? Has anyone tried installing it into a network shared folder and seeing if users could run it from there? Just curious how others deal with such issues. -- <URL: http://wiki.tcl.tk/ > Indescribable,uncontainable,all powerful,untameable Even if explicitly stated to the contrary, nothing in this ...

Installing Tcl extension under Windows
I'm developing a Tcl extension (using TEA conventions). In order to make its usage simpler I'm going to write an installer for Windows. There are two well-known ways to have Tcl under Windows: - install Cygwin and Tcl within it - install ActiveTcl from ActiveState.com For the former case I can use standard Unix-way: configure, make, make install. OK. For the latter case I'm in trouble. How should I properly install my extension with all its DLL's, pkgIndex.tcl, documentation files etc? What is a preferred directory for this? How can I make my extension known for Tcl? May my installer manually modify TCLLIBPATH variable? Of course I asked on ActiveState community forum, but nobody answered. Hope someone here help me. Thanks. Στις 2/12/2011 22:30, ο/η andrey.nakin έγραψε: > I'm developing a Tcl extension (using TEA conventions). In order to > make its usage simpler I'm going to write an installer for Windows. > There are two well-known ways to have Tcl under Windows: > > - install Cygwin and Tcl within it > - install ActiveTcl from ActiveState.com > > For the former case I can use standard Unix-way: configure, make, make > install. OK. > > For the latter case I'm in trouble. How should I properly install my > extension with all its DLL's, pkgIndex.tcl, documentation files etc? > What is a preferred directory for this? How can I make my extension > known for Tcl? May my installer manually modify TC...

How to profile a Tcl/Tk extension?
I have used the "--enable-symbols" configure switch in the past to compile and debug Tcl/Tk extensions with "gdb". I would also like to use "gprof" at some point. I have dug around on the newsgroup and Wiki but have not found a specific example of how to get this to work with an extension (I saw an example with just the "tclsh" interpreter itself but not an extension). Just wondering if someone has done this before and can provide an example. Thanks for any help, Sean On Jan 14, 6:13=A0pm, "Sean.McKnight" <mcknigh...@gmail.com> wrote: > I have used the "--enable-symbols" configure switch in the past to > compile and debug Tcl/Tk extensions with > "gdb". > > I would also like to use "gprof" at some point. =A0I have dug around on > the newsgroup and Wiki but have > not found a specific example of how to get this to work with an > extension (I saw an example with just > the "tclsh" interpreter itself but not an extension). > > Just wondering if someone has done this before and can provide an > example. Sorry for the obvious, uninformative answer, but since nobody reacted... One easy thing is to link your ext statically and call your init func manually somewhere in the Tcl init sequence (see other Tcl_CreateObjCommand's). This way you have one single monolithic executable for gprof to chew on. -Alex On Jan 14, 6:15=A0pm, Alexandre ...

tcl/tk exec in windows
Is there any way to invoke built-in Windows NT commands from tcl/tk without having the black dos window flashing up every time. For example, I was trying: exec cmd.exe /c kill /f processname In this case, on NT the annoying dos terminal window flashes up every time I kill processes. Do I need to redirect stdout and sterr to keep the NT commands silent? Another question, is there a way to avod the tk 'Illegal command' message popping up if the command (kill) does not exist? I would assume the above command would not work on W98 or XP but only on NT and 2000. Is the way tcl handles the...

tcl-pam: PAM authentication for Tcl (Tcl package)
This is an announcement for a relatively new Tcl project: tcl-pam Tcl-pam is a Tcl interface to the PAM* service of Linux. It provides a Tcl package that allows Tcl scripts to use PAM to authenticate users and programs. It relies on linux-pam library: http://www.kernel.org/pub/linux/libs/pam/ * PAM (Pluggable Authentication Modules): A mechanism to integrate multiple low−level authentication schemes into a high−level application programming interface (API). This enables programs that rely on authentication to be written independently of the underlying authentication scheme. Platform: Linux Home page: http://sourceforge.net/projects/tcl-pam/ Man page: http://tcl-pam.sourceforge.net/ Author: Alexandros Stergiakis alsterg ...

Web resources about - Compiling TCL/TK and extensions under windows - comp.lang.tcl

Google Chrome extension - Wikipedia, the free encyclopedia
to build the extensions which requires different code and skills for each extension. Extensions can be created through use of web technologies ...

NFL: Joe Flacco signs three-year extension with Baltimore Ravens
BALTIMORE Ravens quarterback Joe Flacco signed a three-year contract extension that will reportedly help ease the team’s NFL salary cap woes ...

Ravens, Joe Flacco agree to three-year contract extension
Ravens quarterback Joe Flacco rarely admits to introspection. But as he spent the past few days pondering another giant contract offer from the ...

Humiliate Trump with brilliant ‘make Donald Drumpf again’ Chrome extension
In case you missed the spectacular Donald Trump roast during a 20-minute segment of John Oliver’s Last Week Tonight , you should watch it . Oliver ...

400 new Blue Origin jobs in Washington linked to tax credit extensions
Blue Origin could add 400 people to its Puget Sound operations this year as it moves toward initial production of its new rocket engine. But ...

Tom Brady – Patriots Contract Extension Details « CBS Boston
Tom Brady saves nearly $2 million from a potential DeflateGate suspension in his new extension with the Patriots. Here are the details.

Donald Drumpf browser extension installed more than 333K times
More than 333,800 people&amp;nbsp;have installed&amp;nbsp;the Drumpfinator extension&amp;nbsp;to change Donald Trump 's name to Donald Drumpf ...

French barn extension by GENS has cement shingles on facade
Fibre-cement shingles cover this gabled barn in northeast France, which GENS: Association Libérale d'Architecture has converted into five apartments ...

Rams Considering Jeff Fisher Extension Is A Classic Move
The LA Rams are truly back with contract talks with a coach steeped in mediocrity.

Wired Keeps Calling Trump 'Someone With Tiny Hands' Due to a Chrome Extension Error
Wired published an embarrassing correction to a story by Jason Tanz about Donald Trump today. Apparently he or his editors had a Chrome extension ...

Resources last updated: 3/13/2016 11:16:06 AM