facontidavide / ros_type_introspection

Deserialize ROS messages that are unknown at compilation time

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does not build with the latest abseil-cpp from https://github.com/Eurecat/abseil-cpp

kartikmohta opened this issue · comments

I was trying to compile PlotJuggler from source after cloning the latest versions of PlotJuggler, ros_type_introspection and abseil-cpp (your catkinized version) and got errors for this package. I am using catkin_tools to build the workspace and the one "non-standard" thing that I did was to enable the install option (catkin config --install) for the workspace. The output I got is as follows:

----------------------------------------------------------------------------------
Profile:                     default
Extending:             [env] /opt/ros/melodic
Workspace:                   /home/kartikmohta/programs/ros/plotjuggler_ws
----------------------------------------------------------------------------------
Source Space:       [exists] /home/kartikmohta/programs/ros/plotjuggler_ws/src
Log Space:         [missing] /home/kartikmohta/programs/ros/plotjuggler_ws/logs
Build Space:        [exists] /home/kartikmohta/programs/ros/plotjuggler_ws/build
Devel Space:        [exists] /home/kartikmohta/programs/ros/plotjuggler_ws/devel
Install Space:     [missing] /home/kartikmohta/programs/ros/plotjuggler_ws/install
DESTDIR:            [unused] None
----------------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        merged
----------------------------------------------------------------------------------
Additional CMake Args:       -DCMAKE_BUILD_TYPE=RelWithDebInfo
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
----------------------------------------------------------------------------------
Whitelisted Packages:        None
Blacklisted Packages:        None
----------------------------------------------------------------------------------
Workspace configuration appears valid.

NOTE: Forcing CMake to run for each package.
----------------------------------------------------------------------------------
[build] Found '3' packages in 0.0 seconds.                                                                                                                                                                        
Starting  >>> catkin_tools_prebuild                                                                                                                                                                               
Finished  <<< catkin_tools_prebuild                 [ 2.8 seconds ]                                                                                                                                               
Starting  >>> abseil_cpp                                                                                                                                                                                          
Finished  <<< abseil_cpp                            [ 13.6 seconds ]                                                                                                                                              
Starting  >>> ros_type_introspection                                                                                                                                                                              
__________________________________________________________________________________________________________________________________________________________________________________________________________________
Errors     << ros_type_introspection:cmake /home/kartikmohta/programs/ros/plotjuggler_ws/logs/ros_type_introspection/build.cmake.000.log                                                                          
CMake Error at /home/kartikmohta/programs/ros/plotjuggler_ws/install/share/abseil_cpp/cmake/abseil_cppConfig.cmake:148 (message):
  Project 'ros_type_introspection' tried to find library 'absl_container'.
  The library is neither a target nor built/installed properly.  Did you
  compile project 'abseil_cpp'? Did you find_package() it before the
  subdirectory containing its code is included?
Call Stack (most recent call first):
  /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
  CMakeLists.txt:7 (find_package)


cd /home/kartikmohta/programs/ros/plotjuggler_ws/build/ros_type_introspection; catkin build --get-env ros_type_introspection | catkin env -si  /usr/bin/cmake /home/kartikmohta/programs/ros/plotjuggler_ws/src/ros_type_introspection --no-warn-unused-cli -DCATKIN_DEVEL_PREFIX=/home/kartikmohta/programs/ros/plotjuggler_ws/devel/.private/ros_type_introspection -DCMAKE_INSTALL_PREFIX=/home/kartikmohta/programs/ros/plotjuggler_ws/install -DCMAKE_BUILD_TYPE=RelWithDebInfo; cd -
..................................................................................................................................................................................................................
Failed     << ros_type_introspection:cmake          [ Exited with code 1 ] 

Should I not be using the latest abseil-cpp from https://github.com/Eurecat/abseil-cpp?

I should add that it works fine after checking out abseil-cpp v0.2.3.

embedding abseil in version 1.4.0