[Insight-users] Re: ITK/VTK question : SUN Compiler

Luis Ibanez luis.ibanez at kitware.com
Tue Sep 28 18:27:25 EDT 2004


Hi Brian,

I'm afraid that the only compiler that we are supporting in
the Sun workstations is GCC.  We will be receving a new Sun
workstation in a couple of weeks and may use it to try the
new version of their compiler. However it may take a couple
of months before the code gets adapted to a new compiler,
(assuming that it is possible at all...)

Something that you can do is to package ITK pipelines inside
C-language functions. Build them with GCC and invoke them
from your project built with the Sun native compiler.
This is equivalent to creating plugins.

You may find interesting to look at the Tutorials

      http://www.itk.org/HTML/Tutorials.htm

In particular to

http://www.itk.org/CourseWare/Training/GettingStarted-V.pdf

Where you will find details on how to package ITK pipelines
in inside C functions to be called from your application.



    Regards,


       Luis



--------------------
Brian Kolaci wrote:

> Hi,
> 
> I saw your response to a post on the Insight-users list
> about the Sun compiler.  This had to do with a compile problem
> which I'm also seeing.
> 
> You had suggested to use gcc.  I'm actually stuck as I'm *only allowed* to
> use the sun compiler (Studio 9, which is the latest) and was wondering
> if you had a work-around for the problem.
> 
> Here's the compiler error:
> 
> Building object file Templates/vnl_convolve+double.double-.o...
> "/raid3/Sun-UK/bk-new/dist/vxl-1.1.0/core/vnl/algo/vnl_convolve.txx", line
> 80: Error: The name has_only_primefactors_2_3_5(int) is unusable in
> vnl_convolve_using_fft<double, double, double>(const vnl_vector<double>&,
> const vnl_vector<double>&, double*, int).
> "/raid3/Sun-UK/bk-new/dist/vxl-1.1.0/core/vnl/algo/Templates/vnl_convolve+double.double-.cxx",
> line 3:     Where: While instantiating "vnl_convolve<double, double,
> double>(const vnl_vector<double>&, const vnl_vector<double>&, double*,
> int)".
> "/raid3/Sun-UK/bk-new/dist/vxl-1.1.0/core/vnl/algo/Templates/vnl_convolve+double.double-.cxx",
> line 3:     Where: Instantiated from non-template code.
> 1 Error(s) detected.
> *** Error code 1
> The following command caused the error:
> CC -o Templates/vnl_convolve+double.double-.o  -DPNG_NO_STDIO
> -I/raid3/Sun-UK/bk-new/VXL/vcl -I/raid3/Sun-UK/bk-new/dist/vxl-1.1.0/vcl
> -I/raid3/Sun-UK/bk-new/VXL/core -I/raid3/Sun-UK/bk-new/dist/vxl-1.1.0/core
> -I/raid3/Sun-UK/bk-new/dist/vxl-1.1.0/v3p/netlib   -DVXL_WARN_DEPRECATED
> -DVXL_WARN_DEPRECATED_ONCE  -c
> /raid3/Sun-UK/bk-new/dist/vxl-1.1.0/core/vnl/algo/Templates/vnl_convolve+double.double-.cxx
> make: Fatal error: Command failed for target
> `Templates/vnl_convolve+double.double-.o'
> 
> 
> Any suggestions?
> 
> Thanks Alot (in advance...)
> 
> Brian Kolaci
> 
> 
> 






More information about the Insight-users mailing list