[Insight-users] Problems building ITK with wrapping on XP/OS X

Frank Lindseth Frank . Lindseth at sintef . no
Wed, 10 Dec 2003 21:29:32 +0100


--Apple-Mail-2-439175398
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	delsp=yes;
	charset=ISO-8859-1;
	format=flowed

Dear Brad and Luis,

I really don't know what I'm doing wrong trying to compile ITK with =20
python/tcl wrapping on a Win-XP box using
VC.Net 2003 (or VC6.0 SP5) and cmake 1.8.2 (se below). The c++ build is =20=

fine.
Brad, I have tried to build CableSwig as well as ITK in both debug and =20=

release mode (i.e. debug/debug and relese/releae),
and the source/build is moved, so that long file names shouldn't be a =20=

problem. Any suggestions?

A binary install of Python do not provide any debug libraries, the =20
default build mode of CableSwing/ITK is debug.
In my (Windows)-ignorance  I went for a binary python install and =20
CableSwig/ITK release mode. If debug mode was desirable
I would have to build python from source and generate the python debug =20=

libraries. Right??? Please enlighten me...

As for the G5/Panther/gcc3.3 build:
I took your golden source from your G5 home account Brad. The source =20
was build and imported into python without any problems.
I have started a fresh  build of the current cvs. If I can buiild and =20=

import InsightToolkit the problem has mysteriously disappeared by =20
itself...

Thanks

Frank



=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dre=
lease
=3D=3D=3D=3D=3D problem example

------ Build started: Project: VXLNumericsTcl, Configuration: Release =20=

Win32 ------

Building wrap_VXLNumericsTcl.xml from =20
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
VXLNumerics/wrap_VXLNumericsTcl.xml

Systemet finner ikke angitt bane.

Project : error PRJ0019: A tool returned an error code from "Building =20=

wrap_VXLNumericsTcl.xml from =20
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
VXLNumerics/wrap_VXLNumericsTcl.xml"

Build log was saved at =20
"file://c:\users\fl\sdk-cvs\Insight-cmake182-=20
vcnet2003\Wrapping\CSwig\VXLNumerics\Release\BuildLog.htm"

VXLNumericsTcl - 1 error(s), 0 warning(s)

=A0
=3D=3D=3D=3D=3D=3D problem summary
_ITKAlgorithmsPython error PRJ0019: A tool returned an error code from =20=

"Building wrap_ITKAlgorithmsPython.xml from=A0 =20
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
Algorithms/wrap_ITKAlgorithmsPython.xml"
ITKAlgorithmsTcl error PRJ0019: A tool returned an error code from =20
"Building wrap_ITKAlgorithmsTcl.xml from=A0 =20
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
Algorithms/wrap_ITKAlgorithmsTcl.xml"
_ITKBasicFiltersPython error PRJ0019: A tool returned an error code =20
from "Building wrap_ITKBasicFiltersPython.xml from=A0 =20
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
BasicFilters/wrap_ITKBasicFiltersPython.xml"
ITKBasicFiltersTcl error PRJ0019: A tool returned an error code from =20
"Building wrap_ITKBasicFiltersTcl.xml from=A0 =20
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
BasicFilters/wrap_ITKBasicFiltersTcl.xml"
_ITKIOPython error PRJ0019: A tool returned an error code from =20
"Building wrap_ITKIOPython.xml from=A0 =20
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/IO/=20
wrap_ITKIOPython.xml"
_ITKNumericsPython error PRJ0019: A tool returned an error code from =20
"Building wrap_ITKNumericsPython.xml from=A0 =20
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/Numerics/=20=

wrap_ITKNumericsPython.xml"
ITKNumericsTcl error PRJ0019: A tool returned an error code from =20
"Building wrap_ITKNumericsTcl.xml from=A0 =20
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/Numerics/=20=

wrap_ITKNumericsTcl.xml"
_ITKCommonPython error PRJ0019: A tool returned an error code from =20
"Building wrap_ITKPyUtils.xml from=A0 =20
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/Common/=20
wrap_ITKPyUtils.xml"
ITKIOTcl error PRJ0019: A tool returned an error code from "Building =20
wrap_itkTkImageViewer2D.xml from=A0 =20
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/IO/=20
wrap_itkTkImageViewer2D.xml"
ITKCommonTcl error PRJ0019: A tool returned an error code from =20
"Building wrap_ITKUtils.xml from=A0 =20
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/Common/=20
wrap_ITKUtils.xml"
_VXLNumericsPython error PRJ0019: A tool returned an error code from =20
"Building wrap_VXLNumericsPython.xml from=A0 =20
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
VXLNumerics/wrap_VXLNumericsPython.xml"
VXLNumericsTcl error PRJ0019: A tool returned an error code from =20
"Building wrap_VXLNumericsTcl.xml from=A0 =20
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
VXLNumerics/wrap_VXLNumericsTcl.xml"
itkwish fatal error LNK1104: cannot open file 'ITKAlgorithmsTcl.lib'
=A0
=A0
=A0
=A0
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3Ddebug
------ Build started: Project: VXLNumericsTcl, Configuration: Debug =20
Win32 ------

Building wrap_VXLNumericsTcl.xml from =20
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
VXLNumerics/wrap_VXLNumericsTcl.xml

Systemet finner ikke angitt bane.

Project : error PRJ0019: A tool returned an error code from "Building =20=

wrap_VXLNumericsTcl.xml from =20
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
VXLNumerics/wrap_VXLNumericsTcl.xml"

Build log was saved at =20
"file://c:\users\fl\sdk\debug-Insight-cmake182-=20
vcnet2003\Wrapping\CSwig\VXLNumerics\Debug\BuildLog.htm"

VXLNumericsTcl - 1 error(s), 0 warning(s)

--------

_ITKAlgorithmsPython error PRJ0019: A tool returned an error code from =20=

"Building wrap_ITKAlgorithmsPython.xml from=A0 =20
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
Algorithms/wrap_ITKAlgorithmsPython.xml"
ITKAlgorithmsTcl error PRJ0019: A tool returned an error code from =20
"Building wrap_ITKAlgorithmsTcl.xml from=A0 =20
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
Algorithms/wrap_ITKAlgorithmsTcl.xml"
_ITKBasicFiltersPython error PRJ0019: A tool returned an error code =20
from "Building wrap_ITKBasicFiltersPython.xml from=A0 =20
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
BasicFilters/wrap_ITKBasicFiltersPython.xml"
ITKBasicFiltersTcl error PRJ0019: A tool returned an error code from =20
"Building wrap_ITKBasicFiltersTcl.xml from=A0 =20
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
BasicFilters/wrap_ITKBasicFiltersTcl.xml"
_ITKIOPython error PRJ0019: A tool returned an error code from =20
"Building wrap_ITKIOPython.xml from=A0 =20
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/IO/=20
wrap_ITKIOPython.xml"
_ITKNumericsPython error PRJ0019: A tool returned an error code from =20
"Building wrap_ITKNumericsPython.xml from=A0 =20
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
Numerics/wrap_ITKNumericsPython.xml"
ITKNumericsTcl error PRJ0019: A tool returned an error code from =20
"Building wrap_ITKNumericsTcl.xml from=A0 =20
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
Numerics/wrap_ITKNumericsTcl.xml"
_ITKCommonPython error PRJ0019: A tool returned an error code from =20
"Building wrap_ITKPyUtils.xml from=A0 =20
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/Common/=20=

wrap_ITKPyUtils.xml"
ITKIOTcl error PRJ0019: A tool returned an error code from "Building =20
wrap_itkTkImageViewer2D.xml from=A0 =20
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/IO/=20
wrap_itkTkImageViewer2D.xml"
ITKCommonTcl error PRJ0019: A tool returned an error code from =20
"Building wrap_ITKUtils.xml from=A0 =20
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/Common/=20=

wrap_ITKUtils.xml"
_VXLNumericsPython error PRJ0019: A tool returned an error code from =20
"Building wrap_VXLNumericsPython.xml from=A0 =20
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
VXLNumerics/wrap_VXLNumericsPython.xml"
VXLNumericsTcl error PRJ0019: A tool returned an error code from =20
"Building wrap_VXLNumericsTcl.xml from=A0 =20
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/=20
VXLNumerics/wrap_VXLNumericsTcl.xml"
itkwish fatal error LNK1104: cannot open file 'ITKAlgorithmsTcl.lib'
SwigRuntimePython fatal error LNK1104: cannot open file 'python23_d.lib'
=A0

--Apple-Mail-2-439175398
Content-Transfer-Encoding: quoted-printable
Content-Type: text/enriched;
	charset=ISO-8859-1

Dear Brad and Luis,


I really don't know what I'm doing wrong trying to compile ITK with
python/tcl wrapping on a Win-XP box using

VC.Net 2003 (or VC6.0 SP5) and cmake 1.8.2 (se below). The c++ build
is fine.

Brad, I have tried to build CableSwig as well as ITK in both debug and
release mode (i.e. debug/debug and relese/releae),

and the source/build is moved, so that long file names shouldn't be a
problem. Any suggestions?


A binary install of Python do not provide any debug libraries, the
default build mode of CableSwing/ITK is debug.=20

In my (Windows)-ignorance  I went for a binary python install and
CableSwig/ITK release mode. If debug mode was desirable

I would have to build python from source and generate the python debug
libraries. Right??? Please enlighten me...


As for the G5/Panther/gcc3.3 build:

I took your golden source from your G5 home account Brad. The source
was build and imported into python without any problems.

I have started a fresh  build of the current cvs. If I can buiild and
import InsightToolkit the problem has mysteriously disappeared by
itself...


Thanks


Frank

<fontfamily><param>Arial</param><smaller>



=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Dre=
lease

=3D=3D=3D=3D=3D problem example


------ Build started: Project: VXLNumericsTcl, Configuration: Release
Win32 ------


Building wrap_VXLNumericsTcl.xml from
=
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/VXLNumerics/=
wrap_VXLNumericsTcl.xml


Systemet finner ikke angitt bane.


Project : error PRJ0019: A tool returned an error code from "Building
wrap_VXLNumericsTcl.xml from
=
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/VXLNumerics/=
wrap_VXLNumericsTcl.xml"


Build log was saved at
=
"file://c:\users\fl\sdk-cvs\Insight-cmake182-vcnet2003\Wrapping\CSwig\VXLN=
umerics\Release\BuildLog.htm"


VXLNumericsTcl - 1 error(s), 0 warning(s)


=A0

=3D=3D=3D=3D=3D=3D problem summary

_ITKAlgorithmsPython error PRJ0019: A tool returned an error code from
"Building wrap_ITKAlgorithmsPython.xml from=A0
=
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/Algorithms/w=
rap_ITKAlgorithmsPython.xml"

ITKAlgorithmsTcl error PRJ0019: A tool returned an error code from
"Building wrap_ITKAlgorithmsTcl.xml from=A0
=
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/Algorithms/w=
rap_ITKAlgorithmsTcl.xml"

_ITKBasicFiltersPython error PRJ0019: A tool returned an error code
from "Building wrap_ITKBasicFiltersPython.xml from=A0
=
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/BasicFilters=
/wrap_ITKBasicFiltersPython.xml"

ITKBasicFiltersTcl error PRJ0019: A tool returned an error code from
"Building wrap_ITKBasicFiltersTcl.xml from=A0
=
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/BasicFilters=
/wrap_ITKBasicFiltersTcl.xml"

_ITKIOPython error PRJ0019: A tool returned an error code from
"Building wrap_ITKIOPython.xml from=A0
=
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/IO/wrap_ITKI=
OPython.xml"

_ITKNumericsPython error PRJ0019: A tool returned an error code from
"Building wrap_ITKNumericsPython.xml from=A0
=
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/Numerics/wra=
p_ITKNumericsPython.xml"

ITKNumericsTcl error PRJ0019: A tool returned an error code from
"Building wrap_ITKNumericsTcl.xml from=A0
=
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/Numerics/wra=
p_ITKNumericsTcl.xml"

_ITKCommonPython error PRJ0019: A tool returned an error code from
"Building wrap_ITKPyUtils.xml from=A0
=
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/Common/wrap_=
ITKPyUtils.xml"

ITKIOTcl error PRJ0019: A tool returned an error code from "Building
wrap_itkTkImageViewer2D.xml from=A0
=
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/IO/wrap_itkT=
kImageViewer2D.xml"

ITKCommonTcl error PRJ0019: A tool returned an error code from
"Building wrap_ITKUtils.xml from=A0
=
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/Common/wrap_=
ITKUtils.xml"

_VXLNumericsPython error PRJ0019: A tool returned an error code from
"Building wrap_VXLNumericsPython.xml from=A0
=
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/VXLNumerics/=
wrap_VXLNumericsPython.xml"

VXLNumericsTcl error PRJ0019: A tool returned an error code from
"Building wrap_VXLNumericsTcl.xml from=A0
=
C:/users/fl/sdk-cvs/Insight-cmake182-vcnet2003/Wrapping/CSwig/VXLNumerics/=
wrap_VXLNumericsTcl.xml"

itkwish fatal error LNK1104: cannot open file 'ITKAlgorithmsTcl.lib'

=A0

</smaller></fontfamily>=A0

=A0

=A0

=
<fontfamily><param>Arial</param><smaller>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3Ddebug</smaller></fontfa=
mily>

<fontfamily><param>Arial</param><smaller>------ Build started:
Project: VXLNumericsTcl, Configuration: Debug Win32 ------


Building wrap_VXLNumericsTcl.xml from
=
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/VXLNumeric=
s/wrap_VXLNumericsTcl.xml


Systemet finner ikke angitt bane.


Project : error PRJ0019: A tool returned an error code from "Building
wrap_VXLNumericsTcl.xml from
=
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/VXLNumeric=
s/wrap_VXLNumericsTcl.xml"


Build log was saved at
=
"file://c:\users\fl\sdk\debug-Insight-cmake182-vcnet2003\Wrapping\CSwig\VX=
LNumerics\Debug\BuildLog.htm"


VXLNumericsTcl - 1 error(s), 0 warning(s)


--------


_ITKAlgorithmsPython error PRJ0019: A tool returned an error code from
"Building wrap_ITKAlgorithmsPython.xml from=A0
=
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/Algorithms=
/wrap_ITKAlgorithmsPython.xml"

ITKAlgorithmsTcl error PRJ0019: A tool returned an error code from
"Building wrap_ITKAlgorithmsTcl.xml from=A0
=
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/Algorithms=
/wrap_ITKAlgorithmsTcl.xml"

_ITKBasicFiltersPython error PRJ0019: A tool returned an error code
from "Building wrap_ITKBasicFiltersPython.xml from=A0
=
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/BasicFilte=
rs/wrap_ITKBasicFiltersPython.xml"

ITKBasicFiltersTcl error PRJ0019: A tool returned an error code from
"Building wrap_ITKBasicFiltersTcl.xml from=A0
=
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/BasicFilte=
rs/wrap_ITKBasicFiltersTcl.xml"

_ITKIOPython error PRJ0019: A tool returned an error code from
"Building wrap_ITKIOPython.xml from=A0
=
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/IO/wrap_IT=
KIOPython.xml"

_ITKNumericsPython error PRJ0019: A tool returned an error code from
"Building wrap_ITKNumericsPython.xml from=A0
=
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/Numerics/w=
rap_ITKNumericsPython.xml"

ITKNumericsTcl error PRJ0019: A tool returned an error code from
"Building wrap_ITKNumericsTcl.xml from=A0
=
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/Numerics/w=
rap_ITKNumericsTcl.xml"

_ITKCommonPython error PRJ0019: A tool returned an error code from
"Building wrap_ITKPyUtils.xml from=A0
=
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/Common/wra=
p_ITKPyUtils.xml"

ITKIOTcl error PRJ0019: A tool returned an error code from "Building
wrap_itkTkImageViewer2D.xml from=A0
=
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/IO/wrap_it=
kTkImageViewer2D.xml"

ITKCommonTcl error PRJ0019: A tool returned an error code from
"Building wrap_ITKUtils.xml from=A0
=
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/Common/wra=
p_ITKUtils.xml"

_VXLNumericsPython error PRJ0019: A tool returned an error code from
"Building wrap_VXLNumericsPython.xml from=A0
=
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/VXLNumeric=
s/wrap_VXLNumericsPython.xml"

VXLNumericsTcl error PRJ0019: A tool returned an error code from
"Building wrap_VXLNumericsTcl.xml from=A0
=
C:/users/fl/sdk/debug-Insight-cmake182-vcnet2003/Wrapping/CSwig/VXLNumeric=
s/wrap_VXLNumericsTcl.xml"

itkwish fatal error LNK1104: cannot open file 'ITKAlgorithmsTcl.lib'

SwigRuntimePython fatal error LNK1104: cannot open file
'python23_d.lib'

=A0</smaller></fontfamily>


--Apple-Mail-2-439175398--