[Insight-users] Trouble building ITK on SunOS
Matt Kelsey
mkelsey at gmail.com
Thu Aug 9 14:48:08 EDT 2007
Luis,
Thanks for your response. I've implemented your suggestions with no change
in the results.
I've set CC and CXX to /usr/local/bin/gcc and /usr/local/bin/c++
respectively. I also set the ITK_SOURCE_DIR and ITK_BINARY_DIR variables
for good measure although I've built fine without these set before. From
the cvs checkout, I deleted and recreated the binary files and performed a
make as before. I diff-ed the results and found them to be exactly the
same. I repeated the entire operation with CXX set to /usr/local/bin/g++ -
no changes in output.
>From the error file, the problem seems to be coming from problems in the
system header files. I've not compiled on this machine before so I don't
know if it's ever been configured properly. Thanks for your help and let me
know if you have any other suggestions.
Regards,
Matt
On 8/8/07, Luis Ibanez <luis.ibanez at kitware.com> wrote:
>
>
> Hi Matt,
>
> Thanks for letting us know.
>
> Please destroy the binary directory where you are building ITK,
> and follow the build instructions described in the ITK Software Guide
>
> http://www.itk.org/ItkSoftwareGuide.pdf
>
> In particular, please make sure that you set the environment variables
> CC and CXX to the C and C++ compilers respectively, *BEFORE* you run
> ccmake.
>
>
> Regards,
>
>
> Luis
>
>
> ----------------------
> Matt Kelsey wrote:
> > Hi Luis,
> >
> > I'm using the latest cvs checkout (earlier today) of ITK and the output
> > of the commands are:
> >
> > /grad2/kelsey-41> echo $CC
> > CC: Undefined variable
> > /grad2/kelsey-42> echo $CXX
> > CXX: Undefined variable
> >
> > however I see that in the advanced cmake configuration that:
> > CMAKE_CXX_COMPILER == /usr/local/bin/c++
> > and
> > CMAKE_C_COMPILER == /usr/local/bin/gcc
> >
> > Any thoughts?
> >
> > Thanks,
> > Matt
> >
> >
> >
> > On 8/8/07, *Luis Ibanez* <luis.ibanez at kitware.com
> > <mailto:luis.ibanez at kitware.com>> wrote:
> >
> >
> > Hi Matt,
> >
> >
> > 1) What version of ITK are you using ?
> >
> >
> > 2) What are the output of the following commands?
> >
> > echo $CC
> > echo $CXX
> >
> >
> >
> > It looks like you are using the C compiler instead
> > of the C++ compiler.
> >
> >
> >
> > Please let us know about the two questions above.
> >
> >
> > Thanks
> >
> >
> > Luis
> >
> >
> > ----------------
> > Matt Kelsey wrote:
> > > Hello all,
> > > I'm having trouble building ITK on a new machine. Here are the
> > uname -a
> > > specs.
> > > SunOS arktos 5.10 Generic_125100-10 sun4u sparc
> SUNW,Sun-Fire-V445
> > > Some other info:
> > > make --version -> GNU Make 3.80
> > > /usr/local/bin/gcc --version -> gcc (GCC) 3.3
> > > /usr/local/bin/c++ --version -> c++ (GCC) 3.3
> > >
> > > I've configured the project with ccmake version 2.4-patch 6 and
> > turned
> > > Examples/Test/Shared Libs off, build type Release. No problems
> with
> > > ccmake.
> > >
> > > I run into trouble during the make on:
> Utilities/MetaIO/CMakeFiles
> > > /ITKMetaIO.dir/metaUtils.o
> > >
> > > I've included the stdout and stderr. Any suggestions would be
> > appreciated.
> > >
> > > Thanks,
> > > Matt Kelsey
> > >
> > > link to stderr
> > > =========================================
> > > http://www.engr.siu.edu/grad2/kelsey/debug/make.err.txt
> > > <http://www.engr.siu.edu/grad2/kelsey/debug/make.err.txt
> > <http://www.engr.siu.edu/grad2/kelsey/debug/make.err.txt>>
> > >
> > >
> > > link to stdout
> > > =========================================
> > > http://www.engr.siu.edu/grad2/kelsey/debug/make.output.txt
> > <http://www.engr.siu.edu/grad2/kelsey/debug/make.output.txt>
> > >
> > >
> > >
> >
> ------------------------------------------------------------------------
> > >
> > > _______________________________________________
> > > Insight-users mailing list
> > > Insight-users at itk.org <mailto:Insight-users at itk.org>
> > > http://www.itk.org/mailman/listinfo/insight-users
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070809/c82360a3/attachment.htm
More information about the Insight-users
mailing list