Ask Your Question

lz4 includes not found

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

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/ 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
-- 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

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

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

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

giuspen gravatar image

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

edit flag offensive delete link more


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 -0500 )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 -0500 )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 -0500 )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 -0500 )edit

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

gvdhoorn gravatar image gvdhoorn  ( 2018-01-25 06:55:35 -0500 )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 -0500 )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 -0500 )edit

Thanks @gvdhoorn I definitely missed that

giuspen gravatar image giuspen  ( 2018-01-25 11:45:48 -0500 )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



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

Seen: 1,389 times

Last updated: Jul 30 '17