Ask Your Question
0

Invoking "make -j2 -l2" failed

asked 2016-04-25 09:04:32 -0500

Omarzamany gravatar image

updated 2016-04-26 11:10:15 -0500

Hi, i followed exactly the instructions here http://erlerobotics.com/docs/Simulati... , everything went find except the very last command :::

Then compile everything together:

cd ~/simulation/ros_catkin_ws    
source devel/setup.bash  catkin_make

Error in the terminal :

[ 98%] Building CXX object ardupilot_sitl_gazebo_plugin/ardupilot_sitl_gazebo_plugin/CMakeFiles/ardupilot_sitl_gazebo_plugin.dir/src/SocketAPM.cpp.o
Linking CXX shared library /home/omaralhebsi/simulation/ros_catkin_ws/devel/lib/libardupilot_sitl_gazebo_plugin.so
[ 98%] Built target ardupilot_sitl_gazebo_plugin
make: *** [all] Error 2
Invoking "make -j2 -l2" failed

What do i have to do ?? , plz help its only one step and then i can start working on Gazebo. I guess the problem is with catkin_make

i ran the code again and this is what i received :

 [100%] Built target sitl_test_node
/home/simulation/ros_catkin_ws/src/gazebo_cpp_examples/erle-copter_pattern_follower/src/image_subscriber.cpp:5:25: fatal error: aruco/aruco.h: No such file or directory
 #include <aruco/aruco.h>
                         ^
compilation terminated.
make[2]: *** [gazebo_cpp_examples/erle-copter_pattern_follower/CMakeFiles/ros_erle_pattern_follower.dir/src/image_subscriber.cpp.o] Error 1
make[1]: *** [gazebo_cpp_examples/erle-copter_pattern_follower/CMakeFiles/ros_erle_pattern_follower.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j2 -l2" failed
edit retag flag offensive close merge delete

Comments

NO ONE LOOKED AT IT ??

Omarzamany gravatar imageOmarzamany ( 2016-04-26 03:53:04 -0500 )edit

I need an answer plz !

Omarzamany gravatar imageOmarzamany ( 2016-04-26 09:32:29 -0500 )edit

Do not provide answers that are not answers. Most likely people aren't helping you because they don't know how to help you or they aren't seeing your question because of improperly titled questions or tagging.

jarvisschultz gravatar imagejarvisschultz ( 2016-04-26 11:08:10 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-04-26 11:18:08 -0500

The primary issue is that aruco.h cannot be found. Do you have that file on your system? Where is it at? How did you get it?

I notice that the gazebo_cpp_examples package.xml declares dependencies on aruco. On my system, rosdep resolve aruco reveals that this dependency could be provided by the ros-indigo-aruco apt-get package. Do you have this package installed, is it available on your system? I also notice the directions you linked don't seem to mention this getting this package either from source or from apt-get. Perhaps it is just a mistake in the directions.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2016-04-25 09:04:32 -0500

Seen: 2,347 times

Last updated: Apr 26 '16