Talk:ITK/FAQ: Difference between revisions

From KitwarePublic
Jump to navigationJump to search
m (Reverted edit of Boomer, changed back to last version by Xavier)
(How to compile ITK with icc??)
Line 10: Line 10:
Line: 244
Line: 244
Description: itk::ERROR: RecursiveGaussianImageFilter(0x81840e0): The number of pixels along direction 2 is less than 4. This filter requires a minimum of four pixels along the dimension to be processed.'''
Description: itk::ERROR: RecursiveGaussianImageFilter(0x81840e0): The number of pixels along direction 2 is less than 4. This filter requires a minimum of four pixels along the dimension to be processed.'''
== How to compile ITK with icc?? ==
Hi,all
    I'm trying to compile ITK with icc9.1, but it doesn't sucessed.
The ITK version is the newest one, 3.2.0, and CMAKE is 2.4.7. 
    I've set the environment CC=icc and CXX=icc.  When using cmake to generate Makefile, even a simple test of compiler can't passed.  The error messages are list below.  Is there anyone who can tell me what's the problem and how to fix it?
    Thanks a lot!!
Error messages:
CMake Error: The C++ compiler "/opt/intel/cc/9.1.039/bin/icc" is not able to compile a simple test program.
It fails with the following output:
  /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/localdisk/xulin/itk/itk-icc/CMakeFiles/CMakeTmp'
/home/workload/bin/bin/cmake -E cmake_progress_report /home/workload/xulin/itk/itk-icc/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o
/opt/intel/cc/9.1.039/bin/icc  -g    -o CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o -c
/home/workload/xulin/itk/itk-icc/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTryCompileExec
/home/workload/bin/bin/cmake -P CMakeFiles/cmTryCompileExec.dir/cmake_clean_target.cmake
/opt/intel/cc/9.1.039/bin/icc    -g    -fPIC "CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o"  -o cmTryCompileExec
-rdynamic
CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
make[1]: *** [cmTryCompileExec] Error 1
make[1]: Leaving directory `/localdisk/xulin/itk/itk-icc/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2

Revision as of 07:30, 13 August 2007

Hello how are you, my name es Xavier i was trying to run DeformableRegistration7(of examples) and it catched this exception. I hope somebady help me. my email is javier_silva_bravo@hotmail.com thank you.


itk::ExceptionObject (0x8184f28) Location: "Unknown" File: /home/aldrin/InsightToolkit-2.0.0/Code/BasicFilters/itkRecursiveSeparableImageFilter.txx Line: 244 Description: itk::ERROR: RecursiveGaussianImageFilter(0x81840e0): The number of pixels along direction 2 is less than 4. This filter requires a minimum of four pixels along the dimension to be processed.

How to compile ITK with icc??

Hi,all

   I'm trying to compile ITK with icc9.1, but it doesn't sucessed.

The ITK version is the newest one, 3.2.0, and CMAKE is 2.4.7.

   I've set the environment CC=icc and CXX=icc.  When using cmake to generate Makefile, even a simple test of compiler can't passed.  The error messages are list below.  Is there anyone who can tell me what's the problem and how to fix it?
   Thanks a lot!!

Error messages:

CMake Error: The C++ compiler "/opt/intel/cc/9.1.039/bin/icc" is not able to compile a simple test program.
It fails with the following output:
 /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build
make[1]: Entering directory `/localdisk/xulin/itk/itk-icc/CMakeFiles/CMakeTmp'
/home/workload/bin/bin/cmake -E cmake_progress_report /home/workload/xulin/itk/itk-icc/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o
/opt/intel/cc/9.1.039/bin/icc   -g     -o CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o -c
/home/workload/xulin/itk/itk-icc/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
Linking CXX executable cmTryCompileExec
/home/workload/bin/bin/cmake -P CMakeFiles/cmTryCompileExec.dir/cmake_clean_target.cmake
/opt/intel/cc/9.1.039/bin/icc    -g    -fPIC "CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o"   -o cmTryCompileExec
-rdynamic
CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.o(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
make[1]: *** [cmTryCompileExec] Error 1
make[1]: Leaving directory `/localdisk/xulin/itk/itk-icc/CMakeFiles/CMakeTmp'
make: *** [cmTryCompileExec/fast] Error 2