[Insight-users] Mac OS X and ITK ... just don't get it
David Cole
david.cole at kitware.com
Thu Nov 29 18:24:19 EST 2007
Run "ccmake" instead of "cmake" to get the interactive configuration for the
projects.
This will get you farther... then you can ask more questions (if necessary)
to get to the next step.
HTH,
David
On 11/29/07, Rable24 <dmorofke at gmail.com> wrote:
>
>
> Just don't get it. I'm trying to install ITK on my Mac and there really
> isn't any wiki / help available for this. I've got OS X 10.4.11, cmake
> 2.4-p7 and gcc 4.0.1 on my machine. The process I figured I should do is:
>
> Unarchive
> Change to "InsightToolKit-3.4.0"
> Run: 'cmake .'
> Run: 'make .'
> Run: 'sudo make install' or optionally 'sudo make install/fast'
>
> 1st issue: When I run cmake . it gives me no prompt or any options so I'm
> not entirely sure where it's going to install to. The Unix wiki's show
> some
> sort of menu.
> 2nd issue: It installs! Hazah! ... But doesn't work?
>
> To expand on this 2nd issue, the compile works like a charm, all the
> binaries are sitting in ~/InsightToolKit-3.4.0/bin and work great. Now,
> when I change into the examples/IO directory and run cmake (works great
> again ...) and then make I get:
>
> [ 3%] Building CXX object
> CMakeFiles/ComplexImageReadWrite.dir/ComplexImageReadWrite.o
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:49:22:
> error: itkImage.h: No such file or directory
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:50:32:
> error: itkImageFileReader.h: No such file or directory
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:51:32:
> error: itkImageFileWriter.h: No such file or directory
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:
> In function 'int main(int, char**)':
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:61:
> error: 'cerr' is not a member of 'std'
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:62:
> error: 'cerr' is not a member of 'std'
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:79:
> error: 'itk' has not been declared
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:79:
> error: expected initializer before '<' token
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:93:
> error: 'itk' has not been declared
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:93:
> error: expected initializer before '<' token
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:94:
> error: 'itk' has not been declared
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:94:
> error: expected initializer before '<' token
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:96:
> error: 'ReaderType' has not been declared
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:96:
> error: 'Pointer' was not declared in this scope
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:96:
> error: expected `;' before 'reader'
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:97:
> error: 'WriterType' has not been declared
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:97:
> error: expected `;' before 'writer'
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:111:
> error: 'reader' was not declared in this scope
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:112:
> error: 'writer' was not declared in this scope
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:146:
> error: 'itk' has not been declared
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:146:
> error: expected type-specifier
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:146:
> error: expected `)' before '&' token
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:146:
> error: expected `{' before '&' token
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:146:
> error: 'err' was not declared in this scope
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:146:
> error: expected `;' before ')' token
> /Users/darren3m/Desktop/InsightToolkit-3.4.0
> /Examples/IO/ComplexImageReadWrite.cxx:167:
> error: expected `}' at end of input
> make[2]: ***
> [CMakeFiles/ComplexImageReadWrite.dir/ComplexImageReadWrite.o]
> Error 1
> make[1]: *** [CMakeFiles/ComplexImageReadWrite.dir/all] Error 2
> make: *** [all] Error 2
>
> Which just leaves me scratching my head because A) It already has
> successfully complied this files B) Since the install worked, it should
> have
> these files in the Include directory / even if not the CMakeList file
> should
> reference them somehow, no ?
>
> Confused ... Any help would be appreciated.
>
> --
> View this message in context:
> http://www.nabble.com/Mac-OS-X-and-ITK-...-just-don%27t-get-it-tf4900566.html#a14037210
> Sent from the ITK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Insight-users mailing list
> 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/20071129/0d56049e/attachment-0001.htm
More information about the Insight-users
mailing list