Ask Your Question
0

Could not find the required component 'rosconsole' on macOS

asked 2018-08-22 14:43:30 -0600

Josh Cameron gravatar image

Trying to build ROS melodic on macOS High Sierra I encountered this problem:

-- Could NOT find rosconsole (missing: rosconsole_DIR)
-- Could not find the required component 'rosconsole'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /Users/cameroj/Projects/ros/macos/install_isolated/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "rosconsole" with
  any of the following names:

    rosconsoleConfig.cmake
    rosconsole-config.cmake

  Add the installation prefix of "rosconsole" to CMAKE_PREFIX_PATH or set
  "rosconsole_DIR" to a directory containing one of the above files.  If
  "rosconsole" provides a separate development package or SDK, be sure it has
  been installed.
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-08-22 14:48:35 -0600

Josh Cameron gravatar image

Ultimately, I was able to resolve my problem by specifying rosconsole_DIR correctly. It took several tries to find the right value of rosconsole_DIR:

-Drosconsole_DIR=/Users/cameroj/Projects/ros/macos/install_isolated/share/rosconsole/cmake

In my case, the root of my ROS project is /Users/cameroj/Projects/ros/macos.

Having fixed this problem for rosconsole, I had the same problem for roslib, which was solved the same way:

-Droslib_DIR=/Users/cameroj/Projects/ros/macos/install_isolated/share/roslib/cmake

I hope this helps someone out there.

edit flag offensive delete link more

Comments

1

Some expectation management: compiling ROS from sources on OSX is not a pleasant task. Nor is maintaining such an install. If you have the possibility, are learning and want to focus on ROS itself (instead of solving build issues), see whether you can dual-boot with Ubuntu.

gvdhoorn gravatar imagegvdhoorn ( 2018-08-22 14:50:34 -0600 )edit

@gvdhoom: You're not kidding about "not a pleasant task". In my case I've already built ROS on an Ubuntu VM but the VM isn't a workable solution for a new use case. Might be able to dual boot, but I'd prefer to work in my macOS environment so I'm going to slog it out a bit longer & see what happens.

Josh Cameron gravatar imageJosh Cameron ( 2018-08-22 15:26:20 -0600 )edit

Unfortunately Apple themselves make this a hard thing to do. There have been many questions posted in the past about why there are no binary distributions of ROS for OSX, and the answers typically go along the line of: it's too much work and there isn't really a simple way to automate it. ..

gvdhoorn gravatar imagegvdhoorn ( 2018-08-23 01:32:07 -0600 )edit

.. That is definitely true. Especially because of all the dependencies that ROS needs, and the way those are managed on OSX (brew, etc), it's just involved to keep things working. Too brittle. And with things like SIP, they don't get any easier.

Windows development can be difficult too though.

gvdhoorn gravatar imagegvdhoorn ( 2018-08-23 01:33:24 -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

1 follower

Stats

Asked: 2018-08-22 14:43:30 -0600

Seen: 394 times

Last updated: Aug 22 '18