| #!/bin/bash | |
| set -e | |
| # Any subsequent(*) commands which fail will cause the shell script to exit immediately | |
| ######################################################################### | |
| # Build flatbuffers | |
| ######################################################################### | |
| echo "Building Flatbuffers" | |
| mkdir -p ../flatbuffers | |
| cd ../flatbuffers | |
| cp -Rf ../third_party/flatbuffers/* . | |
| export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/lib64/:$LD_LIBRARY_PATH | |
| export PATH=/usr/local/bin/:$PATH | |
| which g++ | |
| echo $? | |
| g++ --version | |
| echo $? | |
| #export CXX=`which g++` | |
| #export CC=`which gcc` | |
| cmake -G "Unix Makefiles" -DCMAKE_CXX_FLAGS="-w -Wimplicit-fallthrough=0" &> flatbuffers_configure.log | |
| make -j 4 &> flatbuffers_compile.log | |
| ./flattests &> flatbuffers_test.log | |
| echo "Done Building Flatbuffers" | |