[Insight-users] Compile time issue SimpleITK-0.7.1.post1 in Visual Studio 2012

Matias Montroull matimontg at gmail.com
Thu Dec 19 12:48:59 EST 2013


Thanks for the feedback.

I'm trying to get the cloud points of a skin Dicom volume. Basically the
coordinates of each point in the skin to be used for calibration with NDI
tracker. Not sure what other method I can use in C#. I was pointed to the
ExtractSurface.cxx example and it uses that Mesh class.

Matias.


On Thu, Dec 19, 2013 at 2:08 PM, Bradley Lowekamp <brad at lowekamp.net> wrote:

> One thing I just remembered. I think that if the CMAKE variable
> "CSHARP_PLATFORM" is anycpu it may cause the csharp compilation to take a
> very long time. It is set to x86 or x64 on the dashboard builds[1]. If your
> build is "cpuany" by default and changing it fixes your build time, I
> should make the default more intelligent.
>
> More comments below.
>
>
> [1] http://open.cdash.org/viewNotes.php?buildid=3145142
>
> On Dec 19, 2013, at 11:50 AM, Matias Montroull <matimontg at gmail.com>
> wrote:
>
> Thank you Brad,
>
> Are you using Express or Professional VS11? Proffesional VS11
>
>
> Professional is more efficient.
>
> Are you compiling for Win32 or Win64? Win64
>
>
> Win64 requires more linking resources.
>
> Are you compiling in Release/Debug mode? Debug
>
>
> Use release. There are WAY too many ITK debugging symbols to be keep
> around! And the libraries end up being Over 1 GB. You much enable the
> SimpleITK libraries to be shared for this configuration, and that's more
> burdensome to use. Only compile SimpleITK if you need to debug SimpleITK or
> ITK.
>
> How much system memory do you have? 8GB
> How many cores? CPU Spec? 4Cores. Intel Core I5 3320M / 2.6GHZ
>
>
> As long as you are not trying to link 3+ wrapped languages at the same
> time you should be OK.
>
> Was it stuck in compiling files or linking? Compiling
>
>
> compilation of what? Any resource limits hit?
>
>
> I'll appreciate the instructions to import the Csharp Binaries into VS2012.
>
> Last question, how can I get the BinaryMask3DMeshSource to work on my
> VS2012 project? Do I need to use another library?
>
>
> What do you plan on doing with the Mesh next?
> I don't think there is a readily available library in CSharp with that
> filter available. You will likely have to do some custom
> interfacing/wrapping of custom C++ code.
>
> Brad
>
>
> Thanks!
>
>
> On Thu, Dec 19, 2013 at 1:16 PM, Bradley Lowekamp <brad at lowekamp.net>wrote:
>
>> Hello,
>>
>> 1) Compilation
>>
>> It takes quite a while to build and link SimpleITK on windows. One reason
>> for the binary downloads. Visual Studio seems to be particular slow at
>> linking.
>>
>> Are you using Express or Professional VS11?
>> Are you compiling for Win32 or Win64?
>> Are you compiling in Release/Debug mode?
>> How much system memory do you have?
>> How many cores? CPU Spec?
>> Was it stuck in compiling files or linking?
>>
>> I would be suspicion that you ran out of memory and the system was
>> thrashing during linking.
>>
>> To compile I'd recommend only turning wrapping on for CSharp and 8 GB of
>> memory. I have not recently tried VS11, and would recommend VS9 (2008) or
>> VS10 (2010).
>>
>> 2) BinaryMask3DMeshSource
>>
>> SimpleITK primarily contains image filtering and does not have support
>> for meshes.
>>
>> 3) I can't seem to find step-by-step instructions for importing the
>> CSharp binaries for Visual Studio. I'll see if I can get those together.
>>
>> Brad
>>
>> On Dec 19, 2013, at 10:11 AM, Matias Montroull <matimontg at gmail.com>
>> wrote:
>>
>> > Hi,
>> >
>> > I've downloaded SimpleITK-0.7.1.post1 and I compiled it using Cmake
>> succesfully. Now, when I go to VS2012, and I build the solution, it takes
>> forever. I left my machine on during the whole night and when I woke up it
>> was kind of stuck.
>> >
>> > Any reported issues with this?  The problem I have is that I downloaded
>> the DLLs but I seem to miss one class: BinaryMask3DMeshSource
>> >
>> > I can't even import the DLL into my solution so I was trying to build
>> it manually to see if it worked. I was able to import only
>> SimpleITKCSharpManaged but not SimpleITKCSharpNative
>> >
>> > Thanks!
>> > _____________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Kitware offers ITK Training Courses, for more information visit:
>> > http://www.kitware.com/products/protraining.php
>> >
>> > Please keep messages on-topic and check the ITK FAQ at:
>> > http://www.itk.org/Wiki/ITK_FAQ
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.itk.org/mailman/listinfo/insight-users
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20131219/d908f3b1/attachment.htm>


More information about the Insight-users mailing list