<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hello Scott,<div><br></div><div>Getting stdint.h and TR1 should be the easy part. I unfortunately don't have access to VS 2009 until Monday, so I can't double check these things for you. I have installed and configured virtual machines many times with VS 2008.&nbsp;I never had trouble installing the TR1 feature pack.&nbsp;The only time I had trouble with stdint, was when the web browser added an extensions. So please right-click on the file and look at the properties to verify it has the correct name. The&nbsp;check_include_file_cxx cmake function performs a try_compile on a cxx file to check if the header is found. The compiler should not be invoked with additional include paths at this point, so it's just going to looking in the standard system locations.</div><div><br></div><div>The hard part... As Dan pointed to in the fact, we are having problems compiling with VS9 handling the size of the intermediate static libraries. There are some heroic efforts people have gone to get it work with this compiler[1]. Additionally in the experimental developmental branch we are trying different ways to break up the libraries to over come this limitation. On the other hand, I believe that it should be possible to build ITK with shared libraries and SimpelITK with share libraries to over come this limit &nbsp;as well. However, afterward you'll have to manage of ITK shared libraries along with the SimpleITK libraries and the C Sharp managed library. I have not verified this shared library approach, but will do so on Monday. However, I don't really recommend any of these approach to those who are not extremely motivated.</div><div><br></div><div>So the recommendations I have are:</div><div><br></div><div>1) Switch so VS10, The freely available express edition should be compatible with precompiled C#. This should be the easiest.</div><div>2) Wait a couple weeks to see if the libraries can be refactored, to over come the limitations of this compiler.</div><div>3) Figure out how to use VS10 to compile SimpleITK c# for .Net 2.0</div><div>4) Delve into getting it to work on VS9 wither with magic flags, the experimental branch, or with build ITK and SimpleITK with shared libraries.</div><div><br></div><div>[1]&nbsp;<a href="https://itk.icts.uiowa.edu/jira/browse/SIMPLEITK-216">https://itk.icts.uiowa.edu/jira/browse/SIMPLEITK-216</a></div><div><br></div><div><br></div><div>Please let up know if you have further problems or success, and good luck,</div><div>Bradley Lowekamp</div><div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">========================================================</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Bradley Lowekamp<span class="Apple-converted-space">&nbsp;</span><span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Medical Science and Computing for</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">Office of High Performance Computing and Communications</font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; ">National Library of Medicine<span class="Apple-converted-space">&nbsp;</span></font></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: normal normal normal 12px/normal Helvetica; "><a href="mailto:blowekamp@mail.nih.gov">blowekamp@mail.nih.gov</a></font></p></div></div></span></span>
</div>
<br><div><div>On Mar 31, 2012, at 11:05 AM, Scott Johnson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Thanks Dan.<br><br>Where is cmake looking to find stdint.h?<br><br><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">        </span>-- Scott<br><br>-----Original Message-----<br>From: Dan Mueller [mailto:dan.muel@gmail.com] <br>Sent: Friday, March 30, 2012 6:43 PM<br>To: Scott Johnson<br>Cc: itk (<a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>)<br>Subject: Re: [Insight-users] SimpleITK Build Issues VS 2008 (x64)<br><br>Hi Scott,<br><br>Yes, I also had discovered this. Sorry for not making this clear in my email.<br><br>Just to be clear, the options are:<br>1. Change SimpleITK so that VS10 builds do no use .NET 4.0 (meaning pre-built SimpleITKCSharpManaged.dll will be usable with VS9). I'm not going to be able to address this any time soon.<br>2. Get your VS9 environment to support TR1/C99, then build SimpleITK yourself.<br>(3. Switch to VS10.)<br><br><blockquote type="cite">If I can past the CMake issues I'll feel more confident that I can get it to build.<br></blockquote>BTW: The issue you report is not an issue with the CMake build per se, but an issue with your compiler -- the CMake build is simply doing some checks and has determined that your build environment does not meet the requirements for SimpleITK.<br><br>Good luck.<br><br>Cheers, Dan<br><br>On 31 March 2012 09:40, Scott Johnson &lt;<a href="mailto:Scott.Johnson@neuwave.com">Scott.Johnson@neuwave.com</a>&gt; wrote:<br><blockquote type="cite">Hi Again,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">With a little research I have found that Visual Studio 2008 is not compatible with .Net Framework 4.0. &nbsp;Therefore the pre-built dlls cannot be used under VS 2008.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Back to trying to build it.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Scott<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-----Original Message-----<br></blockquote><blockquote type="cite">From: <a href="mailto:insight-users-bounces@itk.org">insight-users-bounces@itk.org</a> <br></blockquote><blockquote type="cite">[mailto:insight-users-bounces@itk.org] On Behalf Of Scott Johnson<br></blockquote><blockquote type="cite">Sent: Friday, March 30, 2012 6:00 PM<br></blockquote><blockquote type="cite">To: Dan Mueller<br></blockquote><blockquote type="cite">Cc: itk (<a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>)<br></blockquote><blockquote type="cite">Subject: Re: [Insight-users] SimpleITK Build Issues VS 2008 (x64)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks for the response Dan.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'll try to target .NET 4.0 to see if I can use the prebuilt dlls.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">If I can past the CMake issues I'll feel more confident that I can get it to build.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;-- Scott<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-----Original Message-----<br></blockquote><blockquote type="cite">From: Dan Mueller [mailto:dan.muel@gmail.com]<br></blockquote><blockquote type="cite">Sent: Friday, March 30, 2012 4:44 PM<br></blockquote><blockquote type="cite">To: Scott Johnson<br></blockquote><blockquote type="cite">Cc: itk (<a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>); Bradley Lowekamp<br></blockquote><blockquote type="cite">Subject: Re: [Insight-users] SimpleITK Build Issues VS 2008 (x64)<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hi Scott,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Sorry to hear you are experiencing issues with building the SimpleITK C# wrappers.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I tried to use SimpleITKCSharpManaged.dll from SimpleITK-0.4.0-CSharp-Win64-anycpu.zip in a Visual Studio 2008 project and experienced the same issue you described:<br></blockquote><blockquote type="cite">Could not load file or assembly 'SimpleITKCSharpManaged.dll' or one of its dependencies. This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The issue is not that the assembly was built by Visual Study 2010 (which it was) but rather it was built to target the .NET 4.0 runtime.<br></blockquote><blockquote type="cite">AFAIK it should be possible to build with Visual Studio 2010 but to target the .NET 2.0 runtime for example. That said, I am totally flat out at the moment and don't know when I will get a chance to do this... So you will probably get faster results if you build yourself.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">The SimpleITK FAQ does say that Visual Studio 9 is currently <br></blockquote><blockquote type="cite">problematic<br></blockquote><blockquote type="cite">&nbsp; &nbsp;<br></blockquote><blockquote type="cite"><a href="http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/FAQ#Currently_Problema">http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/FAQ#Currently_Problema</a><br></blockquote><blockquote type="cite">tic but looking at the SimpleITK dashboard<br></blockquote><blockquote type="cite">&nbsp; &nbsp;<a href="http://open.cdash.org/index.php?project=simpleITK">http://open.cdash.org/index.php?project=simpleITK</a><br></blockquote><blockquote type="cite">I notice there is one Visual Studio 2008 (aka Visual Studio 9) build (an x86 build), so it does seem possible to build SimpleITK with VS9.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Brad owns this build machine, so I've cc'd him. Hopefully he can provide some advice on how to setup VS9 to support TR1/C99.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Cheers, Dan<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On 31 March 2012 05:34, Scott Johnson &lt;<a href="mailto:Scott.Johnson@neuwave.com">Scott.Johnson@neuwave.com</a>&gt; wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">Hello,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I've been attempting to use SimpleITK under Windows 7 (x64) and <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Visual Studio 2008 and CMake 2.8.5.&nbsp; The goal is to use the C# wrappers.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">First, I downloaded SimpleITK-0.4.0-CSharp-Win64-anycpu.zip and <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">attempted to add a reference to SimpleITKCSharpManaged.dll to my <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">solution.&nbsp; VS didn't recognize the dll as being valid.&nbsp; (Now I'm <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">assuming that the dll was built against VS 2010 and isn't backward<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">compatible.)<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I then downloaded the source tree with the intent to build it myself.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">(I've tried with both the source package from sourceforge and <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">checking out the most recent code from GIT.)&nbsp; I have been attempting <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">to follow the directions at <a href="http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/FAQ">http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/FAQ</a>.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">When I first ran CMake I was given an error reading:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">CMake Error at CMakeLists.txt:117 (message):<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">SimpleITK requires usage of C99 stdint.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">It may be available as an optional download for your compiler.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Please see the FAQ for details and to see if your compiler is supported.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/FAQ#Do_I_need_to_down">http://www.itk.org/Wiki/ITK_Release_4/SimpleITK/FAQ#Do_I_need_to_down</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">l<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">oad_an_optional_package_for_C99.3F<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I downloaded the Visual C++ 2008 Feature Pack Release via the link on <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">the web site and attempted to install it.&nbsp; It failed because the <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">installer said that I didn't have the proper features installed for <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">the update.&nbsp; I also grabbed the stdint.h file and copied it to the <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">location called out in the directions.&nbsp; I've searched for a 64 bit <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">version of this feature pack with no luck.&nbsp; I did find Microsoft <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Visual C++ 2008 Feature Pack Redistributable Package (x64) but that didn't help.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">CMake continues to give me errors and I've tracked the initial error <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">to a line in the CMakeLists.txt file which reads:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">check_include_file_cxx( stdint.h SITK_HAS_STDINT_H )<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">I've been looking around to find out what paths are searched by <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">check_include_file_cxx to no avail.&nbsp; But evidently C:\Program <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Files\Microsoft Visual Studio 9/0\VC\include isn't one of them.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">If possible I'd like to get this to work under VS 2008 and I'd <br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">appreciate any help I can get.&nbsp; Right now I'm out of ideas as to what is going wrong.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Thanks<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -- Scott<br></blockquote></blockquote><blockquote type="cite"><br></blockquote></div></blockquote></div><br></div></body></html>