Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Windows nmake: extensions (including Tk) do not build if Tcl is built with a non-default OUT_DIR

Closed / Fixed9594d5a0ab78acd93a850c4555a1138b85c5ec5aCreated 146 days agoUpdated 144 days ago
Descriptionmarkdown2026-07-10 03:04:57

(Only of interest to nmake users)

TIP 477 allows OUT_DIR to be specified as the output directory for Tcl builds. However, if specified, while Tcl builds fine, extensions (including Tk) still look for its libraries in the default directory and fail.

apnadkarni Ticket [9594d5a0ab]: 3 changes [History diff]2026-07-10 03:05:06
oehharwiki2026-07-10 06:54:49

I wouldn't have troubble to remove the OUT_DIR option. Nevertheless, it is handy for different builds.

But the main step forcing a distinct directory naming and layout is nmake htmlhelp, which is IMHO the main annoying point.

Thanks for all, Harald

apnadkarnimarkdown2026-07-10 09:33:49

I don't plan on removing OUT_DIR at all. Rather fix it so, Tk (and extensions) will not always use the default OUT_DIR setting for Tcl.

My main (selfish) goal is to streamline building+install+test of all the possible combinations (shared,static)x(zipfs,nozipfs) of Tcl (and Tk) by using separate directories. Currently this does not work even if OUT_DIR is set.

Proposed fix in [afc4e5d6f9] so you can now do

vctool shared shared_noembed static static_noembed compile test install
cd ..\..\tk\win
..\..\tcl\win\vctool shared shared_noembed static static_noembed compile test install

to get a full build+test+install of all the combinations without the manual tedium.

I'm not sure what the htmlhelp issue you referenced is (or I have forgotten). I'll try that.

oehharwiki2026-07-10 10:05:33

Great, thanks, all great.

The htmlhelp target requires, that the tcl and tk source folders are adjecent and best the only files in a folder. The naming must be tcl/tk + Version.

Anything else does not work.

Don't fix this. It is deeply in the tcl worker files and I hope, this will be addressed with the markdown doc.

Thanks for all, Harald

apnadkarni Closed ticket [9594d5a0ab]. [History diff]2026-07-12 10:57:18
Log in (anonymous is fine) to add a comment.