Windows nmake: extensions (including Tk) do not build if Tcl is built with a non-default OUT_DIR
(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.
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
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.
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