[Insight-users] cmake errors

Julien Jomier jjomier at cs.unc.edu
Thu Oct 28 12:23:43 EDT 2004


Hi Tina,

This is perfectly normal.
Basically, CMake tries to compile sample programs to determine the optimal
configuration (compiler flags, etc...) for ITK depending on your platform
and environment.
The file you are looking at (CmakeError.log) contains the results of the
TryCompile() command used by CMake when the compilation of these sample
programs fails, which is a normal behavior. For instance, CMake tries to see
if "pthread_create" exists and because the compilation fails, it determines
that it does not on your platform.

That said, did you sucessfully compiled ITK on your linux box?

hope that helps,

Julien

-----Original Message-----
From: insight-users-bounces at itk.org [mailto:insight-users-bounces at itk.org]
On Behalf Of Tina Wang
Sent: Wednesday, October 27, 2004 3:25 PM
To: insight-users at itk.org
Subject: [Insight-users] cmake errors


Hi,All,

I was compiling the itk  in a linux box and got the following errors. Could
anyone give a hints about these errors?

Thanks,

Tina

 more CMakeError.log
Determining the endianes of the system passed. The system is big endianTest
produced following output:
Building object file TestBigEndian.o...
gcc -o TestBigEndian.o           -I/mnt/SRC/ImgProcPackages/itkbin/CMakeTmp
-c /usr/local/share/CMake/Modules/TestBigEndian.c
Building executable
/mnt/SRC/ImgProcPackages/itkbin/CMakeTmp/cmTryCompileExec...
gcc             -fPIC  TestBigEndian.o    -o
/mnt/SRC/ImgProcPackages/itkbin/CMakeTmp/cmTryCompileExec -rdynamic

Determining if the function pthread_create exists in the pthreads failed
with the following output:
Building object file CheckFunctionExists.o...
gcc -o CheckFunctionExists.o          -DCHECK_FUNCTION_EXISTS=pthread_create
-I/mnt/SRC/ImgProcPackages/itkbin/CMakeTmp    -c /usr/l
ocal/share/CMake/Modules/CheckFunctionExists.c
Building executable
/mnt/SRC/ImgProcPackages/itkbin/CMakeTmp/cmTryCompileExec...
gcc            -DCHECK_FUNCTION_EXISTS=pthread_create -fPIC
CheckFunctionExists.o    -o /mnt/SRC/ImgProcPackages/itkbin/CMakeTmp/cm
TryCompileExec -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: ld returned 1 exit status
gmake: *** [/mnt/SRC/ImgProcPackages/itkbin/CMakeTmp/cmTryCompileExec] Error
1

Value of the 22nd bit of a 32-bit quiet-NaN is 1TestQnanhibit.c produced
following output:
Building object file TestQnanhibit.o...
gcc -o TestQnanhibit.o           -I/mnt/SRC/ImgProcPackages/itkbin/CMakeTmp
-c /mnt/SRC/ImgProcPackages/Insight1.8.0/CMake/TestQn
anhibit.c
Building executable
/mnt/SRC/ImgProcPackages/itkbin/CMakeTmp/cmTryCompileExec...
gcc             -fPIC  TestQnanhibit.o    -o
/mnt/SRC/ImgProcPackages/itkbin/CMakeTmp/cmTryCompileExec -rdynamic

Performing Test VCL_FOR_SCOPE_HACK failed with the following output:
Building object file vxl_platform_tests.o...
c++ -o vxl_platform_tests.o          -ftemplate-depth-50
-DVCL_FOR_SCOPE_HACK -I/mnt/SRC/ImgProcPackages/itkbin/CMakeTmp    -c /mnt
/SRC/ImgProcPackages/Insight1.8.0/Utilities/vxl/config/cmake/config/vxl_plat
form_tests.cxx
Building executable
/mnt/SRC/ImgProcPackages/itkbin/CMakeTmp/cmTryCompileExec...
c++             -ftemplate-depth-50  -DVCL_FOR_SCOPE_HACK -fPIC
vxl_platform_tests.o    -o /mnt/SRC/ImgProcPackages/itkbin/CMakeTmp
/cmTryCompileExec -rdynamic
/usr/lib/gcc-lib/i386-redhat-linux/3.3.2/../../../crt1.o(.text+0x18): In
function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
gmake: *** [/mnt/SRC/ImgProcPackages/itkbin/CMakeTmp/cmTryCompileExec] Error
1



Do you Yahoo!?
Y! Messenger - Communicate in real time. Download now.



More information about the Insight-users mailing list