Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.03 KB

README.md

File metadata and controls

40 lines (29 loc) · 1.03 KB

fluent_bit_vendor

Build Status

CMake wrapper to provide Fluent Bit C API.

The wrapper compiles Fluent Bit and export the library and includes. Some includes are not provided by the standard package and that is why there is a patch.

Then, in your ROS 2 project:

  1. Add it as dependency in your package.xml
  2. Add it as dependency in your CMakeLists.txt
find_package(fluent_bit_vendor REQUIRED)
find_package(fluent_bit REQUIRED)
  1. Include it in your project
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wparentheses"
#pragma GCC diagnostic ignored "-Wsign-compare"
#include <fluent-bit.h>
#pragma GCC diagnostic pop
  1. Link your cpp file to it
target_link_libraries(
  my_library
  fluent_bit::fluent_bit
)
  1. Run colcon build