[Insight-users] Problem compiling ITK 3.4.0

Kendra kendracorreo at gmail.com
Sun Dec 2 11:50:50 EST 2007


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) but  ITK-3.4.0 continue without compiling. Any
ideas?

2007/12/2, Kendra <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 >:
> >
> > 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.




-- 
Esther.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20071202/296a58e3/attachment.htm


More information about the Insight-users mailing list