Re: Rtabmap error in process rtabmap/rgbd_odometry-1 - ubuntu on raspberry pi
Posted by kapilyadav on
URL: http://official-rtab-map-forum.206.s1.nabble.com/Rtabmap-error-in-process-rtabmap-rgbd-odometry-1-ubuntu-on-raspberry-pi-tp444p453.html
I reinstalled ubuntu & ros on my rpi but I got the same error. I tried manual method instead of catkin_make and I got error at cmake step. I am posting my CMakeError.log though I dont understand what is the exact cause -
Determining if the pthread_create exist failed with the following output:
Change Dir: /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec3439598982/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec3439598982.dir/build.make CMakeFiles/cmTryCompileExec3439598982.dir/build
make[1]: Entering directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec3439598982.dir/CheckSymbolExists.c.o
/usr/bin/cc -o CMakeFiles/cmTryCompileExec3439598982.dir/CheckSymbolExists.c.o -c /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c
Linking C executable cmTryCompileExec3439598982
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec3439598982.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTryCompileExec3439598982.dir/CheckSymbolExists.c.o -o cmTryCompileExec3439598982 -rdynamic
CMakeFiles/cmTryCompileExec3439598982.dir/CheckSymbolExists.c.o: In function `main':
CheckSymbolExists.c:(.text+0xe): undefined reference to `pthread_create'
CheckSymbolExists.c:(.text+0x12): undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
make[1]: Leaving directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec3439598982] Error 1
make: *** [cmTryCompileExec3439598982/fast] Error 2
File /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.c:
/* */
#include <pthread.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef pthread_create
return ((int*)(&pthread_create))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the function pthread_create exists in the pthreads failed with the following output:
Change Dir: /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec1356566678/fast"
/usr/bin/make -f CMakeFiles/cmTryCompileExec1356566678.dir/build.make CMakeFiles/cmTryCompileExec1356566678.dir/build
make[1]: Entering directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building C object CMakeFiles/cmTryCompileExec1356566678.dir/CheckFunctionExists.c.o
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create -o CMakeFiles/cmTryCompileExec1356566678.dir/CheckFunctionExists.c.o -c /usr/share/cmake-2.8/Modules/CheckFunctionExists.c
Linking C executable cmTryCompileExec1356566678
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTryCompileExec1356566678.dir/link.txt --verbose=1
/usr/bin/cc -DCHECK_FUNCTION_EXISTS=pthread_create CMakeFiles/cmTryCompileExec1356566678.dir/CheckFunctionExists.c.o -o cmTryCompileExec1356566678 -rdynamic -lpthreads
/usr/bin/ld: cannot find -lpthreads
collect2: error: ld returned 1 exit status
make[1]: Leaving directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec1356566678] Error 1
make: *** [cmTryCompileExec1356566678/fast] Error 2
Determining if the Q_WS_WIN exist failed with the following output:
Change Dir: /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec2145432255/fast"
make[1]: Entering directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTryCompileExec2145432255.dir/build.make CMakeFiles/cmTryCompileExec2145432255.dir/build
make[2]: Entering directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec2145432255.dir/CheckSymbolExists.cxx.o
/usr/bin/c++ -I/usr/include/qt4 -o CMakeFiles/cmTryCompileExec2145432255.dir/CheckSymbolExists.cxx.o -c /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function 'int main(int, char**)':
/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: 'Q_WS_WIN' was not declared in this scope
return ((int*)(&Q_WS_WIN))[argc];
^
make[2]: Leaving directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
make[2]: *** [CMakeFiles/cmTryCompileExec2145432255.dir/CheckSymbolExists.cxx.o] Error 1
make[1]: *** [cmTryCompileExec2145432255/fast] Error 2
make[1]: Leaving directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
File /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef Q_WS_WIN
return ((int*)(&Q_WS_WIN))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the Q_WS_QWS exist failed with the following output:
Change Dir: /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec907152250/fast"
make[1]: Entering directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTryCompileExec907152250.dir/build.make CMakeFiles/cmTryCompileExec907152250.dir/build
make[2]: Entering directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec907152250.dir/CheckSymbolExists.cxx.o
/usr/bin/c++ -I/usr/include/qt4 -o CMakeFiles/cmTryCompileExec907152250.dir/CheckSymbolExists.cxx.o -c /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function 'int main(int, char**)':
/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: 'Q_WS_QWS' was not declared in this scope
return ((int*)(&Q_WS_QWS))[argc];
^
make[2]: *** [CMakeFiles/cmTryCompileExec907152250.dir/CheckSymbolExists.cxx.o] Error 1
make[2]: Leaving directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
make[1]: Leaving directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec907152250/fast] Error 2
File /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef Q_WS_QWS
return ((int*)(&Q_WS_QWS))[argc];
#else
(void)argc;
return 0;
#endif
}
Determining if the Q_WS_MAC exist failed with the following output:
Change Dir: /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp
Run Build Command:/usr/bin/make "cmTryCompileExec2828261759/fast"
make[1]: Entering directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
/usr/bin/make -f CMakeFiles/cmTryCompileExec2828261759.dir/build.make CMakeFiles/cmTryCompileExec2828261759.dir/build
make[2]: Entering directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec2828261759.dir/CheckSymbolExists.cxx.o
/usr/bin/c++ -I/usr/include/qt4 -o CMakeFiles/cmTryCompileExec2828261759.dir/CheckSymbolExists.cxx.o -c /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx
/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx: In function 'int main(int, char**)':
/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:8:19: error: 'Q_WS_MAC' was not declared in this scope
return ((int*)(&Q_WS_MAC))[argc];
^
make[2]: *** [CMakeFiles/cmTryCompileExec2828261759.dir/CheckSymbolExists.cxx.o] Error 1
make[2]: Leaving directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
make[1]: *** [cmTryCompileExec2828261759/fast] Error 2
make[1]: Leaving directory `/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp'
File /home/ubuntu/catkin_ws/build/CMakeFiles/CMakeTmp/CheckSymbolExists.cxx:
/* */
#include <QtCore/qglobal.h>
int main(int argc, char** argv)
{
(void)argv;
#ifndef Q_WS_MAC
return ((int*)(&Q_WS_MAC))[argc];
#else
(void)argc;
return 0;
#endif
}
Thanks for your help
Kapil Yadav