Re: Compile TCL8.4.13 using VS2005?



xman_11214@xxxxxxxxx schrieb:
Dave,
Here is what I see from VS2005. I did use VS2003 & VC++6 before and
it compiled fine.
We just upgraded to use VS2005, then the compilation fails.

Lots of error messages skipped

The following hacks allowed me to compile Tcl/Tk 8.4.12 with
Visual Studio 2005.
Note, that only the static version works, the dynamic version
brings up the following runtime error:
R6034 An application has made an attempt to load the C runtime
library incorrectly.

generic/tcl.h (line 387):

Add line for definition of _stati64:
#include <sys/stat.h>


generic/regerror.c (line 53):

Change:
regerror(errcode, preg, errbuf, errbuf_size)
int errcode; /* error code, or REG_ATOI or REG_ITOA */
CONST regex_t *preg; /* associated regex_t (unused at present) */
char *errbuf; /* result buffer (unless errbuf_size==0) */
size_t errbuf_size; /* available space in errbuf, can be 0 */

to:
regerror(int errcode, CONST regex_t *preg, char *errbuf, size_t errbuf_size)

(Don't ask why)


generic/tclExecute.c (line 398):

Remove line in definition of BuiltinFunc tclBuiltinFuncTable[] = {

{"floor", 1, {TCL_DOUBLE}, ExprUnaryFunc, (ClientData) floor},

(Don't ask why)


I've compiled with the following batch scripts:

tcl84.bat:

cd tcl8.4.12\win
set INSTALLDIR=C:\Programme\Tcl
nmake -f makefile.vc clean OPTS=static
nmake -nologo -f makefile.vc release OPTS=static
nmake -f makefile.vc install OPTS=static
cd ..\..


tk84.bat:

cd tk8.4.12\win
set INSTALLDIR=C:\Programme\Tcl
set TCLDIR=..\..\tcl8.4.12
nmake -f makefile.vc clean OPTS=static
nmake -nologo -f makefile.vc release OPTS=static
nmake -f makefile.vc install OPTS=static
cd ..\..



Greetings,

Paul
.



Relevant Pages

  • Re: Common settings for multiple configurations of projects in VC++ 6.0
    ... > That Option is available with cl.exe, but I want to use nmake to ... > By passing these options I want to do the conditional compilation. ... I'm using nmake for my projects, and I translate the debug version and ... I may be missing some funcy things about compiling two versions, ...
    (microsoft.public.vc.ide_general)
  • fault installing DBD::mysql in solaris 9
    ... people said that a new mysql server compiled by them solved the problem ... I configure the make as it was recommended by the install document ... detection includes or libraries problems. ... The GD module I compiled again, with the fixed compilation ...
    (comp.lang.perl.modules)
  • Installing DjVu plug-in
    ... I had an unsuccessful attempt to install DjVuLibre -3.5.17 plug-in on ... bash: Gyurka@bakacs: command not found ... You can then perform the compilation by typing ...
    (Fedora)
  • Re: Linux Vs. FreeBSD
    ... >>> required to install a binary under ideal conditions. ... an automated compilation system is an ... > good way to handle very small packages where the amount of time needed ... daily updates typically take about 1.5 ...
    (comp.os.linux.misc)
  • RE: Unable to install DBD:Sybase-1.08 on my AIX 5.2 server with Perl 5.8.0 DBI-1.43
    ... Contact your program supplier to add ... Compilation will proceed shortly. ... Subject: Unable to install DBD:Sybase-1.08 on my AIX 5.2 server with ... any attachments. ...
    (perl.dbi.users)