samedi 26 février 2022

when build elasticfusion ,error about pthread,

termination shows:

-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
-- Found CUDA: /usr (found version "10.1") 
-- Found SuiteSparse

and the camke errorlog shows:

Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/csl/wenjin/ElasticFusion/Core/build/CMakeFiles/CMakeTmp

Run Build Command(s):/usr/bin/make cmTC_6d9a0/fast && /usr/bin/make -f CMakeFiles/cmTC_6d9a0.dir/build.make CMakeFiles/cmTC_6d9a0.dir/build
make[1]: 进入目录“/home/csl/wenjin/ElasticFusion/Core/build/CMakeFiles/CMakeTmp”
Building C object CMakeFiles/cmTC_6d9a0.dir/src.c.o
/usr/bin/cc   -DCMAKE_HAVE_LIBC_PTHREAD   -o CMakeFiles/cmTC_6d9a0.dir/src.c.o   -c /home/csl/wenjin/ElasticFusion/Core/build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_6d9a0
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_6d9a0.dir/link.txt --verbose=1
/usr/bin/cc  -DCMAKE_HAVE_LIBC_PTHREAD    -rdynamic CMakeFiles/cmTC_6d9a0.dir/src.c.o  -o cmTC_6d9a0 
/usr/bin/ld: CMakeFiles/cmTC_6d9a0.dir/src.c.o: in function `main':
src.c:(.text+0x3e): undefined reference to `pthread_create'
/usr/bin/ld: src.c:(.text+0x4a): undefined reference to `pthread_detach'
/usr/bin/ld: src.c:(.text+0x5b): undefined reference to `pthread_join'
collect2: error: ld returned 1 exit status
make[1]: *** [CMakeFiles/cmTC_6d9a0.dir/build.make:87:cmTC_6d9a0] 错误 1
make[1]: 离开目录“/home/csl/wenjin/ElasticFusion/Core/build/CMakeFiles/CMakeTmp”
make: *** [Makefile:121:cmTC_6d9a0/fast] 错误 2

although I have search many methods to solve it, it does nothing ,could you help me?

I've seen that Doxygen needs to be installed before, but I'm sure I've installed it and added header files. I don't know what else can be done

Aucun commentaire:

Enregistrer un commentaire