<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Luis,<BR>
<BR>
This is slightly off-topic. I was also toying with a quick fix/work around with VTK. My finding is that the quickest way to get VTK to work under VS2010 is to comment out VTK_COMMON_EXPORT as the following in the file, of course, "vtkArrayIteratorTemplate.h" <BR>
<BR><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>
template</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> <</FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>class</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> T><BR></FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>
class</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> </FONT></FONT><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas><FONT color=#008000 size=2 face=Consolas>/*VTK_COMMON_EXPORT*/</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> vtkArrayIteratorTemplate : </FONT></FONT><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas><FONT color=#0000ff size=2 face=Consolas>public</FONT></FONT></FONT><FONT size=2 face=Consolas><FONT size=2 face=Consolas> vtkArrayIterator<BR></FONT></FONT>
<BR>My suspection is that this class was never been properly exported.<BR>
<BR>Xiaofeng<BR><BR><BR> <BR>
<HR id=stopSpelling>
Date: Thu, 22 Apr 2010 15:47:32 -0400<BR>Subject: Re: [Insight-users] building itk using visual studio 2010<BR>From: luis.ibanez@kitware.com<BR>To: xf10036@hotmail.com<BR>CC: mike.jackson@bluequartz.net; insight-users@itk.org<BR><BR><BR>Hi Xiaofeng,<BR><BR><BR> Thanks for sharing your findings.<BR><BR>Yes, you are in the right track.<BR><BR>We are trying to figure our what will be the <BR>right definition of this macro (and others).<BR><BR>So far, we have finding that we need to add<BR>some<BR><BR> #ifdef (_MSC_VER < 1600 )<BR> <BR> #else<BR> // Code for VS 10<BR> #endif<BR><BR>mostly for the lines that you are commenting<BR>out in itk_hashtable.h<BR><BR><BR> Thanks<BR><BR><BR> Luis<BR><BR><BR>--------------------------------------------------------------<BR>
<DIV class=ecxgmail_quote>On Thu, Apr 22, 2010 at 2:59 PM, Xiaofeng Z <SPAN dir=ltr><<A href="mailto:xf10036@hotmail.com">xf10036@hotmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE style="PADDING-LEFT: 1ex" class=ecxgmail_quote><BR>I was able to derive a workaround to get ITK to compile by VS 2010. This involves changing a few source code files:<BR><BR>1. add "#define ITK_SUPPORTS_TEMPLATED_FRIEND_FUNCTION_WITH_NULL_STRING" in "itkMacro.h" before line 750<BR><BR>2. comment out line 1148-1155 in file "itk_hashtable.h"<BR><BR>3. add "#include <iterator>" to "itkMesh.txx"<BR><BR>Hope this helps!<BR><BR><BR>Xiaofeng Z<BR><BR><BR><BR><BR>________________________________<BR>> Date: Thu, 22 Apr 2010 11:15:40 -0400<BR>> Subject: Re: [Insight-users] building itk using visual studio 2010<BR>> From: <A href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</A><BR>> To: <A href="mailto:xf10036@hotmail.com">xf10036@hotmail.com</A><BR>> CC: <A href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</A>; <A href="mailto:insight-users@itk.org">insight-users@itk.org</A><BR>
<DIV class=ecxim>><BR>><BR>> Hi Xiaofeng,<BR>><BR>> We are setting up a Nightly build of ITK with Visual Studio 10,<BR>> that will post to the ITK Dashboard.<BR>><BR>> <A href="http://www.cdash.org/CDash/index.php?project=Insight">http://www.cdash.org/CDash/index.php?project=Insight</A><BR>><BR>><BR>> That will help us ensure that VS10 is supported, and that<BR>> it remains supported on a permanent basis.<BR>><BR>><BR>> Stay tunned....<BR>><BR>><BR>> Regards,<BR>><BR>><BR>> Luis<BR>><BR>><BR>> --------------------------------------------------------------------<BR>><BR></DIV>
<DIV>
<DIV></DIV>
<DIV class=h5>> On Thu, Apr 22, 2010 at 10:59 AM, Xiaofeng Z> wrote:<BR>><BR>><BR>><BR>><BR>><BR>> Is there any workaround before a permanent solution is worked out?<BR>><BR>><BR>><BR>><BR>><BR>> Xiaofeng Z<BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>><BR>> ----------------------------------------<BR>><BR>>> CC: <A href="mailto:insight-users@itk.org">insight-users@itk.org</A><BR>><BR>>> From: <A href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</A><BR>><BR>>> To: <A href="mailto:xf10036@hotmail.com">xf10036@hotmail.com</A><BR>><BR>>> Subject: Re: [Insight-users] (no subject)<BR>><BR>>> Date: Thu, 22 Apr 2010 10:15:08 -0400<BR>><BR>>><BR>><BR>>> It seems that ITK 3.18 will NOT compile against VS 2010:<BR>><BR>>><BR>><BR>>> From an April 19, 2010 Posting to this list from Luis Ibanez<BR>><BR>>>> Hi Mostafizur,<BR>><BR>>>><BR>><BR>>>><BR>><BR>>>> ITK (any version) does not support Visual Studio 10 yet.<BR>><BR>>>><BR>><BR>>>><BR>><BR>>>> There were some structural changes made to Visual Studio 10,<BR>><BR>>>> that require CMake to manage the configuration process in a<BR>><BR>>>> way different from what is done with Visual Studio 9.<BR>><BR>>>><BR>><BR>>>><BR>><BR>>>> We will have Visual Studio 10 support for ITK in our top priorities<BR>><BR>>>> for the development cycle of ITK 3.19.<BR>><BR>>>><BR>><BR>>>><BR>><BR>>>><BR>><BR>>>> Regards,<BR>><BR>>>><BR>><BR>>>><BR>><BR>>>> Luis<BR>><BR>>><BR>><BR>>> --<BR>><BR>>> Mike J.<BR>><BR>>><BR>><BR>>> On Apr 22, 2010, at 10:01 AM, Xiaofeng Z wrote:<BR>><BR>>><BR>><BR>>>><BR>><BR>>>><BR>><BR>>>> Anyone able to compile itk in Visual Studio 2010? I'm getting large<BR>><BR>>>> amount of errors. The first one is:<BR>><BR>>>><BR>><BR>>>><BR>><BR>>>> 50>d:\nyph\imaging\source\insighttoolkit-3.18.0\code\common<BR>><BR>>>> \itk_hashtable.h(474): error C2146: syntax error : missing ';'<BR>><BR>>>> before identifier 'ITK_FRIEND_TEMPLATE_FUNCTION_ARGUMENT'<BR>><BR>>>><BR>><BR>>>><BR>><BR>>>> Is there anything I need to change in CMake? The only thing I<BR>><BR>>>> changed was to turn on BUILD_SHARED_LIBS.<BR>><BR>>>><BR>><BR>>>> Thanks!<BR>><BR>>>><BR>><BR>>>><BR>><BR>>>> Xiaofeng Z<BR>><BR>>>> _________________________________________________________________<BR>><BR>>>> The New Busy is not the old busy. Search, chat and e-mail from your<BR>><BR>>>> inbox.<BR>><BR>>>> <A href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3">http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3</A><BR>><BR>><BR>>>> _____________________________________<BR>><BR>>>> Powered by <A href="http://www.kitware.com/">www.kitware.com</A><BR>><BR>>>><BR>><BR>>>> Visit other Kitware open-source projects at<BR>><BR>>>> <A href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</A><BR>><BR>>>><BR>><BR>>>> Kitware offers ITK Training Courses, for more information visit:<BR>><BR>>>> <A href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</A><BR>><BR>>>><BR>><BR>>>> Please keep messages on-topic and check the ITK FAQ at:<BR>><BR>>>> <A href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</A><BR>><BR>>>><BR>><BR>>>> Follow this link to subscribe/unsubscribe:<BR>><BR>>>> <A href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</A><BR>><BR>>><BR>><BR>> _________________________________________________________________<BR>><BR>> The New Busy is not the old busy. Search, chat and e-mail from your inbox.<BR>><BR>> <A href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3">http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3</A><BR>><BR>><BR>> _____________________________________<BR>><BR>> Powered by <A href="http://www.kitware.com/">www.kitware.com</A><BR>><BR>><BR>><BR>> Visit other Kitware open-source projects at<BR>><BR>> <A href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</A><BR>><BR>><BR>><BR>> Kitware offers ITK Training Courses, for more information visit:<BR>><BR>> <A href="http://www.kitware.com/products/protraining.html">http://www.kitware.com/products/protraining.html</A><BR>><BR>><BR>><BR>> Please keep messages on-topic and check the ITK FAQ at:<BR>><BR>> <A href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</A><BR>><BR>><BR>><BR>> Follow this link to subscribe/unsubscribe:<BR>><BR>> <A href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</A><BR>><BR>><BR></DIV></DIV>
<DIV class=ecxhm>_________________________________________________________________<BR>Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.<BR><A href="http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2">http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2</A></DIV></BLOCKQUOTE></DIV><BR>                                            <br /><hr />Hotmail is redefining busy with tools for the New Busy. Get more from your inbox. <a href='http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2' target='_new'>See how.</a></body>
</html>