[Cmake] Re: [vtkusers] Error while building VTK 4.2.1 with CMake on Linux
Joseph Barraud
jbar02 at esc.cam.ac.uk
Mon Mar 10 11:03:20 EST 2003
Hi,
Thanks for your answer.
I am using the latest version of Cmake (1.6.5). My purpose is to instal ITK
with all the available options and demonstration applications. So I started
with the installation of Cmake, then GCC_XML, Cable and FLTK (with the
options shared libraries and threads activated). So I am at the "VTK
stage". Everything worked fine so far (I hope so).
To run the process, I have "untared" the source file, then I made a
directory vtk-build. I launched ccmake from this directory with:
ccmake ../VTK-4.2.1
The error occurs before the display of all the options in ccmake.
I have the latest Mandrake (gcc 3.2.2) and I have installed almost
everything concerning development. I do have pthread.h in /usr/include and
a number of files called thread-something in various places. I don't
understand what's wrong with this pthread_create that seems to be a very
basic function.
Joseph.
At 10:30 10/03/2003 -0500, you wrote:
>I am not sure how you are getting this error.
>What version of cmake are you using, and exactly how
>are you running it?
>
>-Bill
>
>
>At 06:56 PM 3/6/2003, Joseph Barraud wrote:
>
>
> >Dear all,
> >
> >I am on Linux Mandrake 9.1 and CMake gives me the following error
> message when I try to configure the makefiles for the building of VTK
> 4.2.1 (i.e. with ccmake, before the display of the list of options):
> >
> >Determining if the function pthread_create exists in the pthreads failed
> with the following output:
> >echo "Building object file CheckFunctionExists.o..."
> >Building object file CheckFunctionExists.o...
> >gcc -o
> CheckFunctionExists.o -DCHECK_FUNCTION_EXISTS=pthread_create
> -I/home/joseph/ITK_Stuff/VTK/vtk-build/CMakeTmp -c
> /usr/local/share/CMake/Modules/CheckFunctionExists.c
> >echo "Building executable cmTryCompileExec..."
> >Building executable cmTryCompileExec...
> >gcc -rdynamic -DCHECK_FUNCTION_EXISTS=pthread_create
> CheckFunctionExists.o -o cmTryCompileExec -rdynamic -lpthreads
> >/usr//bin/ld: cannot find -lpthreads
> >collect2: ld returned 1 exit status
> >gmake: *** [cmTryCompileExec] Erreur 1
> >
> >Do you understand the problem ?
> >
> >Many thanks,
> >Joseph.
More information about the CMake
mailing list