Ask Your Question
0

How to add clang dependency to ROS package

asked 2020-02-13 09:38:39 -0600

codavide gravatar image

I'm trying to release one ROS package, but the automatic build of the package on Jenkins fails, with this error:

CMake Error at CMakeLists.txt:16 (project):
The CMAKE_C_COMPILER:

 clang

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.


CMake Error at CMakeLists.txt:16 (project):
The CMAKE_CXX_COMPILER:

 clang++

is not a full path and was not found in the PATH.

Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.

I understand that the problem is that clang is not installed in the docker container used by Jenkins to compile the package, but I don't know what to configure in the package to add this system dependency, I have tried to add both

<build_depend>clang</build_depend>

and

<buildtool_depend>clang<buildtool_depend>

but in both cases I have the error

KeyError: 'clang'

can someone please help me to understand how to add this system dependency?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-02-13 11:11:12 -0600

ahendrix gravatar image

It sounds like you need to add a rosdep entry for clang: http://docs.ros.org/independent/api/r...

edit flag offensive delete link more

Comments

Should we first wonder why the build is failing due to a missing Clang. By that I mean: is the OP specifically forcing the use of Clang? If so: why?

gvdhoorn gravatar imagegvdhoorn ( 2020-02-13 11:57:44 -0600 )edit

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: 2020-02-13 09:38:39 -0600

Seen: 16 times

Last updated: Feb 13