[Insight-users] itk java bindings with VS 2005 Express

Aron Helser helser at 3rdtech.com
Mon Feb 4 16:09:56 EST 2008


I am unable to compile the Java wrappings for Itk using VS 2005
Express. Is this a known problem?

I've successfully compiled itk, and I have successfully used 
Cmake/CableSwig to
generate the project files that include the wrapping projects. However,
when it tries to compile, for instance, ITKCommonAJava project, I get
the errors below.

I believe the warning is harmless, because I want it to use MSVC 8. The
problem seems to be that it can't find "windows.h"

But I can compile Itk proper, which _can_ find windows.h

So what additional process is going on that causes it to loose the
include directory for windows.h?

-------------------------
wrap_itkVector.xml from
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762
for 80x86
Copyright (C) Microsoft Corporation.  All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
Warning:
Compiler "cl" specified, but more than one of MSVC 6, 7, 7.1, and 8 are
installed.
Please specify "msvc6", "msvc7", "msvc71", or "msvc8" for the
GCCXML_COMPILER setting.
Using MSVC 8 because it was used to build GCC-XML.
In file included from
C:/MagicConsulting/itk/InsightToolkit-3.4.0/Code/Common/itkSimpleFastMutexLock.h:34,
                 from
C:/MagicConsulting/itk/InsightToolkit-3.4.0/Code/Common/itkLightObject.h:23,
                 from
C:/MagicConsulting/itk/InsightToolkit-3.4.0/Code/Common/itkObject.h:23,
                 from
C:/MagicConsulting/itk/InsightToolkit-3.4.0/Code/Common/itkVector.txx:24,
                 from
C:/MagicConsulting/itk/InsightToolkit-3.4.0/Code/Common/itkVector.h:273,
                 from
C:/MagicConsulting/itk/InsightToolkit-3.4.0/Wrapping/CSwig/CommonA/wrap_itkVector.cxx:17:
C:/MagicConsulting/itk/InsightToolkit-3.4.0/Code/Common/itkWindows.h:25:21:
windows.h: No such file or directory
C:/MagicConsulting/itk/InsightToolkit-3.4.0/Code/Common/itkWindows.h:26:21:
winbase.h: No such file or directory

[snip - 2 more like that, plus syntax errors from missing types. ]

Project : error PRJ0019: A tool returned an error code from
"wrap_itkVector.xml from "
Build log was saved at ....
ITKCommonAJava - 4 error(s), 0 warning(s)

Thanks,
Aron



More information about the Insight-users mailing list