Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 1.27 KB

BUILD.md

File metadata and controls

40 lines (29 loc) · 1.27 KB

Build Instructions

FBOSS is being tested on Ubuntu 14.04.

The provided getdeps.sh script will fetch the dependencies required. If they are available as Ubuntu packages, then they will be installed through apt-get. If they are not, then they will be downloaded to external/ and built from source.

If you want to build them manually, the dependencies are as follows:

  • folly, built from source and installed
  • folly's own prerequisites: double-conversion, gflags, and glog
  • fbthrift, built from source and installed
  • iproute2-3.19.0: download from here
  • Broadcom's OpenNSL

Once the prerequisites are available, take the following steps.

Clone the repository:

git clone https://github.com/facebook/fboss.git

If you installed dependencies manually, CMAKE_INCLUDE_PATH and CMAKE_LIBRARY_PATH must be modified to include the paths to the dependencies. If you use getdeps.sh, then this should work out of the box.

Build as follows:

mkdir fboss/build
cd fboss/build
cmake ..
make

The produced executables are sim_agent and wedge_agent in the build directory.