Mats Bengtsson | 4 Mar 15:14

Re: Building tclkit 8.5.1 on Windows


Dear list,

I was finally able to figure out what went wrong. It was a missing
-DTK_LOCAL_APPINIT=TclKit_AppInit
for ..\src\tk\win\winMain.c in the kit project. Similar for the kitsh project.
Perhaps Pat's build system is more robust than this one. Will try it...

To conclude:

How to build tclkit on Windows XP using Tcl/Tk 8.5.1
----------------------------------------------------

1. Used genkit to get all sources (on unix). Replaced tcl85 and tk85 with
   released 8.5.1 sources.

2. Got http://www.equi4.com/pub/tk/tars/msvc6-85.tar.gz and imported it
   into VC++7.

3. Changed path to src/tcl/win/tclAppInit.c to src/tcl85/win/tclAppInit.c

4. Changed path to src/tk/win/winMain.c to src/tk85/win/winMain.c

5. Removed src/tcl85/compat/strtoll.c and strtoull.c from project.

6. Added inline=__inline to the defines, both Debug & Release

7. Added ws2_32.lib to Additional Dependencies, both Debug & Release

8. kitsh: set properties of this file in kitsh project
   SOURCE="..\src\tcl\win\tclAppInit.c"
   C/C++ Preprocessor: TCL_LOCAL_APPINIT=TclKit_AppInit

9. kit: set properties of this file in kit project
   SOURCE="..\src\tk\win\winMain.c"
   C/C++ Preprocessor: TK_LOCAL_APPINIT=TclKit_AppInit

10. Built Release target, moved to unix (mac),
   cat kit.exe runtime85.kit > tclkit.exe

I have put the complete VC++7 projects here:
http://coccinella.sourceforge.net/tclkits/msvc7-85.zip
with tclkit.exe included.

Similar changes were also needed with the VC++6 project.
Find it all here:
http://coccinella.sourceforge.net/tclkits/msvc6-85.zip

Mats


Gmane