Hello, I am getting build errors while building PX4 on MacOS.
Any help is much appreciated. I am also new to PX4
My MacOS is 10.11.16 El Capitan.
I used the following instructions on the px4 support website:
brew tap PX4/px4
brew install px4-dev
pip3 install --user pyserial empy toml numpy pandas jinja2 pyyaml pyros-genmsg packaging
brew tap AdoptOpenJDK/openjdk
brew cask install adoptopenjdk14
brew install px4-sim-jmavsim
git clone [GitHub - PX4/PX4-Autopilot: PX4 Autopilot Software]
cd Firmware make px4_sitl jmavsim
Error Message while installing px4-dev or px4-sim-jmavsim
==> make images
Last 15 lines from /Users/kade98002/Library/Logs/Homebrew/openjdk/02.make:
./src/jdk.incubator.jpackage/share/native/applauncher/AppLauncher.cpp:224:41: error: default initialization of an object of const type ‘const (anonymous namespace)::ResetLastErrorMsgAtEndOfScope’ without a user-provided default constructor
const ResetLastErrorMsgAtEndOfScope resetLastErrorMsg;
1 error generated.
- All command lines available in /private/tmp/openjdk-20201123-34274-290o7s/jdk15u-jdk-15.0.1-ga/build/macosx-x86_64-server-release/make-support/failure-logs.
=== End of repeated output ===
No indication of failed target found.
Hint: Try searching the build log for ‘] Error’.
Hint: See doc/building.html#troubleshooting for assistance.
make: *** [main] Error 2
make: *** [images] Error 2
Do not report this issue to Homebrew/brew or Homebrew/core!
These open issues may also help:
use openjdk 11 for sonarqube-lts https://github.com/Homebrew/homebrew-core/pull/60319
Error: You are using macOS 10.11.
We (and Apple) do not provide support for this old version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew’s GitHub,
Twitter or any other official channels. You are responsible for resolving
any issues you experience while you are running this