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

lz4 includes not found

asked 2017-07-21 20:08:10 -0600

pitosalas gravatar image

When building on Mac Sierra, I got an error, and then used this command to reproduce. By the way, excellent logging and tools for trying to narrow down the problem! Anyway, here's the command:

cd /Users/pitosalas/ros_catkin_ws/build_isolated/roslz4 && /Users/pitosalas/ros_catkin_ws/install_isolated/env.sh cmake /Users/pitosalas/ros_catkin_ws/src/ros_comm/roslz4 -DCATKIN_DEVEL_PREFIX=/Users/pitosalas/ros_catkin_ws/devel_isolated/roslz4 -DCMAKE_INSTALL_PREFIX=/Users/pitosalas/ros_catkin_ws/install_isolated -DCMAKE_BUILD_TYPE=Release -G 'Unix Makefiles'

This command gives the following error in trying to build roslz4 and I can't find any info on where to look to fix it.

-- Using CATKIN_DEVEL_PREFIX: /Users/pitosalas/ros_catkin_ws/devel_isolated/roslz4
-- Using CMAKE_PREFIX_PATH: /Users/pitosalas/ros_catkin_ws/install_isolated
-- This workspace overlays: /Users/pitosalas/ros_catkin_ws/install_isolated
-- Using PYTHON_EXECUTABLE: /usr/local/opt/python/libexec/bin/python
-- Using default Python package layout
-- Using empy: /usr/local/lib/python2.7/site-packages/em.pyc
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /Users/pitosalas/ros_catkin_ws/build_isolated/roslz4/test_results
-- Found gtest: gtests will be built
-- Using Python nosetests: /usr/local/bin/nosetests-2.7
-- catkin 0.7.6
CMake Error at CMakeLists.txt:13 (message):
  lz4 includes not found


-- Configuring incomplete, errors occurred!
See also "/Users/pitosalas/ros_catkin_ws/build_isolated/roslz4/CMakeFiles/CMakeOutput.log".
edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-07-30 20:35:46 -0600

pitosalas gravatar image

This is part of the many problems in getting ROS up on Mac. You can read my summary of this experience in another question. Bottom line, I abandoned trying to install it on Mac, there are just too many loose ends. I am having far better success with running ROS under VMWare with Ubuntu.

edit flag offensive delete link more
2

answered 2018-01-25 05:15:24 -0600

giuspen gravatar image

On Debian 9 I fixed the same issue installing liblz4-dev

edit flag offensive delete link more

Comments

That should not be necessary (rosdep has rules for lz4: here). If something is not working, it might be worth to report it as an issue.

gvdhoorn gravatar image gvdhoorn  ( 2018-01-25 05:23:02 -0600 )edit

I think it doesn't work on Debian 9 where I installed python-rosdep but still had many missing dependencies later when building kinetic (or this package has just an outdated dependency list)

giuspen gravatar image giuspen  ( 2018-01-25 05:32:00 -0600 )edit

python-rosdep does not pull in those dependencies (such as lz4). You'd have to invoke rosdep install --from-paths /path/to/catkin_ws/src --ignore-src ... for that.

gvdhoorn gravatar image gvdhoorn  ( 2018-01-25 05:59:23 -0600 )edit

I'm aware of rosdep install --from-paths WORKSPACE --ignore-src --rosdistro=ROSDISTRO but in my case I'm installing the whole system, I have no sources yet

giuspen gravatar image giuspen  ( 2018-01-25 06:37:11 -0600 )edit

Are you doing a source install, or using regular debs?

gvdhoorn gravatar image gvdhoorn  ( 2018-01-25 06:55:35 -0600 )edit

I'm doing a source install, didn't find existing debs for Debian 9

giuspen gravatar image giuspen  ( 2018-01-25 08:12:52 -0600 )edit

If you're doing a source install than you must have run rosdep install. It's one of the required steps. That should've installed the right lz4 packages for you.

If it didn't, that would be a problem and should be reported.

gvdhoorn gravatar image gvdhoorn  ( 2018-01-25 09:19:37 -0600 )edit

Thanks @gvdhoorn I definitely missed that

giuspen gravatar image giuspen  ( 2018-01-25 11:45:48 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2017-07-21 20:08:10 -0600

Seen: 2,361 times

Last updated: Jul 30 '17