<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Dear Goodwin and Karthik,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks for your helps. Here is the summary of
this getting Visual C++ 8 Express to build VTK/ITK:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>It seems that there is more than one path of info
to VC8E. In my case I downloaded the compiler but ran into some obvious
problems due to lack of Platform SDK (this is before I posted my question to the
thread). A search on the net showed many people had gone through the same
path and the question was answered by one of the VC8 developers on MSDN
forum. According to him, it is not necessary to install the
1GB Platform SDK, but only to copy the lib-bin-include directories from it
to PlatformSDK subdirectory of VC8E's (this directory has to be
made). He explicitly stated that no other configuration was
necessary.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>He is only partially correct. It is true that
installing the 1GB Platform SDK is not needed. It is also true that VC8E
comes preconfigured to search in a "PlatformSDK" directory (and I verified all
this). However, for some strange reason MS saw fit that having the include
directory in the configuration is not enough and that one must also manually
edit the corewin_express.vsprops file and change the string that
reads:<BR><BR>AdditionalDependencies="kernel32.lib"
to<BR><BR>AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib
<BR>comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib
uuid.lib"<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Unfortunately this information was missing from the
MSDN forum.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This however was only one of the problems with the
build. It turns out that (at least as far as I can tell) there is no way
to build the wrappers under windows. The checked out version of CableSwig
is missing a lot of header files needed for gcc and gccxml. I really wish
Kitware would just make use of the standard Swig and gccxml (I have them both
running on my system). As it stands, I am not sure how to link those apps
to ITK. The documentation says the Kitware version is slightly different
than the originals. While we are at it, it would have been very nice if
some config or env variable could tell VTK/ITK which version of Python/TCL
package to use rather than needing to rebuild for everytime there is a new
version of these.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Once again thanks for your helps,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Arash</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial><STRONG>PS I hope Luis notices my last paragraph
;)</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Karthik Krishnan" <</FONT><A
href="mailto:Karthik.Krishnan@kitware.com"><FONT face=Arial
size=2>Karthik.Krishnan@kitware.com</FONT></A><FONT face=Arial
size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>To: "Arash Jahangir" <</FONT><A
href="mailto:arash@vije.ca"><FONT face=Arial
size=2>arash@vije.ca</FONT></A><FONT face=Arial size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Cc: "Nicolaus Andratschke" <</FONT><A
href="mailto:koegli@yahoo.com"><FONT face=Arial
size=2>koegli@yahoo.com</FONT></A><FONT face=Arial size=2>>; "Insight Users"
<</FONT><A href="mailto:insight-users@itk.org"><FONT face=Arial
size=2>insight-users@itk.org</FONT></A><FONT face=Arial size=2>>; "VTK users
list" <</FONT><A href="mailto:vtkusers@public.kitware.com"><FONT face=Arial
size=2>vtkusers@public.kitware.com</FONT></A><FONT face=Arial
size=2>></FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Tuesday, November 29, 2005 4:29
PM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: Re: [Insight-users] Re: VTK/ITK with
VC8</FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial
size=2>>I am able to build fine with VS8<BR>> <BR>> You did not follow
all the steps in<BR>> </FONT><A
href="http://msdn.microsoft.com/vstudio/express/visualc/download/"><FONT
face=Arial
size=2>http://msdn.microsoft.com/vstudio/express/visualc/download/</FONT></A><BR><FONT
face=Arial size=2>> <BR>> You need to do Step 4. (install plaatform
SDK)<BR>> <BR>> Regards<BR>> karthik<BR>> <BR>> <BR>> <BR>>
Arash Jahangir wrote:<BR>> <BR>>> Hi Nic,<BR>>> I have
gotten it to the point that the nightly code compiles if I <BR>>> limit
myself to a minimal build (more problems on ITK than VTK) but in <BR>>>
both cases the linker has issues. Typical error message is with
<BR>>> unresolved external symbols:<BR>>><BR>>> Error 6 error
LNK2019: unresolved external symbol <BR>>> </FONT><A
href="mailto:__imp__DestroyWindow@4"><FONT face=Arial
size=2>__imp__DestroyWindow@4</FONT></A><FONT face=Arial size=2> referenced in
function "protected: virtual <BR>>> __thiscall
itk::Win32OutputWindow::~Win32OutputWindow(void)" <BR>>> (</FONT><A
href="mailto:??1Win32OutputWindow@itk@@MAE@XZ"><FONT face=Arial
size=2>??1Win32OutputWindow@itk@@MAE@XZ</FONT></A><FONT face=Arial size=2>)
ITKCommon.lib<BR>>><BR>>><BR>>> I'd appreciate any help with
this.<BR>>><BR>>> Arash<BR>>><BR>>> ----- Original
Message ----- From: "Nicolaus Andratschke" <BR>>> <</FONT><A
href="mailto:koegli@yahoo.com"><FONT face=Arial
size=2>koegli@yahoo.com</FONT></A><FONT face=Arial size=2>><BR>>> To:
<</FONT><A href="mailto:arash@vije.ca"><FONT face=Arial
size=2>arash@vije.ca</FONT></A><FONT face=Arial size=2>><BR>>> Sent:
Monday, November 28, 2005 3:04 PM<BR>>> Subject: VTK/ITK with
VC8<BR>>><BR>>><BR>>>> Hi
Arash,<BR>>>><BR>>>> I'm facing similar
problems.<BR>>>> Actually, the c++ part compiles quite well (VTK
and<BR>>>> ITK). I'll try Python wrapping today with VTK.
The<BR>>>> Python part with ITK fails completely. BTW, I
haven't<BR>>>> succeded to build CableSwig etc. for any
Windows<BR>>>> platform. That's why I switched to Ubuntu
Linux.<BR>>>><BR>>>> Unfortunately, there is a problem with
ITK on Windows<BR>>>> platforms as I regularly get exceptions when
handling<BR>>>> IO, e.g. with reading and writing dicom images.
I'll<BR>>>> post a message to the list.<BR>>>><BR>>>>
I would appreciate any update on your problem.<BR>>>> Conversely, I let
you know when I succeded.<BR>>>><BR>>>>
NIC<BR>>>><BR>>>><BR>>>><BR>>>>
__________________________________<BR>>>> Yahoo! Music
Unlimited<BR>>>> Access over 1 million songs. Try it
free.<BR>>>> </FONT><A href="http://music.yahoo.com/unlimited/"><FONT
face=Arial size=2>http://music.yahoo.com/unlimited/</FONT></A><BR><FONT
face=Arial size=2>>>><BR>>><BR>>>
_______________________________________________<BR>>> Insight-users
mailing list<BR>>> </FONT><A href="mailto:Insight-users@itk.org"><FONT
face=Arial size=2>Insight-users@itk.org</FONT></A><BR><FONT face=Arial
size=2>>> </FONT><A
href="http://www.itk.org/mailman/listinfo/insight-users"><FONT face=Arial
size=2>http://www.itk.org/mailman/listinfo/insight-users</FONT></A><BR><FONT
face=Arial size=2>>><BR>></FONT></BODY></HTML>