[Insight-users] Problem compiling ITK 3.4.0

Kendra kendracorreo at gmail.com
Sun Dec 2 08:51:29 EST 2007


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>:
>
> 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> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20071202/c3b10ae5/attachment.html


More information about the Insight-users mailing list