[Insight-developers] [Fwd: [Fwd: SGI compilation from Sintef
Luis Ibanez
luis.ibanez@kitware.com
Wed, 04 Dec 2002 09:39:07 -0500
This is a multi-part message in MIME format.
--------------080302090405000202040104
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
John Kaspersen from Sintef has found a number
of difficulties to build ITK on a SGI system.
Most of them related with vnl.
He found necessary to make the attached changed
in vnl files. There seems to be a compiler version
issue involved....
Should be incorporate these changes in ITK ?
Is there any better alternative ?
Thanks
Luis
--------------080302090405000202040104
Content-Type: message/rfc822;
name="[Fwd: SGI compiling again !].eml"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="[Fwd: SGI compiling again !].eml"
>From - Wed Dec 04 09:29:59 2002
X-Mozilla-Status2: 10000000
Return-Path: <luis.ibanez@kitware.com>
Received: from mx1.biz.rr.com ([192.168.200.23]) by fep06.biz.rr.com
(InterMail vM.5.01.03.06 201-253-122-118-106-20010523) with ESMTP
id <20021204125203.HOWD3911.fep06.biz.rr.com@mx1.biz.rr.com>
for <luis.ibanez@kitware.com>; Wed, 4 Dec 2002 07:52:03 -0500
Received: from fep03.biz.rr.com (fep03.biz.rr.com [24.30.201.200])
by mx1.biz.rr.com (8.12.6/8.12.6) with ESMTP id gB4Cq3jT017125
for <luis.ibanez@kitware.com>; Wed, 4 Dec 2002 07:52:03 -0500 (EST)
Received: from kitware.com ([24.29.66.132]) by fep03.biz.rr.com with ESMTP
id <20021204125203.UBPB1580.fep03.biz.rr.com@kitware.com>
for <luis.ibanez@kitware.com>; Wed, 4 Dec 2002 07:52:03 -0500
Message-ID: <3DEDFA0C.4040708@kitware.com>
Date: Wed, 04 Dec 2002 07:50:20 -0500
From: Luis Ibanez <luis.ibanez@kitware.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2.1) Gecko/20010901
X-Accept-Language: en-us
MIME-Version: 1.0
To: luis.ibanez@kitware.com
Subject: [Fwd: SGI compiling again !]
Content-Type: multipart/mixed;
boundary="------------030203090800080407000605"
This is a multi-part message in MIME format.
--------------030203090800080407000605
Content-Type: text/plain;
name="ITK_SGI_diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="ITK_SGI_diff"
Index: Insight/Code/Numerics/vxl/vcl/vcl_compiler.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/vcl_compiler.h,v
retrieving revision 1.5
diff -r1.5 vcl_compiler.h
8a9
>
18a20,21
>
> #error "compiler ver 730"
20a24
> #error "compiler ver 720"
22a27
>
38a44
>
Index: Insight/Code/Numerics/vxl/vcl/vcl_complex.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/vcl_complex.h,v
retrieving revision 1.5
diff -r1.5 vcl_complex.h
5a6,8
>
> #define VCL_SGI_CC_730
>
41a45
> #error "VCL_SGI_CC_730"
Index: Insight/Code/Numerics/vxl/vcl/vcl_cstddef.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/vcl_cstddef.h,v
retrieving revision 1.3
diff -r1.3 vcl_cstddef.h
15a16,17
> #elif defined(VCL_SGI_CC_730)
> # include <stddef.h>
Index: Insight/Code/Numerics/vxl/vcl/vcl_cstdio.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/vcl_cstdio.h,v
retrieving revision 1.4
diff -r1.4 vcl_cstdio.h
25a26,36
> # elif defined(VCL_SGI_CC_730)
> #error "FPRINT"
>
>
> #include "iso/vcl_cstdio.h"
> # undef vcl_printf
> # define vcl_printf ::printf
> # undef vcl_sprintf
> # define vcl_sprintf ::sprintf
>
>
Index: Insight/Code/Numerics/vxl/vcl/vcl_cstring.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/vcl_cstring.h,v
retrieving revision 1.3
diff -r1.3 vcl_cstring.h
15a16,23
> #elif defined(VCL_SGI_CC_730)
> # include<string.h>
> # define vcl_generic_cstring_STD /* */
>
> # include "generic/vcl_cstring.h"
>
> #error "MEMCPY"
>
Index: Insight/Code/Numerics/vxl/vcl/vcl_ctime.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/vcl_ctime.h,v
retrieving revision 1.2
diff -r1.2 vcl_ctime.h
11c11
< #if !VCL_CXX_HAS_HEADER_CTIME || defined(VCL_METRO_WERKS)
---
> #if !VCL_CXX_HAS_HEADER_CTIME || defined(VCL_METRO_WERKS) || defined(VCL_SGI_CC_730)
Index: Insight/Code/Numerics/vxl/vcl/sgi/vcl_cmath.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/sgi/vcl_cmath.h,v
retrieving revision 1.3
diff -r1.3 vcl_cmath.h
4c4
< #if defined(VCL_SGI_CC_720) || (defined(VCL_CXX_HAS_HEADER_CMATH) && !VCL_CXX_HAS_HEADER_CMATH)
---
> //#if defined(VCL_SGI_CC_720) || (defined(VCL_CXX_HAS_HEADER_CMATH) && !VCL_CXX_HAS_HEADER_CMATH)
6c6
<
---
> #error "inside sgi/vcl_cmath.h"
104,106c104,106
< #else // iso
< # include "../iso/vcl_cmath.h"
< #endif
---
> //#else // iso
> //# include "../iso/vcl_cmath.h"
> //#endif
Index: Insight/Code/Numerics/vxl/vcl/sgi/vcl_complex.txx
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/sgi/vcl_complex.txx,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 vcl_complex.txx
0a1,2
> #error "In vcl_complex.txx"
>
Index: Insight/Code/Numerics/vxl/vcl/sgi/vcl_cstdlib.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/sgi/vcl_cstdlib.h,v
retrieving revision 1.1.1.2
diff -r1.1.1.2 vcl_cstdlib.h
5c5,7
< #if defined(VCL_SGI_CC_720) || (defined(VCL_CXX_HAS_HEADER_CSTDLIB) && !VCL_CXX_HAS_HEADER_CSTDLIB)
---
> #if defined(VCL_SGI_CC_730) || (defined(VCL_CXX_HAS_HEADER_CSTDLIB) && !VCL_CXX_HAS_HEADER_CSTDLIB)
>
> //#if defined(VCL_SGI_CC_720) || (defined(VCL_CXX_HAS_HEADER_CSTDLIB) && !VCL_CXX_HAS_HEADER_CSTDLIB)
--------------030203090800080407000605
Content-Type: message/rfc822;
name="SGI compiling again !"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="SGI compiling again !"
>From - Sat Nov 30 08:31:08 2002
X-Mozilla-Status2: 00000000
Return-Path: <kaspersen@mac.com>
Received: from mx4.biz.rr.com ([192.168.200.29]) by fep06.biz.rr.com
(InterMail vM.5.01.03.06 201-253-122-118-106-20010523) with ESMTP
id <20021130103516.EBCE24403.fep06.biz.rr.com@mx4.biz.rr.com>
for <luis.ibanez@kitware.com>; Sat, 30 Nov 2002 05:35:16 -0500
Received: from smtpout.mac.com (A17-250-248-88.apple.com [17.250.248.88])
by mx4.biz.rr.com (8.12.6/8.12.6) with ESMTP id gAUAZFQm002325
for <luis.ibanez@kitware.com>; Sat, 30 Nov 2002 05:35:16 -0500 (EST)
Received: from asmtp02.mac.com (asmtp02-qfe3 [10.13.10.66])
by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id gAUAZEiU016663
for <luis.ibanez@kitware.com>; Sat, 30 Nov 2002 02:35:15 -0800 (PST)
Received: from mac.com ([129.241.242.50]) by asmtp02.mac.com
(Netscape Messaging Server 4.15) with ESMTP id H6DXEP00.45O for
<luis.ibanez@kitware.com>; Sat, 30 Nov 2002 02:35:13 -0800
Date: Sat, 30 Nov 2002 11:35:14 +0100
Mime-Version: 1.0 (Apple Message framework v548)
Content-Type: multipart/mixed; boundary=Apple-Mail-28-215771916
Subject: SGI compiling again !
From: Jon Harald Kaspersen <kaspersen@mac.com>
To: Luis Ibanez <luis.ibanez@kitware.com>
Message-Id: <68F1C184-044F-11D7-A7AF-00039364CC7A@mac.com>
X-Mailer: Apple Mail (2.548)
--Apple-Mail-28-215771916
Content-Type: multipart/alternative;
boundary=Apple-Mail-29-215771916
--Apple-Mail-29-215771916
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Hi Luis,
I got ITK to compile on my SGI system, with some hacks. I followed the
line I explained in my last mail. I had to redefine some of the vcl
functions. The procedure I followed does very much like the one I
followed when I was working with the CodeWarrior port. Anyway, if you
are interested, I have attached the result of a cvs diff betweeen the
cvs ITK version and the "hacked" sgi version.
Have a nice weekend.
Regards
Jon
--Apple-Mail-29-215771916
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
charset=US-ASCII
Hi Luis,
I got ITK to compile on my SGI system, with some hacks. I followed
the line I explained in my last mail. I had to redefine some of the
vcl functions. The procedure I followed does very much like the one I
followed when I was working with the CodeWarrior port. Anyway, if you
are interested, I have attached the result of a cvs diff betweeen the
cvs ITK version and the "hacked" sgi version.
Have a nice weekend.
Regards
Jon
--Apple-Mail-29-215771916--
--Apple-Mail-28-215771916
Content-Disposition: attachment;
filename=ITK_SGI_diff
Content-Transfer-Encoding: 7bit
Content-Type: application/octet-stream;
x-unix-mode=0644;
name="ITK_SGI_diff"
Index: Insight/Code/Numerics/vxl/vcl/vcl_compiler.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/vcl_compiler.h,v
retrieving revision 1.5
diff -r1.5 vcl_compiler.h
8a9
>
18a20,21
>
> #error "compiler ver 730"
20a24
> #error "compiler ver 720"
22a27
>
38a44
>
Index: Insight/Code/Numerics/vxl/vcl/vcl_complex.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/vcl_complex.h,v
retrieving revision 1.5
diff -r1.5 vcl_complex.h
5a6,8
>
> #define VCL_SGI_CC_730
>
41a45
> #error "VCL_SGI_CC_730"
Index: Insight/Code/Numerics/vxl/vcl/vcl_cstddef.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/vcl_cstddef.h,v
retrieving revision 1.3
diff -r1.3 vcl_cstddef.h
15a16,17
> #elif defined(VCL_SGI_CC_730)
> # include <stddef.h>
Index: Insight/Code/Numerics/vxl/vcl/vcl_cstdio.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/vcl_cstdio.h,v
retrieving revision 1.4
diff -r1.4 vcl_cstdio.h
25a26,36
> # elif defined(VCL_SGI_CC_730)
> #error "FPRINT"
>
>
> #include "iso/vcl_cstdio.h"
> # undef vcl_printf
> # define vcl_printf ::printf
> # undef vcl_sprintf
> # define vcl_sprintf ::sprintf
>
>
Index: Insight/Code/Numerics/vxl/vcl/vcl_cstring.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/vcl_cstring.h,v
retrieving revision 1.3
diff -r1.3 vcl_cstring.h
15a16,23
> #elif defined(VCL_SGI_CC_730)
> # include<string.h>
> # define vcl_generic_cstring_STD /* */
>
> # include "generic/vcl_cstring.h"
>
> #error "MEMCPY"
>
Index: Insight/Code/Numerics/vxl/vcl/vcl_ctime.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/vcl_ctime.h,v
retrieving revision 1.2
diff -r1.2 vcl_ctime.h
11c11
< #if !VCL_CXX_HAS_HEADER_CTIME || defined(VCL_METRO_WERKS)
---
> #if !VCL_CXX_HAS_HEADER_CTIME || defined(VCL_METRO_WERKS) || defined(VCL_SGI_CC_730)
Index: Insight/Code/Numerics/vxl/vcl/sgi/vcl_cmath.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/sgi/vcl_cmath.h,v
retrieving revision 1.3
diff -r1.3 vcl_cmath.h
4c4
< #if defined(VCL_SGI_CC_720) || (defined(VCL_CXX_HAS_HEADER_CMATH) && !VCL_CXX_HAS_HEADER_CMATH)
---
> //#if defined(VCL_SGI_CC_720) || (defined(VCL_CXX_HAS_HEADER_CMATH) && !VCL_CXX_HAS_HEADER_CMATH)
6c6
<
---
> #error "inside sgi/vcl_cmath.h"
104,106c104,106
< #else // iso
< # include "../iso/vcl_cmath.h"
< #endif
---
> //#else // iso
> //# include "../iso/vcl_cmath.h"
> //#endif
Index: Insight/Code/Numerics/vxl/vcl/sgi/vcl_complex.txx
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/sgi/vcl_complex.txx,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 vcl_complex.txx
0a1,2
> #error "In vcl_complex.txx"
>
Index: Insight/Code/Numerics/vxl/vcl/sgi/vcl_cstdlib.h
===================================================================
RCS file: /insight/cvsroot/Insight/Code/Numerics/vxl/vcl/sgi/vcl_cstdlib.h,v
retrieving revision 1.1.1.2
diff -r1.1.1.2 vcl_cstdlib.h
5c5,7
< #if defined(VCL_SGI_CC_720) || (defined(VCL_CXX_HAS_HEADER_CSTDLIB) && !VCL_CXX_HAS_HEADER_CSTDLIB)
---
> #if defined(VCL_SGI_CC_730) || (defined(VCL_CXX_HAS_HEADER_CSTDLIB) && !VCL_CXX_HAS_HEADER_CSTDLIB)
>
> //#if defined(VCL_SGI_CC_720) || (defined(VCL_CXX_HAS_HEADER_CSTDLIB) && !VCL_CXX_HAS_HEADER_CSTDLIB)
--Apple-Mail-28-215771916
Content-Type: multipart/alternative;
boundary=Apple-Mail-30-215771917
--Apple-Mail-30-215771917
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
========================================================
Jon Harald Kaspersen Tel: +47 73 59 75 89
Ph.D. Mechanical Engineering Mob: +47 93 03 65 90
Senior Scientist Pager +47 96 84 29 94
SINTEF Unimed - Ultralyd Fax: +47 73 59 78 73
N-7465 Trondheim
NORWAY e-mail: Jon.H.Kaspersen@unimed.sintef.no
WEB: http://www.us.unimed.sintef.no/
========================================================
--Apple-Mail-30-215771917
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
charset=US-ASCII
<fontfamily><param>Helvetica</param>========================================================
Jon Harald Kaspersen Tel: +47 73 59 75 89
Ph.D. Mechanical Engineering Mob: +47 93 03 65 90
Senior Scientist Pager +47 96 84 29 94
SINTEF Unimed - Ultralyd Fax: +47 73 59 78 73
N-7465 Trondheim
NORWAY e-mail: Jon.H.Kaspersen@unimed.sintef.no
WEB: <underline><color><param>1A1A,1A1A,FFFF</param>http://www.us.unimed.sintef.no/</color></underline>
========================================================</fontfamily>
--Apple-Mail-30-215771917--
--Apple-Mail-28-215771916--
--------------030203090800080407000605--
--------------080302090405000202040104--