ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Error: Invoke "make -j4 -l4" failed.

asked 2022-09-26 14:35:54 -0500

Félix Martínez gravatar image

updated 2022-09-26 21:38:19 -0500

ravijoshi gravatar image

I'm working with the lidar Slamtec Mapper M2M1 paired with a Jetson Nano packed with Ubuntu 18.04, ROS Melodic, and GCC 7.5.0 Linaro. When I try to compile the SDK I get the following error:

Invoke "make -j4 -l4" failed.

Does anybody, who knows or got a similar error can tell what this error is related too, it's meaning, or at least explain the parameters -j4 and -l4.

edit retag flag offensive close merge delete



Please post the complete logs. You can copy your terminal entirely and post it here. Just one line of error does not give us much information.

ravijoshi gravatar image ravijoshi  ( 2022-09-26 21:39:57 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2022-09-27 02:51:55 -0500

Vic gravatar image

updated 2022-09-27 02:54:55 -0500

Those are flags used for compiling.

-j4 indicate you want to compile using 4 cores of your CPU (

-l4... I don't know. There is a -l for library but it's usually like -lboost_system with the library name concatenated to the -l ( Where do you find that command? Do you have a link to a tutorial?

edit flag offensive delete link more


I suspect the problem is they have not installed the "make" build tool.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-09-27 06:52:15 -0500 )edit

Question Tools



Asked: 2022-09-26 14:35:54 -0500

Seen: 105 times

Last updated: Sep 27 '22