[Insight-users] Problem compiling ITK 3.4.0

Luis Ibanez luis.ibanez at kitware.com
Mon Dec 3 21:30:54 EST 2007


Hi Kendra,

You may have the libphthread shared library, but you are still missing
the headers for the library.

You should install the development package.
Currently you seem to be missing the declarations of the functions
related to pthreads.


     Luis


---------------
Kendra wrote:
> Finally results that the version 2.7 of glibc, that i have got intalled, 
> has libpthred included and installed in /usr/lib/libpthread.so and in 
> /lib/libpthread-2.7.so <http://2.7.so>) but  ITK-3.4.0 continue without 
> compiling. Any ideas?
> 
> 2007/12/2, Kendra <kendracorreo at gmail.com <mailto:kendracorreo at gmail.com>>:
> 
>     Thanks. The package in Gentoo is called libpthread-stubs and because
>     of this I don't found it.
> 
>     2007/12/2, Luis Ibanez < luis.ibanez at kitware.com
>     <mailto:luis.ibanez at kitware.com>>:
> 
>         Hi Kendra
> 
>         You seem to be missing the pthreads library in your installation
>         of GNU/Linux.
> 
>         Use your favorite linux package manager and install the
>         libpthread2 package.
> 
>         In some systems the package will be "libpthread2";
>         in others it might be "libpthread2".
> 
> 
>            Regards,
> 
> 
>                 Luis
> 
> 
>         ----------------------------------------------------------------------
>         On 12/2/07, Kendra < kendracorreo at gmail.com
>         <mailto:kendracorreo at gmail.com>> wrote:
>>  I've got a problem compiling 3.4.0 version of ITK in Gentoo
>         Linux with gcc
>>  4.1.2. The error is the following:
>>
>>  [  45%] Building CXX object Code/Common/CMakeFiles/ITKCommon.dir
>>  /itkMultiThreader.o
>>  /home/kendra/ITK- 3.4.0/Code/Common/itkMultiThreader.cxx: In
>         member function
>>  'void itk::MultiThreader::MultipleMethodExecute()':
>>  /home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:568:
>         error:
>>  'pthread_attr_create' no se declaró en este ámbito
>>  /home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:584:
>         error: no se
>>  puede convertir 'pthread_attr_t' a 'const pthread_attr_t*'
>         para el argumento
>>  '2' para 'int pthread_create(pthread_t*, const
>         pthread_attr_t*, void*
>>  (*)(void*), void*)'
>>  /home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx: In
>         member function
>>  'int itk::MultiThreader::SpawnThread(void* (*)(void*), void*)':
>>  /home/kendra/ITK- 3.4.0/Code/Common/itkMultiThreader.cxx:686:
>         error:
>>  'pthread_attr_create' no se declaró en este ámbito
>>  /home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:697:
>         error: no se
>>  puede convertir 'pthread_attr_t' a 'const pthread_attr_t*'
>         para el argumento
>>  '2' para 'int pthread_create(pthread_t*, const
>         pthread_attr_t*, void*
>>  (*)(void*), void*)'
>>  /home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx: In
>         member function
>>  'itk::ThreadProcessIDType
>>
>         itk::MultiThreader::DispatchSingleMethodThread(itk::MultiThreader::ThreadInfoStruct*)':
>>  /home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:888:
>         error:
>>  'pthread_attr_create' no se declaró en este ámbito
>>  /home/kendra/ITK-3.4.0/Code/Common/itkMultiThreader.cxx:899:
>         error: no se
>>  puede convertir 'pthread_attr_t' a 'const pthread_attr_t*'
>         para el argumento
>>  '2' para 'int pthread_create(pthread_t*, const
>         pthread_attr_t*, void*
>>  (*)(void*), void*)'
>>  make[2]: ***
>         [Code/Common/CMakeFiles/ITKCommon.dir/itkMultiThreader.o] Error
>>  1
>>  make[1]: *** [Code/Common/CMakeFiles/ITKCommon.dir/all] Error 2
>>  make: *** [all] Error 2
>>
>>  Thanks.
>>
>>
>>  --
>>  Esther.
>>
> 
> 
> 
> 
>     -- 
>     Esther. 
> 
> 
> 
> 
> -- 
> Esther.


More information about the Insight-users mailing list