Itk - the [incr Tk] extension

Check-in [578b11705d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Added some comments about building
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | apn-itk-vc-fixes
Files: files | file ages | folders
SHA1: 578b11705de372b19084223dad20cfb7f2e72f9f
User & Date: apnadkarni 2016-08-20 16:22:35.425
Context
2016-08-30
10:40
Removed some unnecessary quotes Closed-Leaf check-in: 12d916471c user: apnadkarni tags: apn-itk-vc-fixes
2016-08-20
16:22
Added some comments about building check-in: 578b11705d user: apnadkarni tags: apn-itk-vc-fixes
15:16
Fixes for building with Visual C++ compilers. Tested with VC++ 6 (32-bit) and 2003 SDK compiler (64-bit).

C sources changed to conform to C89 (instead of C99). makefile.vc and nmakehlp.c updated (too many changes to list) Build expects Itcl to reside in a directory called itcl that is the sibling of the itk directory. nmake install also works but nmake winhelp (docs) does not as it relies on an external program hrtf.exe which I do not have.

Only verified with the demo itkedit script after modifying the Iwidgets package to use Itk 4 instead of Itk 3. The test scripts fail with errors that I believe are not related to Windows. check-in: c8e108e7ab user: apnadkarni tags: apn-itk-vc-fixes

Changes
Unified Diff Ignore Whitespace Patch
Changes to win/makefile.vc.
1
2
3
4
5
6
7
8


9
10

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#------------------------------------------------------------------------------
# Visual C++ 5.0+ makefile for [Incr Tk]
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
# 
# Copyright (c) 1993-1998 Lucent Technologies, Inc.
#------------------------------------------------------------------------------


#  Do not modify this file!
#------------------------------------------------------------------------------


!if !exist("makefile.vc")
MSG = ^
You must run this makefile only from the directory it is in.^
Please `cd` to its location first.
!error $(MSG) 
!endif

PROJECT	= itk
PROJECT_REQUIRES_TK = 1
ITCLDIR		= ..\..\itcl
!include "$(ITCLDIR)\win\rules.vc"

!if $(TCLINSTALL)
!message *** Warning: [Incr Tk] requires the source distribution of Tcl to build from,
!message ***    at this time, sorry.  Please set the TCLDIR and TKDIR macros to point
!message ***    to the sources.
!endif

!if [echo REM = This file is generated from rules.vc > versions.vc]
!endif
!if [echo ITCL_MAJOR_VERSION = \>> versions.vc] \
   && [nmakehlp -V $(ITCLDIR)\generic\itcl.h ITCL_MAJOR_VERSION >> versions.vc]
!endif
!if [echo ITCL_MINOR_VERSION = \>> versions.vc] \
   && [nmakehlp -V $(ITCLDIR)\generic\itcl.h ITCL_MINOR_VERSION >> versions.vc]
!endif

|






>
>
|
<
>



















|







1
2
3
4
5
6
7
8
9
10
11

12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#------------------------------------------------------------------------------
# Visual C++ 6.0+ makefile for [Incr Tk]
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
# 
# Copyright (c) 1993-1998 Lucent Technologies, Inc.
#------------------------------------------------------------------------------
# To build (after setting up Visual C++ command line environment),
#   nmake -f makefile.vc TCLDIR=path_to_tcl_sources TKDIR=path_to_tk_sources
# To install

#   nmake -f makefile.vc TCLDIR=path_to_tcl_sources TKDIR=path_to_tk_sources INSTALLDIR=path_to_install_dir install

!if !exist("makefile.vc")
MSG = ^
You must run this makefile only from the directory it is in.^
Please `cd` to its location first.
!error $(MSG) 
!endif

PROJECT	= itk
PROJECT_REQUIRES_TK = 1
ITCLDIR		= ..\..\itcl
!include "$(ITCLDIR)\win\rules.vc"

!if $(TCLINSTALL)
!message *** Warning: [Incr Tk] requires the source distribution of Tcl to build from,
!message ***    at this time, sorry.  Please set the TCLDIR and TKDIR macros to point
!message ***    to the sources.
!endif

!if [echo REM = This file is generated from makefile.vc > versions.vc]
!endif
!if [echo ITCL_MAJOR_VERSION = \>> versions.vc] \
   && [nmakehlp -V $(ITCLDIR)\generic\itcl.h ITCL_MAJOR_VERSION >> versions.vc]
!endif
!if [echo ITCL_MINOR_VERSION = \>> versions.vc] \
   && [nmakehlp -V $(ITCLDIR)\generic\itcl.h ITCL_MINOR_VERSION >> versions.vc]
!endif