Breadboard
An open source project by FPL.
 All Files Macros Pages
Building for Linux

Version Requirements

Following are the minimum required versions for the tools and libraries you need for building Breadboard for Linux:

Prior to building, install the following components using the Linux distribution's package manager:

For example, on Ubuntu:

sudo apt-get install cmake python

Building

When building Breadboard, you can either build the library as part of another project, or you can build it as a stand-alone library. To simply build the library (and the sample project) do the following:

  • Generate makefiles from the cmake project in the breadboard directory.
  • Execute make to build the library and sample.

For example:

cd breadboard
cmake -G'Unix Makefiles' .
make

To build Breadboard from another project, add the following to your project's CMakeLists.txt:

add_subdirectory("${path_to_breadboard}" breadboard)
include_directories(${path_to_breadboard}/include)

Additionally, if you are making use of the module_library packaged with Breadboard, you will need to include additional directories, both the module_library's include folder as well as the generated include folder if you are making use of the Flatbuffer-based GraphFactory.

include_directories(${path_to_breadboard}/module_library/include)
get_property(BREADBOARD_MODULE_LIBRARY_FLATBUFFERS_GENERATED_INCLUDES_DIR
             TARGET breadboard_module_library_generated_includes
             PROPERTY GENERATED_INCLUDES_DIR)
include_directories(${BREADBOARD_MODULE_LIBRARY_FLATBUFFERS_GENERATED_INCLUDES_DIR})

Additionally, ensure that you are linking the library and it's dependencies when running target_link_libraries:

target_link_libraries(breadboard)