[Insight-users] itk python wrapping failing on Win

Prevrhal, Sven Sven.Prevrhal at philips.com
Sat May 26 16:26:52 EDT 2012


Thanks -
I tried D:/ for itk build, same error. Then I followed your advice and tried installing gccxml and ITK_USE_SYSTEM_GCCXML.

Now I get errors like

867>D:\packages\src\ITK-nightly\Modules\Filtering\ImageIntensity\include\itkConstrainedValueDifferenceImageFilter.h(97) : error C2487: 'itk::ProcessObject::MakeOutput' : member of dll interface class may not be declared with dll interface

And literally 100s of 1000s of lines like

867>D:\packages\builds\itk-nightly-x86\Wrapping\Typedefs\ITKImageIntensityExplicit.h(628) : warning C4231: nonstandard extension used : 'extern' before template explicit instantiation

I am sure I missing something obvious - there must be more folks out there wanting to compile itk with python wrapping on a windows box.

sven

-----Original Message-----
From: Alexandre GOUAILLARD [mailto:agouaillard at gmail.com]
Sent: Samstag, 26. Mai 2012 10:22
To: Prevrhal, Sven
Cc: insight-users at itk.org
Subject: Re: [Insight-users] itk python wrapping failing on Win

hi,

my guts feeling is that the path to the executable is too long.
try to either relocate ITK closer to the D:/ root, or to install gccXML first, and use the installed version within ITK.

regards,

alex.


On Sat, May 26, 2012 at 6:13 AM, Prevrhal, Sven <Sven.Prevrhal at philips.com> wrote:
> Gccxml is making trouble. Non-wrapping projects all compile just fine,
> using
> VS2008 32-bit debug. Python wrappers don't compile at all. Here is a
> snippet of the build log - any ideas? I did set GCCXML_COMPILER to
> msvc9 but it apparently got ignored, and probably wouldn't solve the problem anyway.
>
>
>
> 290>Generating itkAntiAliasBinaryImageFilter.xml
>
> 289>Microsoft (R) 32-bit C/C++ Optimizing Compiler Version
> 289>15.00.21022.08
> for 80x86
>
> 289>Copyright (C) Microsoft Corporation.  All rights reserved.
>
> 289>usage: cl [ option... ] filename... [ /link linkoption... ]
>
> 289>Warning:
>
> 289>Compiler "cl" specified, but more than one of MSVC 6, 7, 7.1, 8,
> 289>9, and
> 10 are installed.
>
> 289>Please specify "msvc6", "msvc7", "msvc71", "msvc8", "msvc8ex",
> 289>"msvc9",
> or "msvc10" for the GCCXML_COMPILER setting.
>
> 289>Using MSVC 9 because it was used to build GCC-XML.
>
> 289>Error: Could not run
> D:/packages/builds/itk-nightly-x86/Wrapping/Generators/GccXML/gccxml/bin/gccxml_cc1plus.exe:
>
> 289>The filename or extension is too long
>
> 289>Project : error PRJ0019: A tool returned an error code from
> 289>"Generating
> itkErodeObjectMorphologyImageFilter.xml"
>
>
>
>
>
>
> ________________________________
> The information contained in this message may be confidential and
> legally protected under applicable law. The message is intended solely
> for the addressee(s). If you are not the intended recipient, you are
> hereby notified that any use, forwarding, dissemination, or
> reproduction of this message is strictly prohibited and may be
> unlawful. If you are not the intended recipient, please contact the
> sender by return e-mail and destroy all copies of the original message.
>
> _____________________________________
> 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
>

________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.



More information about the Insight-users mailing list