About catkin_make failure
I am a beginner to ROS
when i was following the tutorial on website http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment
after entering
$ cd ~/catkin_ws/
$ catkin_make
It worked fine at first and i got an error as follows: Although it gave me a lot of errors, i got a 100% built. So confused...
I see many "gazebo_ros not declared" error, how to fix this? And "expected ‘,’ or ‘...’ before ‘&’ token" error like this, to me more like code error. I have not written any code yet. How can i have such kind of error.
I am a beginner to ros world, so frastrated recently . lol...
[ 96%] Built target gazeborosdepth_camera
Scanning dependencies of target gazeborosopenni_kinect
[ 97%] Built target gazeborosmulticamera
Scanning dependencies of target gazeborosprosilica
[ 98%] Building CXX object gazeborospkgs/gazeboplugins/CMakeFiles/gazeborosprosilica.dir/src/gazeboros_prosilica.cpp.o
[100%] Building CXX object gazeborospkgs/gazeboplugins/CMakeFiles/gazeborosopennikinect.dir/src/gazeborosopenni_kinect.cpp.o
In file included from /home/sxy/catkinws/src/gazeborospkgs/gazeboros/src/gazeborosapiplugin.cpp:25:0: /home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:270:35: error: ‘gazeboros’ has not been declared void physicsReconfigureCallback(gazeboros::PhysicsConfig &config, uint32t level); ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:270:61: error: expected ‘,’ or ‘...’ before ‘&’ token void physicsReconfigureCallback(gazeboros::PhysicsConfig &config, uint32t level); ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:360:50: error: ‘gazeboros’ was not declared in this scope boost::sharedptr< dynamicreconfigure::Server<gazeboros::PhysicsConfig> > physicsreconfiguresrv_; ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:360:75: error: template argument 1 is invalid
boost::sharedptr< dynamicreconfigure::Server
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:360:77: error: template argument 1 is invalid
boost::sharedptr< dynamicreconfigure::Server
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:361:31: error: ‘gazeboros’ was not declared in this scope
dynamicreconfigure::Server
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:361:56: error: template argument 1 is invalid dynamicreconfigure::Server<gazeboros::PhysicsConfig>::CallbackType physicsreconfigurecallback_; ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:361:59: error: expected ‘;’ at end of member declaration dynamicreconfigure::Server<gazeboros::PhysicsConfig>::CallbackType physicsreconfigurecallback_; ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:361:72: error: ‘physicsreconfigurecallback’ does not name a type
dynamicreconfigure::Server
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/src/gazeborosapiplugin.cpp:1878:53: error: variable or field ‘physicsReconfigureCallback’ declared void void GazeboRosApiPlugin::physicsReconfigureCallback(gazeboros::PhysicsConfig &config, uint32_t level) ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/src/gazeborosapiplugin.cpp:1878:53: error: ‘gazeboros’ has not been declared /home/sxy/catkinws/src/gazeborospkgs/gazeboros/src/gazeborosapiplugin.cpp:1878:80: error: ‘config’ was not declared in this scope void GazeboRosApiPlugin::physicsReconfigureCallback(gazeboros::PhysicsConfig &config, uint32_t level) ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/src/gazeborosapiplugin.cpp:1878:97: error: expected primary-expression before ‘level’ void GazeboRosApiPlugin::physicsReconfigureCallback(gazeboros::PhysicsConfig &config, uint32_t level) ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/src/gazeborosapi_plugin.cpp:2302:1: error: expected ‘}’ at end of input } ^
make[2]: *** [gazeborospkgs/gazeboros/CMakeFiles/gazeborosapiplugin.dir/src/gazeborosapi_plugin.cpp.o] Error 1
make[1]: *** [gazeborospkgs/gazeboros/CMakeFiles/gazeborosapiplugin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX shared library /home/sxy/catkin_ws/devel/lib
[ 96%] Built target gazeborosdepthcamera Scanning dependencies of target gazeborosopennikinect
[ 97%] Built target gazeborosmulticamera Scanning dependencies of target gazeborosprosilica
[ 98%] Building CXX object gazeborospkgs/gazeboplugins/CMakeFiles/gazeborosprosilica.dir/src/gazeboros_prosilica.cpp.o
[100%] Building CXX object gazeborospkgs/gazeboplugins/CMakeFiles/gazeborosopennikinect.dir/src/gazeborosopenni_kinect.cpp.o
In file included from /home/sxy/catkinws/src/gazeborospkgs/gazeboros/src/gazeborosapiplugin.cpp:25:0: /home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:270:35: error: ‘gazeboros’ has not been declared void physicsReconfigureCallback(gazeboros::PhysicsConfig &config, uint32t level); ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:270:61: error: expected ‘,’ or ‘...’ before ‘&’ token void physicsReconfigureCallback(gazeboros::PhysicsConfig &config, uint32t level); ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:360:50: error: ‘gazeboros’ was not declared in this scope boost::sharedptr< dynamicreconfigure::Server<gazeboros::PhysicsConfig> > physicsreconfiguresrv_; ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:360:75: error: template argument 1 is invalid
boost::sharedptr< dynamicreconfigure::Server
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:360:77: error: template argument 1 is invalid
boost::sharedptr< dynamicreconfigure::Server
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:361:31: error: ‘gazeboros’ was not declared in this scope
dynamicreconfigure::Server
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:361:56: error: template argument 1 is invalid dynamicreconfigure::Server<gazeboros::PhysicsConfig>::CallbackType physicsreconfigurecallback_; ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:361:59: error: expected ‘;’ at end of member declaration dynamicreconfigure::Server<gazeboros::PhysicsConfig>::CallbackType physicsreconfigurecallback_; ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/include/gazeboros/gazeborosapiplugin.h:361:72: error: ‘physicsreconfigurecallback’ does not name a type
dynamicreconfigure::Server
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/src/gazeborosapiplugin.cpp:1878:53: error: variable or field ‘physicsReconfigureCallback’ declared void void GazeboRosApiPlugin::physicsReconfigureCallback(gazeboros::PhysicsConfig &config, uint32_t level) ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/src/gazeborosapiplugin.cpp:1878:53: error: ‘gazeboros’ has not been declared /home/sxy/catkinws/src/gazeborospkgs/gazeboros/src/gazeborosapiplugin.cpp:1878:80: error: ‘config’ was not declared in this scope void GazeboRosApiPlugin::physicsReconfigureCallback(gazeboros::PhysicsConfig &config, uint32_t level) ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/src/gazeborosapiplugin.cpp:1878:97: error: expected primary-expression before ‘level’ void GazeboRosApiPlugin::physicsReconfigureCallback(gazeboros::PhysicsConfig &config, uint32_t level) ^
/home/sxy/catkinws/src/gazeborospkgs/gazeboros/src/gazeborosapiplugin.cpp:2302:1: error: expected ‘}’ at end of input } ^ make[2]: *** [gazeborospkgs/gazeboros/CMakeFiles/gazeborosapiplugin.dir/src/gazeborosapiplugin.cpp.o] Error 1
make[1]: *** [gazeborospkgs/gazeboros/CMakeFiles/gazeborosapiplugin.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX shared library /home/sxy/catkinws/devel/lib/libgazeboros_prosilica.so
[100%] Built target gazeborosprosilica
Linking CXX shared library /home/sxy/catkinws/devel/lib/libgazeborosopennikinect.so
[100%] Built target gazeborosopenni_kinect
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
/libgazeborosprosilica.so
[100%] Built target gazeborosprosilica
Linking CXX shared library /home/sxy/catkinws/devel/lib/libgazeborosopennikinect.so
[100%] Built target gazeborosopenni_kinect
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
please help me. This is the first time i post question here, if the format is not right, please do tell me.
Thank u in advance
Asked by Jacky4869 on 2017-05-28 19:43:07 UTC
Comments
Have you tried to install all the dependencies with rosdep? Follow http://answers.ros.org/question/75241/install-ros-dependencies-from-apt/
Asked by DavidN on 2017-05-28 23:23:49 UTC
Thank u for your help. After installing the package you recommended, it works better, but the problem is not fully solved. Could u give me any more suggestions?
Asked by Jacky4869 on 2017-05-30 17:20:46 UTC
@DavidN I updated the error code. If you have time, could u take a look. Really appreciate that
Asked by Jacky4869 on 2017-05-30 19:11:27 UTC
It seems you have the source code of gazebo_ros and you are trying to compile it. You plan to modify gazebo ros source code?
Asked by DavidN on 2017-05-30 21:23:12 UTC
@DavidN Exactly, I figured out the reason. Somehow, I downloaded a wrong gazebo_ros package and caused the conflict.
Thank you so much for your help!!!
Asked by Jacky4869 on 2017-05-31 13:35:05 UTC