Ask Your Question

lz4.h compilation problems

asked 2017-11-08 03:35:05 -0500

Maya gravatar image

updated 2017-11-08 03:35:30 -0500

Hello all,

It looks as if there are some problems with two different lz4.h files. I'm using gsl 2.4 and pcl 1.8. I'm also running ros on gentoo:

In file included from /opt/ros/kinetic/include/roslz4/lz4s.h:38:0,
                 from /opt/ros/kinetic/include/rosbag/stream.h:46,
                 from /opt/ros/kinetic/include/rosbag/chunked_file.h:46,
                 from /opt/ros/kinetic/include/rosbag/bag.h:41,
                 from /home/malcolm/ros_catkin_ws/kinetic_src/src/perception_oru-private/ndt_offline/include/ndt_offline/PoseInterpolationNavMsgsOdo.h:6,
                 from /home/malcolm/ros_catkin_ws/kinetic_src/src/perception_oru-private/ndt_calibration/include/ndt_calibration/ndt_calib.h:14,
                 from /home/malcolm/ros_catkin_ws/kinetic_src/src/perception_oru-private/ndt_calibration/src/ndt_calib.cpp:1:
/usr/include/lz4.h:234:28: error: conflicting declaration ‘typedef union LZ4_stream_u LZ4_stream_t’
 typedef union LZ4_stream_u LZ4_stream_t;   /* incomplete type (defined later) */
In file included from /usr/include/flann/util/serialization.h:9:0,
                 from /usr/include/flann/util/matrix.h:35,
                 from /usr/include/flann/flann.hpp:41,
                 from /usr/include/pcl-1.8/pcl/kdtree/flann.h:50,
                 from /usr/include/pcl-1.8/pcl/kdtree/kdtree_flann.h:45,
                 from /home/malcolm/ros_catkin_ws/kinetic_src/src/perception_oru-private/ndt_calibration/include/ndt_calibration/ndt_calib.h:9,
                 from /home/malcolm/ros_catkin_ws/kinetic_src/src/perception_oru-private/ndt_calibration/src/ndt_calib.cpp:1:
/usr/include/flann/ext/lz4.h:196:57: note: previous declaration as ‘typedef struct LZ4_stream_t LZ4_stream_t’
 typedef struct { long long table[LZ4_STREAMSIZE_U64]; } LZ4_stream_t;

Not sure what to do with this :)

edit retag flag offensive close merge delete


I have the same issue. Did you already solved it?

maxIm gravatar image maxIm  ( 2019-05-16 08:35:09 -0500 )edit

Check comments from KevinLADLee and Eeppii in this thread:

Thazz gravatar image Thazz  ( 2019-10-09 08:38:29 -0500 )edit

1 Answer

Sort by » oldest newest most voted

answered 2021-06-03 02:31:11 -0500

askkvn gravatar image
edit flag offensive delete link more

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-11-08 03:35:05 -0500

Seen: 955 times

Last updated: Jun 03