Skip to content
Tcl Source Code View Ticket
Login

View Ticket

makefile.vc: package with include folder requires this folder to exist

Closed / Fixed3335120320518c9535503985c5278f328a833880Created 2 years agoUpdated 2 years ago
Descriptionwiki2025-05-09 15:35:13
VS2022 64 bit prompt on Win11 x64 OS:

A compiled and installed TCL 9.0.1 is in c:\myprograms\tcl9.0_x64. A checkout of tdbc-main is in C:\test\fossil\tdbc\tdbc-main.

An VS2022 64 bit native prompt gets the following commands:

% nmake -f makefile.vc TCLDIR=c:\myprograms\tcl9.0_x64
% nmake -f makefile.vc install TCLDIR=c:\myprograms\tcl9.0_x64 INSTALLDIR=..\..\install_x64
...
Installing headers to '..\..\install_x64\..\include'

When looking in the install folder (e.g. "..\.."), there is:

  • if folder "include" did not exist in advance: a file named "include" with the contents of "tdbcDecls.h" in the build directory (wrong behaviour)
  • if folder "include" existed in advance: two files "tdbc.h" and "tdbcDecls.h" are written to the folder (correct behaviour)

It might be helpful, to create the folder '..\..\install_x64\..\include', if it does not exist.

The relevant entries in makefile.vc are:

PRJ_HEADERS_PUBLIC = \
	$(GENERICDIR)\tdbc.h \
	$(GENERICDIR)\tdbcDecls.h

I am reporting this here, as IMHO, the machinery for this is here and not in tdbc-main.

Thanks for all, Harald

Referenced by3
  • a5086d777bFix [3335120320]. Create include dir for installing extensions in non-default locations check-in2025-05-20 05:30:15
  • 761808a5e8Fix [3335120320]. Create include dir for installing extensions in non-default locations check-in2025-05-20 05:26:02
  • ee68735740Bug [3335120320]. Fix for case where extension is installed into a directory other than where Tcl is installed check-in2025-05-18 15:53:31
oehhar Ticket [3335120320]: 3 changes [History diff]2025-05-09 15:36:47
apnadkarniplain2025-05-18 15:53:58
Proposed fix in branch apn-bug-3335120320.
apnadkarniplain2025-05-20 05:28:00
Fixed in [761808a5e8].

Harald, please verify for your case.
oehharwiki2025-05-20 15:54:22

Thanks for the fix, it works.

What I still find interesting is, that the folder "include" is created beside the given INSTALLDIR, not in the installdir.

It is also interesting, that the mostly useless documentation files (*.n) are written into the installation folder.

Also, tdbcstub.lib and tdbcConfig.sh are written into the installation folder, which are IMHO expected in lib.

So, anything what is normally in doc/lib goes into the installation folder, with the exception of the include folder.

I suppose, this is done to work as bundled package.

Anyway, great fix.

Thanks for all, Harald

Log in (anonymous is fine) to add a comment.