Error in building Simulator using jmavsim

Its my first time building a simulator and Its erroring out for some reason ( no surprises there!!!)
Below are the commands i followed:

  1. brew tap PX4/px4
  2. brew install px4-dev
  3. pip3 install --user pyserial empy toml numpy pandas jinja2 pyyaml pyros-genmsg packaging
  4. brew install --cask temurin
  5. brew install px4-sim-jmavsim
  6. cd Px4-dev
  7. git clone [] --recursive
  8. make px4_sitl jmavsim

I am seeing the below error in #8.
Can someone help me fix this?

% make px4_sitl jmavsim

-- PX4 version: v1.13.0-alpha1-3022-g177fe4bade

-- Found PythonInterp: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3 (found suitable version "3.8.10", minimum required is "3")

-- PX4 config file: /Users/tusharphadke/PX4-dev/PX4-Autopilot/boards/px4/sitl/default.px4board

-- PLATFORM posix

-- ROMFSROOT px4fmu_common



-- PX4 config: px4_sitl_default

-- PX4 platform: posix

-- PX4 lockstep: enabled

-- cmake build type: RelWithDebInfo

CMake Error at /usr/local/Cellar/cmake/3.21.4/share/cmake/Modules/CMakeDetermineCXXCompiler.cmake:48 (message):

Could not find compiler set in environment variable CXX:


Call Stack (most recent call first):

CMakeLists.txt:229 (project)

@tushar_phadke do you have the Xcode command line tools installed on your system? the error is complaining from a missing compiler which you typically get from the command line tools

Hi @rroche .
Thank you for responding!
I have XCODE 11.4.1 installed . I am using macbook pro 2015.
I am not sure if i have Xcode command line tools installed on my system.
How to check that?is that a prerequisite?
I saw some Xcode related log messages while running #1 and #2 command above.
If i dont have Xcode comamnd line tools installed , how to install that?

@tushar_phadke yes that’s a requirement, you might be able to download from the Apple developer website Sign In - Apple (you need an apple account)