Mats | 2 Mar 15:26

Building tclkit 8.5.1 on Windows


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

Or how a failed to do that...

1. Used genkit to get all sources (on mac). 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. Built Release target, moved to unix (mac),
   cat kit.exe runtime85.kit > tclkit.exe

But something goes really wrong with the initializations. When I
double
(Continue reading)

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
(Continue reading)

Mats Bengtsson | 5 Mar 09:04

Re: Building tclkit 8.5.1 on Windows


Minor update:

10. Make the dde and registry package numbers match in kitInit.c
    "package ifneeded dde 1.3.2 {load {} dde}\n"
    "package ifneeded registry 1.2.1 {load {} registry}\n"

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

With my log here: http://coccinella.sourceforge.net/tclkits/msvc7-85howto.txt

/Mats

Pat Thoyts | 5 Mar 12:09

Re: Building tclkit 8.5.1 on Windows


On 05/03/2008, Mats Bengtsson <matsben <at> gmail.com> wrote:
>
>  Minor update:
>
>  10. Make the dde and registry package numbers match in kitInit.c
>     "package ifneeded dde 1.3.2 {load {} dde}\n"
>     "package ifneeded registry 1.2.1 {load {} registry}\n"

This issue has been resolved in the kitgen builds by building the
runtime.kit file as part of the build process and setting the package
index files to the correct versions of these extensions by asking them
as we create the vfs tree.

Pat


Gmane