MacOS
최신 버전이면 brew를 통해서 하면 되지만, 특정 버전은 b2로 설치한다
./bootstrap.sh
./b2 cxxflags="-std=c++1z -fPIC -O3" linkflags="-fPIC" link=static,shared variant=release threading=multi
./b2 install
Linux
./bootstrap.sh
./b2 --reconfigure stage toolset=gcc cxxflags="-std=c++1z -fPIC -O3 -Werror -Wno-unused-local-typedef -Wno-deprecated-declarations -Wno-unused-function" link=static,shared variant=release threading=multi linkflags="-fPIC"
sudo ./b2 install
Windows
.\bootstrap.exe
.\b2 --toolset=msvc-14.2 variant=release link=static,shared variant=release threading=multi address-model=64
MacOS
brew install flatbuffers
Linux
git clone https://github.com/google/flatbuffers.git
cd flatbuffers
cmake -G “Unix Makefiles” make && sudo make install