[Insight-developers] SimpleITK dashboard

Bradley Lowekamp blowekamp at mail.nih.gov
Thu Jul 28 18:05:12 EDT 2011


Dan,

Are you able to submit this patch to gerrit? As the long running topic on CSharp was merged into master yesterday, branching a new topic from master, then pushing to gerrit should work OK.

http://erie.nlm.nih.gov/~blowek1/SimpleITK/Developer.html

Brad

On Jul 28, 2011, at 5:00 PM, Dan Mueller wrote:

> Hi Dan,
> 
>> Hmm, did a test build, and got this error:
>> [ 57%] Generating CSharpTests/TestMirrorPadImageFilter.cs
>> error CS2007: Unrecognized command-line option: `/platform:x64'
> 
> I'm having trouble reproducing using a virtual machine...
> 
> The attached diff should avoid the issue (avoid rather than solve).
> This seems to works on my 32-bit Ubuntu machine...
> 
> Cheers, Dan Mueller
> 
> =====================================
> diff --git a/Wrapping/CSharpModules/UseCSharp.cmake
> b/Wrapping/CSharpModules/UseCSharp.cmake
> index 90fefdd..1f8159f 100644
> --- a/Wrapping/CSharpModules/UseCSharp.cmake
> +++ b/Wrapping/CSharpModules/UseCSharp.cmake
> @@ -45,10 +45,8 @@ if( MSVC )
>   else()
>     set( CSHARP_PLATFORM "x86" CACHE INTERNAL "" )
>   endif()
> -elseif( CMAKE_SIZEOF_VOID_P EQUAL 8 )
> -  set( CSHARP_PLATFORM "x64" CACHE INTERNAL "" )
> else()
> -  set( CSHARP_PLATFORM "x86" CACHE INTERNAL "" )
> +  set( CSHARP_PLATFORM "anycpu" CACHE INTERNAL "" )
> endif()
> 
> macro( CSHARP_ADD_LIBRARY name )
> =====================================
> 
> On 27 July 2011 21:56, Daniel Blezek <Blezek.Daniel at mayo.edu> wrote:
>> CentOS 5.x 64-bit...
>> 
>> 
>> On 7/27/11 2:52 PM, "Dan Mueller" <dan.muel at gmail.com> wrote:
>> 
>>> What flavor of Linux are you running?
>>> 
>>> On 27 July 2011 21:13, Daniel Blezek <Blezek.Daniel at mayo.edu> wrote:
>>>> Hmm, did a test build, and got this error:
>>>> 
>>>> [ 57%] Generating CSharpTests/TestMirrorPadImageFilter.cs
>>>> error CS2007: Unrecognized command-line option: `/platform:x64'
>>>> 
>>>> the results should be up on the dashboard soon.
>>>> 
>>>> -dan
>>>> 
>>>> 
>>>> On 7/27/11 1:40 PM, "Daniel Blezek" <Blezek.Daniel at mayo.edu> wrote:
>>>> 
>>>>> OK, I installed mono-core and mono-devel.  Check the dashboard tomorrow to
>>>>> see
>>>>> if all went well!
>>>>> 
>>>>> -dan
>>>>> 
>>>>> 
>>>>> On 7/27/11 11:32 AM, "Dan Mueller" <dan.muel at gmail.com> wrote:
>>>>> 
>>>>>> Hi Dan,
>>>>>> 
>>>>>>>  If I install Mono, will SimpleITK automatically detect and configure?
>>>>>> Yes, C# is considered a "first class" language -- if the packages are
>>>>>> installed, CMake tries to find it in the following locations:
>>>>>> 
>>>>>>   # Search for Mono on non-Win32 systems
>>>>>>   set( chsarp_mono_names "dmcs" "gmcs" "mcs" "dmcs.exe" "gmcs.exe"
>>>>>> "mcs.exe"
>>>>>> )
>>>>>>   set(
>>>>>>     csharp_mono_paths
>>>>>>     "/usr/bin/"
>>>>>>     "/usr/local/bin/"
>>>>>>     "/usr/lib/mono/2.0"
>>>>>>   )
>>>>>>   find_program(
>>>>>>     NAMES ${chsarp_mono_names}
>>>>>>     PATHS ${csharp_mono_paths}
>>>>>>   )
>>>>>> 
>>>>>> This has been tested on Ubuntu; not sure how it goes on other Linux
>>>>>> flavors.
>>>>>> 
>>>>>> Regards, Dan Mueller
>>>>>> 
>>>>>> On 27 July 2011 18:22, Daniel Blezek <Blezek.Daniel at mayo.edu> wrote:
>>>>>>> Hi Dan,
>>>>>>> 
>>>>>>>  If I install Mono, will SimpleITK automatically detect and configure?
>>>>>>> 
>>>>>>> Thanks,
>>>>>>> -dan
>>>>>>> 
>>>>>>> 
>>>>>>> On 7/27/11 7:30 AM, "Dan Mueller" <dan.muel at gmail.com> wrote:
>>>>>>> 
>>>>>>>> Hi John,
>>>>>>>> 
>>>>>>>> Submitting a SimpleITK build on CentOS with Mono C# would be great!
>>>>>>>> 
>>>>>>>> You can find details for installing Mono packages here:
>>>>>>>>     http://www.mono-project.com/Mono_Installation
>>>>>>>>     http://ftp.novell.com/pub/mono/download-stable/RHEL_5
>>>>>>>> 
>>>>>>>> 
>>>> http://stackoverflow.com/questions/3510320/install-mono-on-centos5-5-using->>
>>>>>> 
>>>> y
>>>>>>>> um
>>>>>>>> 
>>>>>>>> Someone else will have to give instructions for submitting a SimpleITK
>>>>>>>> build to the dashboard (David?, Dan B?). Perhaps the following wiki
>>>>>>>> page can help get you started:
>>>>>>>> 
>>>>>>>> http://www.itk.org/Wiki/ITK_Policy_and_Procedure_for_Adding_Dashboards
>>>>>>>> 
>>>>>>>> Looking forward to seeing Linux + SimpleITK + C# builds on the dashboard!
>>>>>>>> 
>>>>>>>> Cheers, Dan Mueller
>>>>>>>> 
>>>>>>>> On 26 July 2011 18:04, John McInerney <jmcinerney6 at gmail.com> wrote:
>>>>>>>>> Dear Dan,
>>>>>>>>> 
>>>>>>>>> I have a CentOS machine that I would love to try Mono for C# wrapping.
>>>>>>>>> I
>>>>>>>>> have 30 years of UNIX/Linux/etc.  Been doing CUDA for a while now.  I am
>>>>>>>>> hoping Bioscan can just deliver a single machine with our instruments
>>>>>>>>> that'll do
>>>>>>>>> everything down stream from the embeded (headless) system: GUI,
>>>>>>>>> reconstruction,
>>>>>>>>> segmentation, and registration.  So, that's my motivation...
>>>>>>>>> 
>>>>>>>>> Been hanging on by my nails with the ITK upgrade.  Can't say I follow
>>>>>>>>> everything,
>>>>>>>>> but I'm a quick study.  I can do the Mono install.  It may take some
>>>>>>>>> time
>>>>>>>>> to
>>>>>>>>> get
>>>>>>>>> ITK 4 going to get to where you are at...  I have code that ran under
>>>>>>>>> ITK
>>>>>>>>> 3...
>>>>>>>>> 
>>>>>>>>> John
>>>>>>>>> 
>>>>>>>>> On Tue, Jul 26, 2011 at 10:42 AM, Dan Mueller <dan.muel at gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>> 
>>>>>>>>>> Hi Brad,
>>>>>>>>>> 
>>>>>>>>>> The SimpleITK dashboard is looking good this morning :D (At least for
>>>>>>>>>> Linux and Win32 builds.) Out of interest, what branch are these
>>>>>>>>>> machines using? I am using remote stage/next, but still get the
>>>>>>>>>> DIRECTIONCOLLAPSETOIDENTITY errors...
>>>>>>>>>> 
>>>>>>>>>> Also, are you in charge of the Linux box mi3c-qbert.mayo.edu? I'm just
>>>>>>>>>> wondering if it would be possible to install Mono so that C# wrapping
>>>>>>>>>> on Linux is covered (unfortunately I don't have access to a Linux
>>>>>>>>>> machine for submitting builds at the moment). If you tell me the Linux
>>>>>>>>>> flavour, I can provide the few commands needed to install the 2 or 3
>>>>>>>>>> Mono-related packages.
>>>>>>>>>> 
>>>>>>>>>> Cheers, Dan Mueller
>>>>>>>>>> 
>>>>>>>>>> On 25 July 2011 15:49, Bradley Lowekamp <blowekamp at mail.nih.gov> wrote:
>>>>>>>>>>> I agree that is starting to be concerning with the size of the
>>>>>>>>>>> library.
>>>>>>>>>>> I am
>>>>>>>>>>> still amazed with how much it shrinks when the wrapped language
>>>>>>>>>>> library
>>>>>>>>>>> is
>>>>>>>>>>> made. There should be something we can do about this.
>>>>>>>>>>> That is great you found a solution. The attached diff is fine. I will
>>>>>>>>>>> place
>>>>>>>>>>> it onto the end of the current topic. And hopefully, it'll be ready
>>>>>>>>>>> for
>>>>>>>>>>> merging into master!
>>>>>>>>>>> Brad
>>>>>>>>>>> 
>>>>>>>>>>> On Jul 25, 2011, at 1:13 AM, Dan Mueller wrote:
>>>>>>>>>>> 
>>>>>>>>>>> Hi Brad,
>>>>>>>>>>> 
>>>>>>>>>>> Debug builds on windows 32-bit systems may not be supported. The
>>>>>>>>>>> library
>>>>>>>>>>> just gets too big. You should try to build a release.
>>>>>>>>>>> 
>>>>>>>>>>> Thanks for the info regarding the release build -- I do not encounter
>>>>>>>>>>> the "can not seek" error in release mode. However, I notice that
>>>>>>>>>>> SimpleITKBasicFilters.lib comes to 700MB, which is getting close to
>>>>>>>>>>> 1GB; perhaps something to watch for in the future as SimpleITK grows.
>>>>>>>>>>> 
>>>>>>>>>>> This morning I located the issue with the SimpleITK C# Visual Studio
>>>>>>>>>>> 2008 build: it seems VS9 can not handle source dependencies specified
>>>>>>>>>>> using a wildcard. I have changed
>>>>>>>>>>> Wrapping/CSharpModules/UseCSharp.cmake to glob any wildcard
>>>>>>>>>>> expressions (as well as a minor bug fix for FindCSharp when using
>>>>>>>>>>> outside of SimpleITK). I have tested the changes using VS9, VS10, and
>>>>>>>>>>> make on Unbuntu. Please find the corrected files attached and diff
>>>>>>>>>>> below. What is your preferred way of working? Do I push the patch to
>>>>>>>>>>> Gerrit?
>>>>>>>>>>> 
>>>>>>>>>>> Cheers, Dan Mueller
>>>>>>> 
>>>>>>> --
>>>>>>> Daniel Blezek, PhD
>>>>>>> Medical Imaging Informatics Innovation Center
>>>>>>> 
>>>>>>> P 127 or (77) 8 8886
>>>>>>> T 507 538 8886
>>>>>>> E blezek.daniel at mayo.edu
>>>>>>> 
>>>>>>> Mayo Clinic
>>>>>>> 200 First St. S.W.
>>>>>>> Harwick SL-44
>>>>>>> Rochester, MN 55905
>>>>>>> mayoclinic.org
>>>>>>> "It is more complicated than you think." -- RFC 1925
>>>>>>> 
>>>>>>> 
>>>> 
>>>> --
>>>> Daniel Blezek, PhD
>>>> Medical Imaging Informatics Innovation Center
>>>> 
>>>> P 127 or (77) 8 8886
>>>> T 507 538 8886
>>>> E blezek.daniel at mayo.edu
>>>> 
>>>> Mayo Clinic
>>>> 200 First St. S.W.
>>>> Harwick SL-44
>>>> Rochester, MN 55905
>>>> mayoclinic.org
>>>> "It is more complicated than you think." -- RFC 1925
>>>> 
>>>> 
>> 
>> --
>> Daniel Blezek, PhD
>> Medical Imaging Informatics Innovation Center
>> 
>> P 127 or (77) 8 8886
>> T 507 538 8886
>> E blezek.daniel at mayo.edu
>> 
>> Mayo Clinic
>> 200 First St. S.W.
>> Harwick SL-44
>> Rochester, MN 55905
>> mayoclinic.org
>> "It is more complicated than you think." -- RFC 1925
>> 
>> 
> <diff.patch>



More information about the Insight-developers mailing list