[Insight-users] problem building examples

Alexandra Badea alex at orion.duhs.duke.edu
Wed, 28 Apr 2004 12:37:05 -0400


--Apple-Mail-1--363673033
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed

Greetings!

I have recently installed ITK on MAC OSX 10.3.3. Or at least I thought  
so..
Apparently itk was build without errors and I have also build the  
Applications.
Then I wanted to look at the examples from  
InsightToolkit-1.6.0/Examples/IO and realized I have to build them.
I used CMAKE and then make. It seems that the program does not know  
where to look for the files to include and make fails.
I had to change the cmake_cxx_flags in cmake and add the paths to each  
of the *.h files it looks for but this process does not end.
Can you please indicate me if/where am I doing something wrong?

Many thanks!

Alexandra Badea

------the cmake flags I changed---
  //Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING='  
-I/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/IO  
-I/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common  
-I/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Utilities/ 
vxl/core  
-I/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Utilities/ 
vxl/vcl -I/Users/alex/software/itk/itk_binary '

---a sample of the error messages I get-----

[ithaka:InsightToolkit-1.6.0/Examples/IO] alex% make
Building dependencies. cmake.depends...
cmake.depends is up-to-date
Building object file CovariantVectorImageExtractComponent.o...
In file included from  
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/ 
itkPoint.h:20,
                  from  
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/ 
itkImageBase.h:29,
                  from  
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/ 
itkImage.h:20,
                  from  
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/ 
itkImageSource.h:24,
                  from  
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/IO/ 
itkImageFileReader.h:21,
                  from  
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Examples/IO/ 
CovariantVectorImageExtractComponent.cxx:37:
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/ 
itkVector.h:21:32: vnl/vnl_vector_ref.h: No such file or directory
In file included from  
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/ 
itkPoint.h:20,
                  from  
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/ 
itkImageBase.h:29,
                  from  
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/ 
itkImage.h:20,
                  from  
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/ 
itkImageSource.h:24,
                  from  
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/IO/ 
itkImageFileReader.h:21,
                  from  
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Examples/IO/ 
CovariantVectorImageExtractComponent.cxx:37:
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/ 
itkVector.h:84: error: parse
    error before `&' token
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/ 
itkVector.h:87: error: parse
    error before `)' token
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/ 
itkVector.h:90: error: parse
    error before `)' token

--cut here---
--------


--Apple-Mail-1--363673033
Content-Transfer-Encoding: 7bit
Content-Type: text/enriched;
	charset=US-ASCII

Greetings!


I have recently installed ITK on MAC OSX 10.3.3. Or at least I thought
so..

Apparently itk was build without errors and I have also build the
Applications.

Then I wanted to look at the examples from
InsightToolkit-1.6.0/Examples/IO and realized I have to build them.

I used <italic>CMAKE</italic> and then <italic>make</italic>. It seems
that the program does not know where to look for the files to include
and <italic>make</italic> fails.

I had to change the cmake_cxx_flags in cmake and add the paths to each
of the *.h files it looks for but this process does not end.

Can you please indicate me if/where am I doing something wrong?


Many thanks!


Alexandra Badea

 

------the cmake flags I changed---

 //Flags used by the compiler during all build types.

CMAKE_CXX_FLAGS:STRING='
-I/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/IO
-I/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common
-I/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Utilities/vxl/core
-I/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Utilities/vxl/vcl
-I/Users/alex/software/itk/itk_binary ' 


---a sample of the error messages I get-----


[ithaka:InsightToolkit-1.6.0/Examples/IO] alex% make

Building dependencies. cmake.depends...

cmake.depends is up-to-date

Building object file CovariantVectorImageExtractComponent.o...

In file included from
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkPoint.h:20,

                 from
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkImageBase.h:29,

                 from
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkImage.h:20,

                 from
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkImageSource.h:24,

                 from
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/IO/itkImageFileReader.h:21,

                 from
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Examples/IO/CovariantVectorImageExtractComponent.cxx:37:

/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkVector.h:21:32:
vnl/vnl_vector_ref.h: No such file or directory

In file included from
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkPoint.h:20,

                 from
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkImageBase.h:29,

                 from
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkImage.h:20,

                 from
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkImageSource.h:24,

                 from
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/IO/itkImageFileReader.h:21,

                 from
/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Examples/IO/CovariantVectorImageExtractComponent.cxx:37:

/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkVector.h:84:
error: parse

   error before `&' token

/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkVector.h:87:
error: parse

   error before `)' token

/Users/alex/software/itk/itk_source/InsightToolkit-1.6.0/Code/Common/itkVector.h:90:
error: parse

   error before `)' token


--cut here---

--------



--Apple-Mail-1--363673033--