compilation errors

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

compilation errors

ross
dear friends :
centos 6.6
following the steps of "If ROS is not installed"
when i trying to compile using the command
$  make -j4
this is the result:
[  8%] Built target rtabmap_utilite
[  9%] Built target uresourcegenerator
[  9%] Built target imagesJoiner
Linking CXX executable ../../../bin/rtabmap-extractObject
/usr/bin/ld: cannot find -lvtkCommonCore
collect2: ld returned 1 exit status
make[2]: *** [../bin/rtabmap-extractObject] Error 1
make[1]: *** [tools/ExtractObject/CMakeFiles/extractObject.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 10%] [ 11%] [ 12%] [ 12%] Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Statistics.cpp.o
Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/RtabmapThread.cpp.o
Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Rtabmap.cpp.o
Building CXX object corelib/src/CMakeFiles/rtabmap_core.dir/Memory.cpp.o
In file included from /home/wuzheng/Downloads/rtabmap/corelib/src/../include/rtabmap/core/Rtabmap.h:34,
                 from /home/wuzheng/Downloads/rtabmap/corelib/src/RtabmapThread.cpp:28:
/home/wuzheng/Downloads/rtabmap/corelib/src/../include/rtabmap/core/SensorData.h:78: error: wrong number of arguments specified for ‘deprecated’ attribute
In file included from /home/wuzheng/Downloads/rtabmap/corelib/src/../include/rtabmap/core/Signature.h:42,
                 from /home/wuzheng/Downloads/rtabmap/corelib/src/../include/rtabmap/core/Statistics.h:38,
                 from /home/wuzheng/Downloads/rtabmap/corelib/src/Statistics.cpp:28:
/home/wuzheng/Downloads/rtabmap/corelib/src/../include/rtabmap/core/SensorData.h:78: error: wrong number of arguments specified for ‘deprecated’ attribute
make[2]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/Statistics.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/wuzheng/Downloads/rtabmap/corelib/src/../include/rtabmap/core/Rtabmap.h:34,
                 from /home/wuzheng/Downloads/rtabmap/corelib/src/Rtabmap.cpp:28:
/home/wuzheng/Downloads/rtabmap/corelib/src/../include/rtabmap/core/SensorData.h:78: error: wrong number of arguments specified for ‘deprecated’ attribute
In file included from /home/wuzheng/Downloads/rtabmap/corelib/src/../include/rtabmap/core/Memory.h:35,
                 from /home/wuzheng/Downloads/rtabmap/corelib/src/Memory.cpp:35:
/home/wuzheng/Downloads/rtabmap/corelib/src/../include/rtabmap/core/SensorData.h:78: error: wrong number of arguments specified for ‘deprecated’ attribute
make[2]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/RtabmapThread.cpp.o] Error 1
make[2]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/Rtabmap.cpp.o] Error 1
make[2]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/Memory.cpp.o] Error 1
make[1]: *** [corelib/src/CMakeFiles/rtabmap_core.dir/all] Error 2
make: *** [all] Error 2

could anybody help me? thanks
Reply | Threaded
Open this post in threaded view
|

Re: compilation errors

matlabbe
Administrator
Which dependencies are installed? Qt4, VTK+Qt integration, PCL 1.7+ with OpenNI, OpenCV 2.4+, CMake 2.8.3+ should be correctly installed.

There is one error about VTK not found:
/usr/bin/ld: cannot find -lvtkCommonCore 

There is one error about your compiler on your system which doesn't like the "deprecated" attribute:
error: wrong number of arguments specified for ‘deprecated’ attribute
You can safely comment the line with "RTABMAP_DEPRECATED" in SensorData.h. Maybe there are some others in the code, you can comment them all.