[Insight-users] Problems Compiling on Solaris
Miller, James V (Research)
millerjv at crd.ge.com
Thu Jul 22 08:59:06 EDT 2004
If you set the environment variable CXX and CC before running CMake,
then CMake will generate Makefiles using the specified compiler.
You'll probably need to wipe out your CMakeCache.txt. A safer thing would
be to start with a new build tree that will use the mpiCC compiler.
mkdir Insight-mpi
cd Insight-mpi
setenv CC mpicc
setenv CXX mpiCC
cmake ../Insight
make
-----Original Message-----
From: Chris Gammage [mailto:damage at wayne.edu]
Sent: Thursday, July 22, 2004 12:27 AM
To: insight-users at itk.org
Subject: [Insight-users] Problems Compiling on Solaris
Hi, I've created a command line application that uses the ITK segmentation
libraries on images. It also uses mpich. I created a CMakeLists.txt file
that
works properly, and then I modified it to include mpi libraries and
includes.
For the mpi, I need to compile with mpiCC so I replaced all the c++ calls in
the Makefile to the location of mpiCC, but sometimes the Makefile gets
rewritten by CMake, does anyone know how to set mpiCC as the default for
CMake and how set includes and libraries in CMakeLists.txt?
My Second question.
I've compiled the program successfully on a linux box with gcc 3.3
but, now i've loaded it onto a Solaris box and I keep getting a bunch of
these
compile errors.
"/export/home3/berator/InsightToolkit-1.6.0/Utilities/vxl/core/vnl/vnl_numer
ic_traits.h",
line 352: Error: A member cannot be initialized except in a constructor.
all the errors are this or like
"/export/home3/berator/InsightToolkit-1.6.0/Utilities/vxl/core/vnl/vnl_numer
ic_traits.h"
Error: Use ";" to terminate declarations.
Any help is appreciated!
thanks in advance
Chris
_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list