Posix_sitl_default error: incompatible with your Protocol Buffer headers

Hi

I am new to PX4, and it’s been a real struggle trying to get things rolling.

Right now, I am trying to bring up a simple Px4 quadrotor sim on Gazebo, I followed the steps outline in:

http://dev.px4.io/simulation-gazebo.html

I followed the instructions step by step, and I have ascertained that I am using protobuf2.6. But I received the following error messages. What did I do wrong?

Any advice on how to fix this is much appreciated!

James

$ make posix_sitl_default gazebo

PX4 CONFIG: /Users/howard/src/Firmware/build_posix_sitl_default
ninja: Entering directory `/Users/howard/src/Firmware/build_posix_sitl_default’
[1/4] Performing build step for ‘sitl_gazebo’
FAILED: external/Stamp/sitl_gazebo/sitl_gazebo-build
cd /Users/howard/src/Firmware/build_posix_sitl_default/build_gazebo && /usr/local/Cellar/cmake/3.6.2/bin/cmake --build . && /usr/local/Cellar/cmake/3.6.2/bin/cmake -E touch /Users/howard/src/Firmware/build_posix_sitl_default/external/Stamp/sitl_gazebo/sitl_gazebo-build
[1/23] Building CXX object CMakeFiles/mav_msgs.dir/SensorImu.pb.cc.o
FAILED: CMakeFiles/mav_msgs.dir/SensorImu.pb.cc.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -Dmav_msgs_EXPORTS -I/usr/local/include/opencv -I/usr/local/include -I/Users/howard/src/Firmware/Tools/sitl_gazebo/include -I/usr/local/Cellar/gazebo7/7.3.1_4/include -I/usr/local/Cellar/gazebo7/7.3.1_4/include/gazebo-7 -I/usr/local/Cellar/sdformat4/4.1.1_1/include/sdformat-4.1 -I/usr/local/Cellar/ignition-math2/2.5.0/include/ignition/math2 -I/usr/local/Cellar/ogre/1.7.4/include/OGRE -I/usr/local/Cellar/ogre/1.7.4/include -I/usr/local/Cellar/ogre/1.7.4/include/OGRE/Terrain -I/usr/local/Cellar/ogre/1.7.4/include/OGRE/Paging -I/usr/local/Cellar/gazebo7/7.3.1_4/include/gazebo-7/gazebo/msgs -I/usr/local/include/eigen3 -I. -I/usr/local/include/eigen3/eigen3 -I/usr/local/include/OGRE -I/usr/local/include/OGRE/Paging -std=c++11 -stdlib=libc++ -std=c++11 -Wno-deprecated-declarations -fPIC -MD -MT CMakeFiles/mav_msgs.dir/SensorImu.pb.cc.o -MF CMakeFiles/mav_msgs.dir/SensorImu.pb.cc.o.d -o CMakeFiles/mav_msgs.dir/SensorImu.pb.cc.o -c SensorImu.pb.cc
In file included from SensorImu.pb.cc:5:
In file included from ./SensorImu.pb.h:27:
/usr/local/Cellar/gazebo7/7.3.1_4/include/gazebo-7/gazebo/msgs/quaternion.pb.h:12:2: error: This file was generated by a newer version of protoc which is
#error This file was generated by a newer version of protoc which is
^
/usr/local/Cellar/gazebo7/7.3.1_4/include/gazebo-7/gazebo/msgs/quaternion.pb.h:13:2: error: incompatible with your Protocol Buffer headers. Please update
#error incompatible with your Protocol Buffer headers. Please update
^
/usr/local/Cellar/gazebo7/7.3.1_4/include/gazebo-7/gazebo/msgs/quaternion.pb.h:14:2: error: your headers.
#error your headers.
^
/usr/local/Cellar/gazebo7/7.3.1_4/include/gazebo-7/gazebo/msgs/quaternion.pb.h:22:10: fatal error: ‘google/protobuf/arena.h’ file not found
#include <google/protobuf/arena.h>
^
4 errors generated.
ninja: build stopped: subcommand failed.
ninja: build stopped: subcommand failed.
make: *** [posix_sitl_default] Error 1