PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
7.85k stars 13.23k forks source link

build on macos14.3 error, and which python3 we should use? #22826

Open mengchaoheng opened 4 months ago

mengchaoheng commented 4 months ago

Describe the bug

when I use MacOS Development Environment, after:

git clone https://github.com/PX4/PX4-Autopilot.git --recursive
cd PX4-Autopilot/Tools/setup
sh macos.sh

output is :

➜  PX4-Autopilot git:(9687324778) sh Tools/setup/macos.sh                
px4-dev already installed
Installing PX4 Python3 dependencies
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
    xyz, where xyz is the package you are trying to
    install.

    If you wish to install a non-brew-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip.

    If you wish to install a non-brew packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try brew install
    xyz, where xyz is the package you are trying to
    install.

    If you wish to install a non-brew-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip.

    If you wish to install a non-brew packaged Python application,
    it may be easiest to use pipx install xyz, which will manage a
    virtual environment for you. Make sure you have pipx installed.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
All set! PX4 toolchain installed!
➜  PX4-Autopilot git:(9687324778) which python3
/usr/local/bin/python3
➜  PX4-Autopilot git:(9687324778) /usr/bin/python3 --version
Python 3.9.6
➜  PX4-Autopilot git:(9687324778) python3 --version         
Python 3.12.2
➜  PX4-Autopilot git:(9687324778) 

To Reproduce

following instructions set up a PX4 development environment for macOS

Expected behavior

this instructions in /Tools/setup/macos.sh will running:

python3 -m pip install future
python3 -m pip install --user -r ${DIR}/requirements.txt

Screenshot / Media

No response

Flight Log

non

Software Version

px4 v1.14.2, I want to build px4_sitl on macos sonoma 14.3.1 (m1).

Flight controller

non

Vehicle type

None

How are the different components wired up (including port information)

No response

Additional context

No response

mengchaoheng commented 4 months ago

Python 3.12.2 is installed after brew install px4-dev


brew install px4-dev

==> Tapping discoteq/discoteq
Cloning into '/usr/local/Homebrew/Library/Taps/discoteq/homebrew-discoteq'...
remote: Enumerating objects: 14, done.
remote: Total 14 (delta 0), reused 0 (delta 0), pack-reused 14
Receiving objects: 100% (14/14), done.
Resolving deltas: 100% (2/2), done.
Tapped 1 formula (13 files, 8.7KB).
==> Fetching dependencies for px4/px4/px4-dev: giflib, libpng, freetype, fontconfig, pcre2, gettext, glib, xorgproto, libxau, libxdmcp, libxcb, libx11, libxext, libxrender, lzo, pixman, cairo, graphite2, icu4c, harfbuzz, jpeg-turbo, xz, lz4, zstd, libtiff, little-cms2, openjdk, ant, astyle, bash-completion, ca-certificates, openssl@3, hiredis, ccache, cmake, discoteq/discoteq/flock, asio, tinyxml2, px4/px4/fastcdr, px4/px4/foonathan-memory, px4/px4/fastdds, px4/px4/gcc-arm-none-eabi, px4/px4/genromfs, px4/px4/kconfig-frontends, ninja, mpdecimal, readline, sqlite and python@3.12

but in

python3 -m pip install --user pyserial empty toml numpy pandas jinja2 pyyaml pyros-genmsg packaging kconfiglib future jsonschema

my default python3 is Python3.9 which is default install on MacOS

~ python3 -m pip install --user pyserial empty toml numpy pandas jinja2 pyyaml pyros-genmsg packaging kconfiglib future jsonschema

Collecting pyserial
  Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
Requirement already satisfied: empty in ./Library/Python/3.9/lib/python/site-packages (0.4.4)
Collecting toml
  Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Collecting numpy
  Downloading numpy-1.26.4-cp39-cp39-macosx_10_9_x86_64.whl (20.6 MB)
     |████████████████████████████████| 20.6 MB 260 kB/s 
Collecting pandas
  Downloading pandas-2.2.1-cp39-cp39-macosx_10_9_x86_64.whl (12.6 MB)
     |████████████████████████████████| 12.6 MB 216 kB/s 
Requirement already satisfied: jinja2 in ./Library/Python/3.9/lib/python/site-packages (3.1.3)

and , in brew install px4-sim-gazebo , install python@3.11 for gazebo.


~ brew install px4-sim-gazebo

==> Downloading https://formulae.brew.sh/api/formula.jws.json
-=#=-#   #   #                                                                           
==> Tapping osrf/simulation
Cloning into '/usr/local/Homebrew/Library/Taps/osrf/homebrew-simulation'...
remote: Enumerating objects: 13750, done.
remote: Counting objects: 100% (2922/2922), done.
remote: Compressing objects: 100% (560/560), done.
remote: Total 13750 (delta 2574), reused 2649 (delta 2351), pack-reused 10828
Receiving objects: 100% (13750/13750), 3.29 MiB | 3.69 MiB/s, done.
Resolving deltas: 100% (10531/10531), done.
Tapped 105 formulae (219 files, 4MB).
==> Fetching dependencies for px4/px4/px4-sim-gazebo: exiftool, gflags, glog, brotli, highway, imath, openexr, webp, jpeg-xl, libvmaf, aom, libavif, gd, jasper, netpbm, gts, gdk-pixbuf, fribidi, pango, librsvg, m4, libtool, graphviz, dav1d, faac, faad2, fdk-aac, aribb24, frei0r, gmp, libunistring, libidn2, libtasn1, nettle, p11-kit, libevent, libnghttp2, unbound, gnutls, lame, libunibreak, libass, libbluray, cjson, libmicrohttpd, mbedtls, librist, libsoxr, libssh, libvidstab, libogg, libvorbis, libvpx, opencore-amr, openjpeg, isl, mpfr, libmpc, gcc, openblas, numpy, pugixml, snappy, hwloc, tbb, openvino, opus, rav1e, libsamplerate, flac, mpg123, libsndfile, rubberband, sdl2, speex, srt, svt-av1, leptonica, libb2, libarchive, tesseract, theora, x264, x265, xvid, libsodium, zeromq, zimg, ffmpeg, gsettings-desktop-schemas, glib-networking, graphene, dbus, libxfixes, libxi, libxtst, at-spi2-core, hicolor-icon-theme, libepoxy, gtk+3, gtk4, json-glib, pkg-config, libpthread-stubs, libshout, libpsl, libsoup, libusrsctp, orc, python-setuptools, gobject-introspection, py3cairo, pygobject3, rtmpdump, srtp, taglib, libcuefile, libreplaygain, musepack, gstreamer, eigen, metis, libomp, suite-sparse, ceres-solver, abseil, jsoncpp, protobuf, boost, double-conversion, gl2ps, glew, libaec, hdf5, netcdf, assimp, hunspell, libmng, md4c, qt, pyqt, utf8cpp, vtk, opencv, bullet, libccd, octomap, fcl, flann, fmt, ampl-mp, ipopt, nlopt, ode, open-scene-graph, spdlog, console_bridge, urdfdom_headers, urdfdom, dartsim, doxygen, freeimage, osrf/simulation/ignition-cmake2, python@3.11, libyaml, ruby, osrf/simulation/ignition-math6, ossp-uuid, osrf/simulation/ignition-common3, osrf/simulation/ignition-tools, osrf/simulation/ignition-msgs5, libzip, osrf/simulation/ignition-fuel-tools4, cppzmq, osrf/simulation/ignition-transport8, libtar, libzzip, osrf/simulation/ogre1.9, qt@5, qwt-qt5, osrf/simulation/tinyxml1, osrf/simulation/sdformat9, osrf/simulation/simbody and osrf/simulation/gazebo11

which one is the only use one?

mengchaoheng commented 4 months ago

when I select python3.9, run all instructions in MacOS Development Environment, make px4_sitl jmavsim success. but make px4_sitl gazebo-classic failed:

➜  PX4-Autopilot git:(9687324778) ✗ make px4_sitl gazebo-classic                    

[0/10] git submodule Tools/simulation/gazebo-classic/sitl_gazebo-classic
[5/10] Performing configure step for 'sitl_gazebo-classic'
-- install-prefix: /usr/local
-- cmake build type: RelWithDebInfo
-- The C compiler identification is AppleClang 15.0.0.15000100
-- The CXX compiler identification is AppleClang 15.0.0.15000100
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORTS_CXX17
-- Performing Test COMPILER_SUPPORTS_CXX17 - Success
-- Performing Test COMPILER_SUPPORTS_CXX14
-- Performing Test COMPILER_SUPPORTS_CXX14 - Success
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
-- Using C++17 standard
-- ccache enabled (export CCACHE_DISABLE=1 to disable)
-- Found Boost: /usr/local/lib/cmake/Boost-1.84.0/BoostConfig.cmake (found suitable version "1.84.0", minimum required is "1.58") found components: system thread filesystem 
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'bullet>=2.82'
--   Found bullet, version 3.25
-- Found assimp: /usr/local/Cellar/assimp/5.3.1/include (found version "5.3.0") 
-- Found Threads: TRUE  
-- Found DART: /usr/local/include (Required is at least version "6.6") found components: dart 
-- Found Boost: /usr/local/lib/cmake/Boost-1.84.0/BoostConfig.cmake (found suitable version "1.84.0", minimum required is "1.40.0") found components: thread system filesystem program_options regex iostreams date_time 
-- Found ZLIB: /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/lib/libz.tbd (found version "1.2.12")  
-- Looking for ignition-math6 -- found version 6.15.1
-- Searching for dependencies of ignition-math6
-- Looking for OGRE...
-- OGRE_PREFIX_WATCH changed.
-- Checking for module 'OGRE'
--   Found OGRE, version 1.9.0
-- Found Ogre Ghadamon (1.9.0)
-- Found OGRE: optimized;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreMain.dylib;debug;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreMain.dylib
-- Looking for OGRE_Paging...
-- Found OGRE_Paging: optimized;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgrePaging.dylib;debug;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgrePaging.dylib
-- Looking for OGRE_Terrain...
-- Found OGRE_Terrain: optimized;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreTerrain.dylib;debug;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreTerrain.dylib
-- Looking for OGRE_Property...
-- Found OGRE_Property: optimized;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreProperty.dylib;debug;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreProperty.dylib
-- Looking for OGRE_RTShaderSystem...
-- Found OGRE_RTShaderSystem: optimized;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreRTShaderSystem.dylib;debug;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreRTShaderSystem.dylib
-- Looking for OGRE_Volume...
-- Found OGRE_Volume: optimized;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreVolume.dylib;debug;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreVolume.dylib
-- Looking for OGRE_Overlay...
-- Found OGRE_Overlay: optimized;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreOverlay.dylib;debug;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreOverlay.dylib
-- Looking for ignition-math6 -- found version 6.15.1
-- Looking for ignition-transport8 -- found version 8.5.0
-- Searching for dependencies of ignition-transport8
-- Config-file not installed for ZeroMQ -- checking for pkg-config
-- Checking for module 'libzmq >= 4'
--   Found libzmq, version 4.3.5
-- Found ZeroMQ: TRUE (Required is at least version "4") 
-- Found UUID: TRUE  
-- Looking for ignition-msgs5 -- found version 5.11.0
-- Searching for dependencies of ignition-msgs5
-- Looking for ignition-math6 -- found version 6.15.1
-- Checking for module 'tinyxml2'
--   Found tinyxml2, version 10.0.0
-- Looking for ignition-msgs5 -- found version 5.11.0
-- Looking for ignition-common3 -- found version 3.17.0
-- Searching for dependencies of ignition-common3
-- Looking for dlfcn.h - found
-- Looking for libdl - found
-- Found DL: TRUE  
-- Searching for <ignition-common3> component [graphics]
-- Looking for ignition-common3-graphics -- found version 3.17.0
-- Searching for dependencies of ignition-common3-graphics
-- Looking for ignition-math6 -- found version 6.15.1
-- Looking for ignition-fuel_tools4 -- found version 4.9.1
-- Searching for dependencies of ignition-fuel_tools4
-- Found CURL: /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/lib/libcurl.tbd (found version "8.4.0")  
-- Checking for module 'jsoncpp'
--   Found jsoncpp, version 1.9.4
-- Found JSONCPP: TRUE  
-- Checking for module 'yaml-0.1'
--   Found yaml-0.1, version 0.2.5
-- Found YAML: TRUE  
-- Checking for module 'libzip'
--   Found libzip, version 1.10.1
-- Found ZIP: TRUE  
-- Looking for ignition-common3 -- found version 3.17.0
-- Looking for ignition-math6 -- found version 6.15.1
-- Looking for ignition-msgs5 -- found version 5.11.0
-- Checking for one of the modules 'glib-2.0'
CMake Warning (dev) at CMakeLists.txt:54 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.12.2", minimum required is "3") 
-- Found OpenCV: /usr/local/Cellar/opencv/4.9.0_3 (found version "4.9.0") 
-- Found TinyXML: /usr/local/lib/libtinyxml.dylib  
-- Checking for module 'gstreamer-1.0 >= 1.0'
--   Found gstreamer-1.0, version 1.22.10
-- Checking for module 'gstreamer-base-1.0 >= 1.0'
--   Found gstreamer-base-1.0, version 1.22.10
-- Checking for module 'gstreamer-app-1.0 >= 1.0'
--   Found gstreamer-app-1.0, version 1.22.10
-- Found GStreamer: GSTREAMER_INCLUDE_DIRS;GSTREAMER_LIBRARIES;GSTREAMER_VERSION;GSTREAMER_BASE_INCLUDE_DIRS;GSTREAMER_BASE_LIBRARIES (Required is at least version "1.0") 
-- Checking for one of the modules 'icu-uc'
-- Checking for module 'OGRE'
--   Found OGRE, version 1.9.0
CMake Deprecation Warning at external/OpticalFlow/CMakeLists.txt:34 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at external/OpticalFlow/external/klt_feature_tracker/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Building klt_feature_tracker without catkin
-- Building OpticalFlow with OpenCV
-- Found MAVLink: /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/mavlink (found version "2.0") 
-- catkin DISABLED
-- Found Protobuf: /usr/local/lib/libprotobuf.dylib (found version "4.25.3") 
-- Checking for module 'protobuf'
--   Found protobuf, version 25.3.0
-- Gazebo version: 11.14
-- Found GStreamer: adding gst_camera_plugin
-- Found GStreamer: adding gst_video_stream_widget
-- Configuring done (60.4s)
-- Generating done (1.3s)
-- Build files have been written to: /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic
[6/10] Performing build step for 'sitl_gazebo-classic'
[1/142] Generating /Users/mch/Proj/Mac_DF/P...-classic/models/3DR_gps_mag/3DR_gps_mag.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/3DR_gps_mag/3DR_gps_mag.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/3DR_gps_mag/3DR_gps_mag.sdf
[2/142] Generating /Users/mch/Proj/Mac_DF/P...ic/models/advanced_plane/advanced_plane.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/advanced_plane/advanced_plane.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/advanced_plane/advanced_plane.sdf
[3/142] Generating /Users/mch/Proj/Mac_DF/P...ic/sitl_gazebo-classic/models/boat/boat.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/boat/boat.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/boat/boat.sdf
[4/142] Generating /Users/mch/Proj/Mac_DF/P...ic/sitl_gazebo-classic/models/c920/c920.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/c920/c920.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/c920/c920.sdf
[5/142] Generating /Users/mch/Proj/Mac_DF/P...zebo-classic/models/cloudship/cloudship.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/cloudship/cloudship.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/cloudship/cloudship.sdf
[6/142] Generating /Users/mch/Proj/Mac_DF/P...lassic/models/depth_camera/depth_camera.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/depth_camera/depth_camera.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/depth_camera/depth_camera.sdf
[7/142] Generating /Users/mch/Proj/Mac_DF/P...ic/sitl_gazebo-classic/models/iris/iris.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/iris/iris.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/iris/iris.sdf
[8/142] Generating /Users/mch/Proj/Mac_DF/P...-classic/models/matrice_100/matrice_100.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/matrice_100/matrice_100.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/matrice_100/matrice_100.sdf
[9/142] Generating /Users/mch/Proj/Mac_DF/P...ssic/models/mb1240-xl-ez4/mb1240-xl-ez4.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/mb1240-xl-ez4/mb1240-xl-ez4.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/mb1240-xl-ez4/mb1240-xl-ez4.sdf
[10/142] Generating /Users/mch/Proj/Mac_DF/...l_gazebo-classic/models/pixhawk/pixhawk.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/pixhawk/pixhawk.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/pixhawk/pixhawk.sdf
[11/142] Generating /Users/mch/Proj/Mac_DF/.../sitl_gazebo-classic/models/plane/plane.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/plane/plane.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/plane/plane.sdf
[12/142] Generating /Users/mch/Proj/Mac_DF/...l_gazebo-classic/models/px4flow/px4flow.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/px4flow/px4flow.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/px4flow/px4flow.sdf
[13/142] Generating /Users/mch/Proj/Mac_DF/...ic/models/quadtailsitter/quadtailsitter.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/quadtailsitter/quadtailsitter.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/quadtailsitter/quadtailsitter.sdf
[14/142] Generating /Users/mch/Proj/Mac_DF/...gazebo-classic/models/r1_rover/r1_rover.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/r1_rover/r1_rover.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/r1_rover/r1_rover.sdf
[15/142] Generating /Users/mch/Proj/Mac_DF/...ic/sitl_gazebo-classic/models/r200/r200.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/r200/r200.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/r200/r200.sdf
[16/142] Generating /Users/mch/Proj/Mac_DF/.../sitl_gazebo-classic/models/rover/rover.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/rover/rover.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/rover/rover.sdf
[17/142] Generating /Users/mch/Proj/Mac_DF/.../sitl_gazebo-classic/models/sf10a/sf10a.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/sf10a/sf10a.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/sf10a/sf10a.sdf
[18/142] Generating /Users/mch/Proj/Mac_DF/...ssic/models/standard_vtol/standard_vtol.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/standard_vtol/standard_vtol.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/standard_vtol/standard_vtol.sdf
[19/142] Generating /Users/mch/Proj/Mac_DF/...s/standard_vtol_drop/standard_vtol_drop.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/standard_vtol_drop/standard_vtol_drop.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/standard_vtol_drop/standard_vtol_drop.sdf
[20/142] Generating /Users/mch/Proj/Mac_DF/...bo-classic/models/tailsitter/tailsitter.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/tailsitter/tailsitter.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/tailsitter/tailsitter.sdf
[21/142] Generating /Users/mch/Proj/Mac_DF/...zebo-classic/models/tiltrotor/tiltrotor.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/tiltrotor/tiltrotor.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/tiltrotor/tiltrotor.sdf
[22/142] Generating /Users/mch/Proj/Mac_DF/...lassic/models/typhoon_h480/typhoon_h480.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/typhoon_h480/typhoon_h480.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/models/typhoon_h480/typhoon_h480.sdf
[27/142] Linking CXX shared library libmav_msgs.dylib
ld: warning: ignoring duplicate libraries: '-ldl', '-lm'
[30/142] Linking CXX shared library libnav_msgs.dylib
ld: warning: ignoring duplicate libraries: '-ldl', '-lm'
[35/142] Linking CXX shared library libphysics_msgs.dylib
ld: warning: ignoring duplicate libraries: '-ldl', '-lm'
[38/142] Linking CXX shared library libstd_msgs.dylib
ld: warning: ignoring duplicate libraries: '-ldl', '-lm'
[61/142] Linking CXX shared library libsensor_msgs.dylib
ld: warning: ignoring duplicate libraries: '-ldl', '-lm'
[63/142] Linking CXX shared library libgazebo_airspeed_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[65/142] Linking CXX shared library libgazebo_camera_manager_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[67/142] Linking CXX shared library libgazebo_gps_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[69/142] Linking CXX shared library libgazebo_groundtruth_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[71/142] Linking CXX shared library libgazebo_irlock_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[73/142] Linking CXX shared library libgazebo_random_velocity_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[75/142] Linking CXX shared library libgazebo_lidar_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[77/142] Linking CXX shared library libgazebo_opticalflow_mockup_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[79/142] Building CXX object CMakeFiles/gaz...co_plugin.dir/src/gazebo_aruco_plugin.cpp.o
FAILED: CMakeFiles/gazebo_aruco_plugin.dir/src/gazebo_aruco_plugin.cpp.o 
/usr/local/bin/ccache /Library/Developer/CommandLineTools/usr/bin/c++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_IOSTREAMS_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DDART_ACTIVE_LOG_LEVEL=2 -DDART_HAVE_spdlog=1 -DFMT_HEADER_ONLY=1 -DFMT_SHARED -DLIBBULLET_VERSION=3.25 -DLIBBULLET_VERSION_GT_282 -DPROTOBUF_USE_DLLS -DSPDLOG_FMT_EXTERNAL -Dgazebo_aruco_plugin_EXPORTS -I/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/include -I/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic -I/usr/local/include/eigen3/eigen3 -I/usr/local/include/gazebo-11/gazebo/msgs -I/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/mavlink -I/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/mavlink/mavlink/v2.0 -I/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/external/OpticalFlow/include -I/usr/local/Cellar/gstreamer/1.22.10/include/gstreamer-1.0 -I/usr/local/Cellar/glib/2.78.4/include -I/usr/local/Cellar/glib/2.78.4/include/glib-2.0 -I/usr/local/Cellar/glib/2.78.4/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre2/10.42/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/ffi -isystem /usr/local/include -isystem /usr/local/include/gazebo-11 -isystem /usr/local/Cellar/bullet/3.25/include/bullet -isystem /usr/local/Cellar/bullet/3.25/include -isystem /usr/local/include/simbody -isystem /usr/local/include/sdformat-9.10 -isystem /usr/local/include/ignition/math6 -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/include/OGRE -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/include -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/include/OGRE/Terrain -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/include/OGRE/Paging -isystem /usr/local/include/ignition/transport8 -isystem /usr/local/include/ignition/msgs5 -isystem /usr/local/include/ignition/common3 -isystem /usr/local/include/ignition/fuel_tools4 -F/usr/local/opt/qt@5/lib -isystem /usr/local/opt/qt@5/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt@5/./mkspecs/macx-clang -isystem /usr/local/include/eigen3 -isystem /usr/local/Cellar/opencv/4.9.0_3/include/opencv4 -isystem /usr/local/Cellar/assimp/5.3.1/include -isystem /usr/local/include/sdformat-9.10/sdf/.. -isystem /usr/local/include/ignition/cmake2 -O2 -g -DNDEBUG -std=gnu++17 -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk -fPIC -F/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks  -Wno-deprecated-declarations -Wno-address-of-packed-member -mfpmath=sse -msse -msse2 -msse3 -mssse3 -MD -MT CMakeFiles/gazebo_aruco_plugin.dir/src/gazebo_aruco_plugin.cpp.o -MF CMakeFiles/gazebo_aruco_plugin.dir/src/gazebo_aruco_plugin.cpp.o.d -o CMakeFiles/gazebo_aruco_plugin.dir/src/gazebo_aruco_plugin.cpp.o -c /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/src/gazebo_aruco_plugin.cpp
In file included from /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/src/gazebo_aruco_plugin.cpp:31:
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/include/gazebo_aruco_plugin.h:42:10: fatal error: 'opencv2/aruco/dictionary.hpp' file not found
#include <opencv2/aruco/dictionary.hpp>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
FAILED: external/Stamp/sitl_gazebo-classic/sitl_gazebo-classic-build /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/external/Stamp/sitl_gazebo-classic/sitl_gazebo-classic-build 
cd /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic && /usr/local/Cellar/cmake/3.28.3/bin/cmake --build /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic -- -j 1
ninja: build stopped: subcommand failed.
make: *** [px4_sitl] Error 1
➜  PX4-Autopilot git:(9687324778) ✗ 
mengchaoheng commented 4 months ago

another version v1.13.0:

➜  PX4-Autopilot git:(6823cbc414) ✗ make px4_sitl gazebo 
[0/10] git submodule Tools/sitl_gazebo
[5/10] Performing configure step for 'sitl_gazebo'
-- install-prefix: /usr/local
-- cmake build type: RelWithDebInfo
-- The C compiler identification is AppleClang 15.0.0.15000100
-- The CXX compiler identification is AppleClang 15.0.0.15000100
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test COMPILER_SUPPORTS_CXX17
-- Performing Test COMPILER_SUPPORTS_CXX17 - Success
-- Performing Test COMPILER_SUPPORTS_CXX14
-- Performing Test COMPILER_SUPPORTS_CXX14 - Success
-- Performing Test COMPILER_SUPPORTS_CXX11
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
-- Using C++17 standard
-- ccache enabled (export CCACHE_DISABLE=1 to disable)
-- Found Boost: /usr/local/lib/cmake/Boost-1.84.0/BoostConfig.cmake (found suitable version "1.84.0", minimum required is "1.58") found components: system thread filesystem 
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") 
-- Checking for module 'bullet>=2.82'
--   Found bullet, version 3.25
-- Found assimp: /usr/local/Cellar/assimp/5.3.1/include (found version "5.3.0") 
-- Found Threads: TRUE  
-- Found DART: /usr/local/include (Required is at least version "6.6") found components: dart 
-- Found Boost: /usr/local/lib/cmake/Boost-1.84.0/BoostConfig.cmake (found suitable version "1.84.0", minimum required is "1.40.0") found components: thread system filesystem program_options regex iostreams date_time 
-- Found ZLIB: /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/lib/libz.tbd (found version "1.2.12")  
-- Looking for ignition-math6 -- found version 6.15.1
-- Searching for dependencies of ignition-math6
-- Looking for OGRE...
-- OGRE_PREFIX_WATCH changed.
-- Checking for module 'OGRE'
--   Found OGRE, version 1.9.0
-- Found Ogre Ghadamon (1.9.0)
-- Found OGRE: optimized;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreMain.dylib;debug;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreMain.dylib
-- Looking for OGRE_Paging...
-- Found OGRE_Paging: optimized;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgrePaging.dylib;debug;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgrePaging.dylib
-- Looking for OGRE_Terrain...
-- Found OGRE_Terrain: optimized;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreTerrain.dylib;debug;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreTerrain.dylib
-- Looking for OGRE_Property...
-- Found OGRE_Property: optimized;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreProperty.dylib;debug;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreProperty.dylib
-- Looking for OGRE_RTShaderSystem...
-- Found OGRE_RTShaderSystem: optimized;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreRTShaderSystem.dylib;debug;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreRTShaderSystem.dylib
-- Looking for OGRE_Volume...
-- Found OGRE_Volume: optimized;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreVolume.dylib;debug;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreVolume.dylib
-- Looking for OGRE_Overlay...
-- Found OGRE_Overlay: optimized;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreOverlay.dylib;debug;/usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/lib/libOgreOverlay.dylib
-- Looking for ignition-math6 -- found version 6.15.1
-- Looking for ignition-transport8 -- found version 8.5.0
-- Searching for dependencies of ignition-transport8
-- Config-file not installed for ZeroMQ -- checking for pkg-config
-- Checking for module 'libzmq >= 4'
--   Found libzmq, version 4.3.5
-- Found ZeroMQ: TRUE (Required is at least version "4") 
-- Found UUID: TRUE  
-- Looking for ignition-msgs5 -- found version 5.11.0
-- Searching for dependencies of ignition-msgs5
-- Looking for ignition-math6 -- found version 6.15.1
-- Checking for module 'tinyxml2'
--   Found tinyxml2, version 10.0.0
-- Looking for ignition-msgs5 -- found version 5.11.0
-- Looking for ignition-common3 -- found version 3.17.0
-- Searching for dependencies of ignition-common3
-- Looking for dlfcn.h - found
-- Looking for libdl - found
-- Found DL: TRUE  
-- Searching for <ignition-common3> component [graphics]
-- Looking for ignition-common3-graphics -- found version 3.17.0
-- Searching for dependencies of ignition-common3-graphics
-- Looking for ignition-math6 -- found version 6.15.1
-- Looking for ignition-fuel_tools4 -- found version 4.9.1
-- Searching for dependencies of ignition-fuel_tools4
-- Found CURL: /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/usr/lib/libcurl.tbd (found version "8.4.0")  
-- Checking for module 'jsoncpp'
--   Found jsoncpp, version 1.9.4
-- Found JSONCPP: TRUE  
-- Checking for module 'yaml-0.1'
--   Found yaml-0.1, version 0.2.5
-- Found YAML: TRUE  
-- Checking for module 'libzip'
--   Found libzip, version 1.10.1
-- Found ZIP: TRUE  
-- Looking for ignition-common3 -- found version 3.17.0
-- Looking for ignition-math6 -- found version 6.15.1
-- Looking for ignition-msgs5 -- found version 5.11.0
-- Checking for one of the modules 'glib-2.0'
CMake Warning (dev) at CMakeLists.txt:54 (find_package):
  Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules
  are removed.  Run "cmake --help-policy CMP0148" for policy details.  Use
  the cmake_policy command to set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found PythonInterp: /usr/local/bin/python3 (found suitable version "3.12.2", minimum required is "3") 
-- Found OpenCV: /usr/local/Cellar/opencv/4.9.0_3 (found version "4.9.0") 
-- Found TinyXML: /usr/local/lib/libtinyxml.dylib  
-- Checking for module 'gstreamer-1.0 >= 1.0'
--   Found gstreamer-1.0, version 1.22.10
-- Checking for module 'gstreamer-base-1.0 >= 1.0'
--   Found gstreamer-base-1.0, version 1.22.10
-- Checking for module 'gstreamer-app-1.0 >= 1.0'
--   Found gstreamer-app-1.0, version 1.22.10
-- Found GStreamer: GSTREAMER_INCLUDE_DIRS;GSTREAMER_LIBRARIES;GSTREAMER_VERSION;GSTREAMER_BASE_INCLUDE_DIRS;GSTREAMER_BASE_LIBRARIES (Required is at least version "1.0") 
-- Checking for one of the modules 'icu-uc'
-- Checking for module 'OGRE'
--   Found OGRE, version 1.9.0
CMake Deprecation Warning at external/OpticalFlow/CMakeLists.txt:34 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at external/OpticalFlow/external/klt_feature_tracker/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

-- Building klt_feature_tracker without catkin
-- Building OpticalFlow with OpenCV
-- Found MAVLink: /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/mavlink (found version "2.0") 
-- catkin DISABLED
-- Found Protobuf: /usr/local/lib/libprotobuf.dylib (found version "4.25.3") 
-- Checking for module 'protobuf'
--   Found protobuf, version 25.3.0
-- Gazebo version: 11.14
-- Found GStreamer: adding gst_camera_plugin
-- Found GStreamer: adding gst_video_stream_widget
-- Configuring done (12.1s)
-- Generating done (1.2s)
-- Build files have been written to: /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo
[6/10] Performing build step for 'sitl_gazebo'
[1/130] Generating /Users/mch/Proj/Mac_DF/P...ilot/Tools/sitl_gazebo/models/boat/boat.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/boat/boat.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/boat/boat.sdf
[2/130] Generating /Users/mch/Proj/Mac_DF/P...l_gazebo/models/3DR_gps_mag/3DR_gps_mag.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/3DR_gps_mag/3DR_gps_mag.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/3DR_gps_mag/3DR_gps_mag.sdf
[3/130] Generating /Users/mch/Proj/Mac_DF/P...ilot/Tools/sitl_gazebo/models/c920/c920.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/c920/c920.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/c920/c920.sdf
[4/130] Generating /Users/mch/Proj/Mac_DF/P.../sitl_gazebo/models/cloudship/cloudship.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/cloudship/cloudship.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/cloudship/cloudship.sdf
[5/130] Generating /Users/mch/Proj/Mac_DF/P...gazebo/models/depth_camera/depth_camera.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/depth_camera/depth_camera.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/depth_camera/depth_camera.sdf
[6/130] Generating /Users/mch/Proj/Mac_DF/P...ilot/Tools/sitl_gazebo/models/iris/iris.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/iris/iris.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/iris/iris.sdf
[7/130] Generating /Users/mch/Proj/Mac_DF/P...l_gazebo/models/matrice_100/matrice_100.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/matrice_100/matrice_100.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/matrice_100/matrice_100.sdf
[8/130] Generating /Users/mch/Proj/Mac_DF/P...zebo/models/mb1240-xl-ez4/mb1240-xl-ez4.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/mb1240-xl-ez4/mb1240-xl-ez4.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/mb1240-xl-ez4/mb1240-xl-ez4.sdf
[9/130] Generating /Users/mch/Proj/Mac_DF/P...ools/sitl_gazebo/models/pixhawk/pixhawk.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/pixhawk/pixhawk.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/pixhawk/pixhawk.sdf
[10/130] Generating /Users/mch/Proj/Mac_DF/...ot/Tools/sitl_gazebo/models/plane/plane.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/plane/plane.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/plane/plane.sdf
[11/130] Generating /Users/mch/Proj/Mac_DF/...ools/sitl_gazebo/models/px4flow/px4flow.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/px4flow/px4flow.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/px4flow/px4flow.sdf
[12/130] Generating /Users/mch/Proj/Mac_DF/...ls/sitl_gazebo/models/r1_rover/r1_rover.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/r1_rover/r1_rover.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/r1_rover/r1_rover.sdf
[13/130] Generating /Users/mch/Proj/Mac_DF/...ilot/Tools/sitl_gazebo/models/r200/r200.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/r200/r200.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/r200/r200.sdf
[14/130] Generating /Users/mch/Proj/Mac_DF/...ot/Tools/sitl_gazebo/models/rover/rover.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/rover/rover.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/rover/rover.sdf
[15/130] Generating /Users/mch/Proj/Mac_DF/...ot/Tools/sitl_gazebo/models/sf10a/sf10a.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/sf10a/sf10a.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/sf10a/sf10a.sdf
[16/130] Generating /Users/mch/Proj/Mac_DF/...zebo/models/standard_vtol/standard_vtol.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/standard_vtol/standard_vtol.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/standard_vtol/standard_vtol.sdf
[17/130] Generating /Users/mch/Proj/Mac_DF/...s/standard_vtol_drop/standard_vtol_drop.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/standard_vtol_drop/standard_vtol_drop.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/standard_vtol_drop/standard_vtol_drop.sdf
[18/130] Generating /Users/mch/Proj/Mac_DF/...itl_gazebo/models/tailsitter/tailsitter.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/tailsitter/tailsitter.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/tailsitter/tailsitter.sdf
[19/130] Generating /Users/mch/Proj/Mac_DF/.../sitl_gazebo/models/tiltrotor/tiltrotor.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/tiltrotor/tiltrotor.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/tiltrotor/tiltrotor.sdf
[20/130] Generating /Users/mch/Proj/Mac_DF/...gazebo/models/typhoon_h480/typhoon_h480.sdf
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/typhoon_h480/typhoon_h480.sdf.jinja -> /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/typhoon_h480/typhoon_h480.sdf
[26/130] Linking CXX shared library libmav_msgs.dylib
ld: warning: ignoring duplicate libraries: '-ldl', '-lm'
[31/130] Linking CXX shared library libnav_msgs.dylib
ld: warning: ignoring duplicate libraries: '-ldl', '-lm'
[34/130] Linking CXX shared library libphysics_msgs.dylib
ld: warning: ignoring duplicate libraries: '-ldl', '-lm'
[46/130] Linking CXX shared library libstd_msgs.dylib
ld: warning: ignoring duplicate libraries: '-ldl', '-lm'
[57/130] Linking CXX shared library libsensor_msgs.dylib
ld: warning: ignoring duplicate libraries: '-ldl', '-lm'
[59/130] Linking CXX shared library libgazebo_airspeed_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[61/130] Linking CXX shared library libgazebo_camera_manager_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[63/130] Linking CXX shared library libgazebo_gps_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[65/130] Linking CXX shared library libgazebo_groundtruth_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[67/130] Linking CXX shared library libgazebo_irlock_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[69/130] Linking CXX shared library libgazebo_lidar_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[71/130] Linking CXX shared library libgazebo_opticalflow_mockup_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[74/130] Linking CXX shared library libgazebo_sonar_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[76/130] Linking CXX shared library libgazebo_uuv_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[78/130] Linking CXX shared library libgazebo_vision_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[80/130] Linking CXX shared library libgazebo_controller_interface.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[82/130] Linking CXX shared library libgazebo_gimbal_controller_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[84/130] Linking CXX shared library libgazebo_imu_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[87/130] Linking CXX shared library libgazebo_mavlink_interface.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[89/130] Linking CXX shared library libgazebo_motor_model.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[91/130] Linking CXX shared library libgazebo_multirotor_base_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[93/130] Linking CXX shared library libgazebo_wind_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[96/130] Linking CXX shared library libgazebo_magnetometer_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[98/130] Linking CXX shared library libgazebo_barometer_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[100/130] Linking CXX shared library libgazebo_catapult_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[102/130] Linking CXX shared library libgazebo_usv_dynamics_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[104/130] Linking CXX shared library libgazebo_parachute_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[106/130] Linking CXX shared library libgazebo_airship_dynamics_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[108/130] Linking CXX shared library libgazebo_drop_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[110/130] Linking CXX shared library libgazebo_gst_camera_plugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[112/130] Linking CXX shared library libLiftDragPlugin.dylib
ld: warning: ignoring duplicate libraries: '-lBulletCollision', '-lBulletDynamics', '-lBulletSoftBody', '-lLinearMath', '-ldl', '-lglib-2.0', '-lgobject-2.0', '-licudata', '-licuuc', '-lintl', '-lm'
[114/130] Building CXX object CMakeFiles/ga...nclude/moc_gazebo_video_stream_widget.cpp.o
FAILED: CMakeFiles/gazebo_video_stream_widget.dir/include/moc_gazebo_video_stream_widget.cpp.o 
/usr/local/bin/ccache /Library/Developer/CommandLineTools/usr/bin/c++ -DBOOST_ATOMIC_DYN_LINK -DBOOST_ATOMIC_NO_LIB -DBOOST_DATE_TIME_DYN_LINK -DBOOST_DATE_TIME_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK -DBOOST_FILESYSTEM_NO_LIB -DBOOST_IOSTREAMS_DYN_LINK -DBOOST_IOSTREAMS_NO_LIB -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DBOOST_REGEX_DYN_LINK -DBOOST_REGEX_NO_LIB -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_THREAD_DYN_LINK -DBOOST_THREAD_NO_LIB -DDART_ACTIVE_LOG_LEVEL=2 -DDART_HAVE_spdlog=1 -DFMT_HEADER_ONLY=1 -DFMT_SHARED -DLIBBULLET_VERSION=3.25 -DLIBBULLET_VERSION_GT_282 -DPROTOBUF_USE_DLLS -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DSPDLOG_FMT_EXTERNAL -Dgazebo_video_stream_widget_EXPORTS -I/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/include -I/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo -I/usr/local/include/eigen3/eigen3 -I/usr/local/include/gazebo-11/gazebo/msgs -I/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/mavlink -I/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/external/OpticalFlow/include -I/usr/local/Cellar/gstreamer/1.22.10/include/gstreamer-1.0 -I/usr/local/Cellar/glib/2.78.4/include -I/usr/local/Cellar/glib/2.78.4/include/glib-2.0 -I/usr/local/Cellar/glib/2.78.4/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre2/10.42/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk/usr/include/ffi -isystem /usr/local/include -isystem /usr/local/include/gazebo-11 -isystem /usr/local/Cellar/bullet/3.25/include/bullet -isystem /usr/local/Cellar/bullet/3.25/include -isystem /usr/local/include/simbody -isystem /usr/local/include/sdformat-9.10 -isystem /usr/local/include/ignition/math6 -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/include/OGRE -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/include -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/include/OGRE/Terrain -isystem /usr/local/Cellar/ogre1.9/1.9-20160714-108ab0bcc69603dba32c0ffd4bbbc39051f421c9_10/include/OGRE/Paging -isystem /usr/local/include/ignition/transport8 -isystem /usr/local/include/ignition/msgs5 -isystem /usr/local/include/ignition/common3 -isystem /usr/local/include/ignition/fuel_tools4 -iframework /usr/local/opt/qt@5/lib -isystem /usr/local/opt/qt@5/lib/QtCore.framework/Headers -isystem /usr/local/opt/qt@5/./mkspecs/macx-clang -isystem /usr/local/include/eigen3 -isystem /usr/local/Cellar/opencv/4.9.0_3/include/opencv4 -isystem /usr/local/Cellar/assimp/5.3.1/include -isystem /usr/local/include/sdformat-9.10/sdf/.. -isystem /usr/local/include/ignition/cmake2 -isystem /usr/local/opt/qt@5/lib/QtWidgets.framework/Headers -isystem /usr/local/opt/qt@5/lib/QtGui.framework/Headers -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk/System/Library/Frameworks/OpenGL.framework/Headers -O2 -g -DNDEBUG -std=gnu++17 -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk -fPIC -F/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks  -Wno-deprecated-declarations -Wno-address-of-packed-member -mfpmath=sse -msse -msse2 -msse3 -mssse3 -fPIC -MD -MT CMakeFiles/gazebo_video_stream_widget.dir/include/moc_gazebo_video_stream_widget.cpp.o -MF CMakeFiles/gazebo_video_stream_widget.dir/include/moc_gazebo_video_stream_widget.cpp.o.d -o CMakeFiles/gazebo_video_stream_widget.dir/include/moc_gazebo_video_stream_widget.cpp.o -c /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp
In file included from /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:10:
In file included from /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/../../../../Tools/sitl_gazebo/include/gazebo_video_stream_widget.h:21:
In file included from /usr/local/include/gazebo-11/gazebo/gui/GuiPlugin.hh:20:
In file included from /usr/local/include/gazebo-11/gazebo/gui/qt.h:39:
In file included from /usr/local/opt/qt@5/lib/QtWidgets.framework/Headers/QAction:1:
In file included from /usr/local/opt/qt@5/lib/QtWidgets.framework/Headers/qaction.h:46:
/usr/local/include/QtWidgets/qwidget.h:577:26: error: incomplete type 'QAction' named in nested name specifier
        connect(result, &QAction::triggered, std::forward<Args>(args)...);
                         ^~~~~~~~~
/usr/local/include/QtGui/qevent.h:35:7: note: forward declaration of 'QAction'
class QAction;
      ^
In file included from /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:10:
In file included from /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/../../../../Tools/sitl_gazebo/include/gazebo_video_stream_widget.h:21:
In file included from /usr/local/include/gazebo-11/gazebo/gui/GuiPlugin.hh:20:
In file included from /usr/local/include/gazebo-11/gazebo/gui/qt.h:39:
In file included from /usr/local/opt/qt@5/lib/QtWidgets.framework/Headers/QAction:1:
In file included from /usr/local/opt/qt@5/lib/QtWidgets.framework/Headers/qaction.h:46:
/usr/local/include/QtWidgets/qwidget.h:584:26: error: incomplete type 'QAction' named in nested name specifier
        connect(result, &QAction::triggered, std::forward<Args>(args)...);
                         ^~~~~~~~~
/usr/local/include/QtGui/qevent.h:35:7: note: forward declaration of 'QAction'
class QAction;
      ^
In file included from /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:10:
In file included from /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/../../../../Tools/sitl_gazebo/include/gazebo_video_stream_widget.h:21:
In file included from /usr/local/include/gazebo-11/gazebo/gui/GuiPlugin.hh:20:
In file included from /usr/local/include/gazebo-11/gazebo/gui/qt.h:39:
In file included from /usr/local/opt/qt@5/lib/QtWidgets.framework/Headers/QAction:1:
In file included from /usr/local/opt/qt@5/lib/QtWidgets.framework/Headers/qaction.h:46:
/usr/local/include/QtWidgets/qwidget.h:602:26: error: incomplete type 'QAction' named in nested name specifier
        connect(result, &QAction::triggered, std::forward<Args>(args)...);
                         ^~~~~~~~~
/usr/local/include/QtGui/qevent.h:35:7: note: forward declaration of 'QAction'
class QAction;
      ^
In file included from /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:10:
In file included from /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/../../../../Tools/sitl_gazebo/include/gazebo_video_stream_widget.h:21:
In file included from /usr/local/include/gazebo-11/gazebo/gui/GuiPlugin.hh:20:
In file included from /usr/local/include/gazebo-11/gazebo/gui/qt.h:39:
In file included from /usr/local/opt/qt@5/lib/QtWidgets.framework/Headers/QAction:1:
In file included from /usr/local/opt/qt@5/lib/QtWidgets.framework/Headers/qaction.h:46:
/usr/local/include/QtWidgets/qwidget.h:609:26: error: incomplete type 'QAction' named in nested name specifier
        connect(result, &QAction::triggered, std::forward<Args>(args)...);
                         ^~~~~~~~~
/usr/local/include/QtGui/qevent.h:35:7: note: forward declaration of 'QAction'
class QAction;
      ^
In file included from /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:10:
In file included from /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/../../../../Tools/sitl_gazebo/include/gazebo_video_stream_widget.h:21:
In file included from /usr/local/include/gazebo-11/gazebo/gui/GuiPlugin.hh:20:
In file included from /usr/local/include/gazebo-11/gazebo/gui/qt.h:63:
In file included from /usr/local/include/QtWidgets/QMenuBar:1:
In file included from /usr/local/include/QtWidgets/qmenubar.h:8:
/usr/local/include/QtWidgets/qmenu.h:157:44: error: no member named 'menuObject' in 'QAction'
    { return qobject_cast<QMenu *>(action->menuObject()); }
                                   ~~~~~~  ^
In file included from /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:10:
In file included from /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/../../../../Tools/sitl_gazebo/include/gazebo_video_stream_widget.h:21:
/usr/local/include/gazebo-11/gazebo/gui/GuiPlugin.hh:46:11: error: no member named 'init' in 'QStyleOption'
      opt.init(this);
      ~~~ ^
/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:16:2: error: "This file was generated using the moc from 5.15.12. It"
#error "This file was generated using the moc from 5.15.12. It"
 ^
/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:17:2: error: "cannot be used with the include files from this version of Qt."
#error "cannot be used with the include files from this version of Qt."
 ^
/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:18:2: error: "(The moc has changed too much.)"
#error "(The moc has changed too much.)"
 ^
/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:35:1: error: use of undeclared identifier 'Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET'
QT_MOC_LITERAL(0, 0, 25), // "gazebo::VideoStreamWidget"
^
/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:29:5: note: expanded from macro 'QT_MOC_LITERAL'
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    ^
/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:36:1: error: use of undeclared identifier 'Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET'
QT_MOC_LITERAL(1, 26, 8), // "OnButton"
^
/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:29:5: note: expanded from macro 'QT_MOC_LITERAL'
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    ^
/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:37:1: error: use of undeclared identifier 'Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET'
QT_MOC_LITERAL(2, 35, 0) // ""
^
/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:29:5: note: expanded from macro 'QT_MOC_LITERAL'
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    ^
/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:79:1: error: unknown type name 'QT_INIT_METAOBJECT'
QT_INIT_METAOBJECT const QMetaObject gazebo::VideoStreamWidget::staticMetaObject = { {
^
/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp:79:37: error: expected ';' after top level declarator
QT_INIT_METAOBJECT const QMetaObject gazebo::VideoStreamWidget::staticMetaObject = { {
                                    ^
                                    ;
14 errors generated.
[115/130] Building CXX object CMakeFiles/Fo...ual.dir/src/force_visual/force_visual.cpp.o
ninja: build stopped: subcommand failed.
FAILED: external/Stamp/sitl_gazebo/sitl_gazebo-build /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/external/Stamp/sitl_gazebo/sitl_gazebo-build 
cd /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo && /usr/local/Cellar/cmake/3.28.3/bin/cmake --build /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo -- -j 2
ninja: build stopped: subcommand failed.
make: *** [px4_sitl] Error 1
mengchaoheng commented 4 months ago

fmu-v5 error too:

 PX4-Autopilot git:(6823cbc414) ✗ make px4_fmu-v5                        
[0/1143] git submodule src/drivers/uavcan/libuavcan
[1/1143] Running dsdl compiler
FAILED: libuavcan_dsdlc_run.stamp /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_fmu-v5_default/libuavcan_dsdlc_run.stamp 
cd /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/libuavcan && /usr/local/bin/python3 /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdlc test/dsdl_test/root_ns_a test/dsdl_test/root_ns_b /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/libuavcan/../dsdl/uavcan -Oinclude/dsdlc_generated && /usr/local/Cellar/cmake/3.28.3/bin/cmake -E touch /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_fmu-v5_default/libuavcan_dsdlc_run.stamp
Traceback (most recent call last):
  File "/Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdlc", line 59, in <module>
    from libuavcan_dsdl_compiler import run as dsdlc_run
  File "/Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py", line 18, in <module>
    from uavcan import dsdl
  File "/Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan/uavcan/__init__.py", line 15, in <module>
    import uavcan.transport as transport
  File "/Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan/uavcan/transport.py", line 203, in <module>
    class ArrayValue(BaseValue, collections.MutableSequence):
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'MutableSequence'
[2/1143] PX4 UAVCAN dsdl compiler
FAILED: src/drivers/uavcan/px4_uavcan_dsdlc_run.stamp /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_fmu-v5_default/src/drivers/uavcan/px4_uavcan_dsdlc_run.stamp 
cd /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_fmu-v5_default/src/drivers/uavcan && /usr/local/bin/python3 /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdlc --outdir /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_fmu-v5_default/src/drivers/uavcan/include/dsdlc_generated /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/dsdl/ardupilot /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/dsdl/com /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/dsdl/cuav /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/dsdl/dronecan /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/dsdl/uavcan && /usr/local/Cellar/cmake/3.28.3/bin/cmake -E touch px4_uavcan_dsdlc_run.stamp
Traceback (most recent call last):
  File "/Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdlc", line 59, in <module>
    from libuavcan_dsdl_compiler import run as dsdlc_run
  File "/Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/__init__.py", line 18, in <module>
    from uavcan import dsdl
  File "/Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan/uavcan/__init__.py", line 15, in <module>
    import uavcan.transport as transport
  File "/Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/pyuavcan/uavcan/transport.py", line 203, in <module>
    class ArrayValue(BaseValue, collections.MutableSequence):
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'MutableSequence'
[5/1143] Generating /Users/mch/Proj/Mac_DF/...topilot/platforms/nuttx/NuttX/nuttx/.config
ninja: build stopped: subcommand failed.
make: *** [px4_fmu-v5] Error 1
mengchaoheng commented 3 months ago

the error fix by

brew uninstall --ignore-dependencies QT

But make px4_sitl gazebo still failed.

➜  PX4-Autopilot git:(6823cbc414) ✗ make px4_sitl gazebo                                                            
[0/4] Performing build step for 'sitl_gazebo'
ninja: no work to do.
[3/4] cd /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/tmp && /Users/mch/Proj/Mac_D... /Users/mch/Proj/Mac_DF/PX4-Autopilot /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_defaul
SITL ARGS
sitl_bin: /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/bin/px4
debugger: none
program: gazebo
model: none
world: none
src_path: /Users/mch/Proj/Mac_DF/PX4-Autopilot
build_path: /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default
empty model, setting iris as default
GAZEBO_PLUGIN_PATH :/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo
GAZEBO_MODEL_PATH :/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models
LD_LIBRARY_PATH :/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo
empty world, setting empty.world as default
Using: /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/iris/iris.sdf
Warning [parser.cc:833] XML Attribute[version] in element[sdf] not defined in SDF, ignoring.
gzserver(20729,0x204d8b240) malloc: Incorrect checksum for freed object 0x7f8f6cb475a0: probably modified after being freed.
Corrupt value: 0x4d555458
gzserver(20729,0x204d8b240) malloc: *** set a breakpoint in malloc_error_break to debug
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_run.sh: line 217: 20729 Abort trap: 6           gzserver $verbose $world_path $ros_args
SITL COMMAND: "/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/bin/px4" "/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default"/etc -s etc/init.d-posix/rcS -t "/Users/mch/Proj/Mac_DF/PX4-Autopilot"/test_data
Creating symlink /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/etc -> /Users/mch/Proj/Mac_DF/PX4-Autopilo

_____  __   __    ___ 
| ___ \ \ \ / /   /   |
| |_/ /  \ V /   / /| |
|  __/   /   \  / /_| |
| |     / /^\ \ \___  |
\_|     \/   \/     |_/

px4 starting.

INFO  [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 0
INFO  [init] found model autostart file as SYS_AUTOSTART=10016
INFO  [param] selected parameter default file eeprom/parameters_10016
[param] parameter file not found, creating eeprom/parameters_10016
  SYS_AUTOCONFIG: curr: 0 -> new: 1
  SYS_AUTOSTART: curr: 0 -> new: 10016
  CAL_ACC0_ID: curr: 0 -> new: 1310988
  CAL_GYRO0_ID: curr: 0 -> new: 1310988
  CAL_ACC1_ID: curr: 0 -> new: 1310996
  CAL_GYRO1_ID: curr: 0 -> new: 1310996
  CAL_ACC2_ID: curr: 0 -> new: 1311004
  CAL_GYRO2_ID: curr: 0 -> new: 1311004
* CAL_MAG0_ID: curr: 0 -> new: 197388
* CAL_MAG1_ID: curr: 0 -> new: 197644
* SENS_BOARD_X_OFF: curr: 0.0000 -> new: 0.0000
* SENS_DPRES_OFF: curr: 0.0000 -> new: 0.0010
* SYS_AUTOCONFIG: curr: 1 -> new: 0
* IMU_INTEG_RATE: curr: 200 -> new: 250
INFO  [dataman] data manager file './dataman' size is 7866640 bytes
PX4 SIM HOST: localhost
INFO  [simulator] Waiting for simulator to accept connection on TCP port 4560
Gazebo multi-robot simulator, version 11.14.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
[Err] [ConnectionManager.cc:121] Failed to connect to master in 30 seconds.
[Err] [gazebo_shared.cc:78] Unable to initialize transport.
[Err] [gazebo_client.cc:56] Unable to setup Gazebo
gcc^CERROR [px4] Startup script returned with return value: 2
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_run.sh: line 260: kill: (20729) - No such process
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_run.sh: line 262: kill: (20736) - No such process
ninja: build stopped: interrupted by user.
make: *** [px4_sitl] Interrupt: 2

➜  PX4-Autopilot git:(6823cbc414) ✗ gcc --version
Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: x86_64-apple-darwin23.3.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
➜  PX4-Autopilot git:(6823cbc414) ✗ which python
python not found
➜  PX4-Autopilot git:(6823cbc414) ✗ which python3
/usr/local/bin/python3
➜  PX4-Autopilot git:(6823cbc414) ✗ python3 --version
Python 3.12.2
➜  PX4-Autopilot git:(6823cbc414) ✗ gazebo -v
Gazebo multi-robot simulator, version 11.14.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

➜  PX4-Autopilot git:(6823cbc414) ✗ 
mengchaoheng commented 3 months ago

what is this?

gzserver(20729,0x204d8b240) malloc: Incorrect checksum for freed object 0x7f8f6cb475a0: probably modified after being freed.
Corrupt value: 0x4d555458
gzserver(20729,0x204d8b240) malloc: *** set a breakpoint in malloc_error_break to debug
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_run.sh: line 217: 20729 Abort trap: 6           gzserver $verbose $world_path $ros_args
MBrandt-NASA commented 3 months ago

the error fix by

brew uninstall --ignore-dependencies QT

I just want to thank you for sharing:

brew uninstall --ignore-dependencies QT

That totally fixed my PX4 gazebo-classic QT build errors on MacOS 13.6.1 Ventura...

Now,

make px4_sitl gazebo-classic

works like a champ.

anhtuanqn1002 commented 3 months ago

what is this?

gzserver(20729,0x204d8b240) malloc: Incorrect checksum for freed object 0x7f8f6cb475a0: probably modified after being freed.
Corrupt value: 0x4d555458
gzserver(20729,0x204d8b240) malloc: *** set a breakpoint in malloc_error_break to debug
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_run.sh: line 217: 20729 Abort trap: 6           gzserver $verbose $world_path $ros_args

I have the same problem on MacOS Sonoma 14.4.1 M1.

image

Did you resolve it, @mengchaoheng ?

mengchaoheng commented 2 months ago

@anhtuanqn1002 not yet, need help

mengchaoheng commented 2 months ago

@MBrandt-NASA any suggestion for our error ?

mengchaoheng commented 2 months ago

if Comment out line 71 of PX4-Autopilot/cmake/px4_add_common_flags.cmake:

# -Werror

make px4_fmu-v5 will work:


➜  PX4-Autopilot git:(heads/v1.13.3) ✗ make px4_fmu-v5
[0/1162] git submodule src/modules/mavlink/mavlink
[8/1162] git submodule src/drivers/gps/devices
[13/1162] Generating Mavlink development: src/modules/mavlink/mavlink/message_definitions/v1.0/development.xml
Validating /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/development.xml
Parsing /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/development.xml
Validating /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/standard.xml
Parsing /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/standard.xml
Validating /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/common.xml
Parsing /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/common.xml
Validating /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/minimal.xml
Parsing /Users/mch/Proj/Mac_DF/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/minimal.xml
Merged enum MAV_CMD
Merged enum MAV_CMD
Found 229 MAVLink message types in 4 XML files
Generating C implementation in directory /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_fmu-v5_default/mavlink/development
Generating C implementation in directory /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_fmu-v5_default/mavlink/standard
Generating C implementation in directory /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_fmu-v5_default/mavlink/common
Generating C implementation in directory /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_fmu-v5_default/mavlink/minimal
Copying fixed headers for protocol 2.0 to /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_fmu-v5_default/mavlink
[15/1162] git submodule src/drivers/uavcan/libuavcan
[16/1162] git submodule platforms/nuttx/NuttX/nuttx
[19/1162] Running dsdl compiler
/Users/mch/Proj/Mac_DF/PX4-Autopilot/src/drivers/uavcan/libuavcan/libuavcan/dsdl_compiler/libuavcan_dsdl_compiler/pyratemp.py:273: SyntaxWarning: invalid escape sequence '\#'
  """Replace special characters by their escape sequence.
[83/1162] Generating component_general.json and checksums.h
/Users/mch/Proj/Mac_DF/PX4-Autopilot/src/lib/component_information/generate_component_general.py:23: SyntaxWarning: invalid escape sequence '\s'
  version_search = re.search('PX4_GIT_TAG_OR_BRANCH_NAME\s+"(.+)"', line)
[1160/1162] Linking CXX executable px4_fmu-v5_default.elf
Memory region         Used Size  Region Size  %age Used
      FLASH_ITCM:          0 GB      2016 KB      0.00%
      FLASH_AXIM:     1976721 B      2016 KB     95.75%
        ITCM_RAM:          0 GB        16 KB      0.00%
        DTCM_RAM:          0 GB       128 KB      0.00%
           SRAM1:       45544 B       368 KB     12.09%
           SRAM2:          0 GB        16 KB      0.00%
[1162/1162] Creating /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_fmu-v5_default/px4_fmu-v5_default.px4
➜  PX4-Autopilot git:(heads/v1.13.3) ✗  ```
mengchaoheng commented 2 months ago

for python I use --break-system-packages:

$  python3 -m pip install --user xxx --break-system-packages 

to run python3 -m pip install --user xxx.

and for QT:

 brew list --versions qt     
brew list --versions pyqt

and ubinstall all qt and pyqt except @5, for me that is :

brew uninstall --ignore-dependencies qt
brew uninstall --ignore-dependencies pyqt

and then:

 brew install  pyqt@5
brew install qt@5 
mengchaoheng commented 2 months ago

now still have error:

 PX4-Autopilot git:(heads/v1.13.3) ✗ make px4_sitl gazebo           
[0/4] Performing build step for 'sitl_gazebo'
ninja: no work to do.
[3/4] cd /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/tmp && /Users/mch/Proj/Ma...sers/mch/Proj/Mac_DF/PX4-Autopilot /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_defaul
SITL ARGS
sitl_bin: /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/bin/px4
debugger: none
program: gazebo
model: none
world: none
src_path: /Users/mch/Proj/Mac_DF/PX4-Autopilot
build_path: /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default
empty model, setting iris as default
GAZEBO_PLUGIN_PATH :/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo
GAZEBO_MODEL_PATH :/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models
LD_LIBRARY_PATH :/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo
empty world, setting empty.world as default
Using: /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/iris/iris.sdf
Warning [parser.cc:833] XML Attribute[version] in element[sdf] not defined in SDF, ignoring.
gzserver(24755,0x204aa5240) malloc: Incorrect checksum for freed object 0x7fc70c1af470: probably modified after being freed.
Corrupt value: 0x4d555458
gzserver(24755,0x204aa5240) malloc: *** set a breakpoint in malloc_error_break to debug
/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_run.sh: line 217: 24755 Abort trap: 6           gzserver $verbose $world_path $ros_args
SITL COMMAND: "/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/bin/px4" "/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default"/etc -s etc/init.d-posix/rcS -t "/Users/mch/Proj/Mac_DF/PX4-Autopilot"/test_data
Creating symlink /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/etc -> /Users/mch/Proj/Mac_DF/PX4-Autopilo

_____  __   __    ___ 
| ___ \ \ \ / /   /   |
| |_/ /  \ V /   / /| |
|  __/   /   \  / /_| |
| |     / /^\ \ \___  |
\_|     \/   \/     |_/

px4 starting.

INFO  [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 0
INFO  [init] found model autostart file as SYS_AUTOSTART=10016
INFO  [param] selected parameter default file eeprom/parameters_10016
[param] parameter file not found, creating eeprom/parameters_10016
  SYS_AUTOCONFIG: curr: 0 -> new: 1
  SYS_AUTOSTART: curr: 0 -> new: 10016
  CAL_ACC0_ID: curr: 0 -> new: 1310988
  CAL_GYRO0_ID: curr: 0 -> new: 1310988
  CAL_ACC1_ID: curr: 0 -> new: 1310996
  CAL_GYRO1_ID: curr: 0 -> new: 1310996
  CAL_ACC2_ID: curr: 0 -> new: 1311004
  CAL_GYRO2_ID: curr: 0 -> new: 1311004
* CAL_MAG0_ID: curr: 0 -> new: 197388
* CAL_MAG1_ID: curr: 0 -> new: 197644
* SENS_BOARD_X_OFF: curr: 0.0000 -> new: 0.0000
* SENS_DPRES_OFF: curr: 0.0000 -> new: 0.0010
* SYS_AUTOCONFIG: curr: 1 -> new: 0
* IMU_INTEG_RATE: curr: 200 -> new: 250
INFO  [dataman] data manager file './dataman' size is 7866640 bytes
Gazebo multi-robot simulator, version 11.14.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org

[Msg] Waiting for master.
PX4 SIM HOST: localhost
INFO  [simulator] Waiting for simulator to accept connection on TCP port 4560
INFO  [simulator] Waiting for simulator to accept connection on TCP port 4560
[Err] [ConnectionManager.cc:121] Failed to connect to master in 30 seconds.
[Err] [gazebo_shared.cc:78] Unable to initialize transport.
[Err] [gazebo_client.cc:56] Unable to setup Gazebo
mengchaoheng commented 2 months ago

and headless:

➜  PX4-Autopilot git:(heads/v1.13.3) ✗ HEADLESS=1 make px4_sitl gazebo

[0/4] Performing build step for 'sitl_gazebo'
ninja: no work to do.
[3/4] cd /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/tmp && /Users/mch/Proj/Ma...sers/mch/Proj/Mac_DF/PX4-Autopilot /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_defaul
SITL ARGS
sitl_bin: /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/bin/px4
debugger: none
program: gazebo
model: none
world: none
src_path: /Users/mch/Proj/Mac_DF/PX4-Autopilot
build_path: /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default
empty model, setting iris as default
GAZEBO_PLUGIN_PATH :/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo
GAZEBO_MODEL_PATH :/Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models
LD_LIBRARY_PATH :/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/build_gazebo
empty world, setting empty.world as default
Using: /Users/mch/Proj/Mac_DF/PX4-Autopilot/Tools/sitl_gazebo/models/iris/iris.sdf
Warning [parser.cc:833] XML Attribute[version] in element[sdf] not defined in SDF, ignoring.
not running gazebo gui
SITL COMMAND: "/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/bin/px4" "/Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default"/etc -s etc/init.d-posix/rcS -t "/Users/mch/Proj/Mac_DF/PX4-Autopilot"/test_data
Creating symlink /Users/mch/Proj/Mac_DF/PX4-Autopilot/build/px4_sitl_default/etc -> /Users/mch/Proj/Mac_DF/PX4-Autopilo

_____  __   __    ___ 
| ___ \ \ \ / /   /   |
| |_/ /  \ V /   / /| |
|  __/   /   \  / /_| |
| |     / /^\ \ \___  |
\_|     \/   \/     |_/

px4 starting.

INFO  [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 0
INFO  [init] found model autostart file as SYS_AUTOSTART=10016
INFO  [param] selected parameter default file eeprom/parameters_10016
[param] parameter file not found, creating eeprom/parameters_10016
  SYS_AUTOCONFIG: curr: 0 -> new: 1
  SYS_AUTOSTART: curr: 0 -> new: 10016
  CAL_ACC0_ID: curr: 0 -> new: 1310988
  CAL_GYRO0_ID: curr: 0 -> new: 1310988
  CAL_ACC1_ID: curr: 0 -> new: 1310996
  CAL_GYRO1_ID: curr: 0 -> new: 1310996
  CAL_ACC2_ID: curr: 0 -> new: 1311004
  CAL_GYRO2_ID: curr: 0 -> new: 1311004
* CAL_MAG0_ID: curr: 0 -> new: 197388
* CAL_MAG1_ID: curr: 0 -> new: 197644
* SENS_BOARD_X_OFF: curr: 0.0000 -> new: 0.0000
* SENS_DPRES_OFF: curr: 0.0000 -> new: 0.0010
* SYS_AUTOCONFIG: curr: 1 -> new: 0
* IMU_INTEG_RATE: curr: 200 -> new: 250
INFO  [dataman] data manager file './dataman' size is 7866640 bytes
PX4 SIM HOST: localhost
INFO  [simulator] Waiting for simulator to accept connection on TCP port 4560
gzserver(24906,0x204460240) malloc: Incorrect checksum for freed object 0x7f8a30bc9ae8: probably modified after being freed.
Corrupt value: 0x20a800000000
gzserver(24906,0x204460240) malloc: *** set a breakpoint in malloc_error_break to debug
mengchaoheng commented 2 months ago

I solved this problem, on macos 14.3.1. everything is default,

summarized below

  1. Regarding python3, macos comes with python3, but when installing px4-sim-gazebo, extra python3 (3.11 and 3.12) will also be installed. At this time, either use the python virtual environment or delete the extra python3.
    brew uninstall --ignore-dependencies python3
    brew uninstall --ignore-dependencies python@3.11 # option

    But in fact you can use python3.12 , you must ensure that the python3 used in the following instructions 1) and 2) is the same as when compiling make px4_sitl gazebo: 1).

    python3 -m pip install --user pyserial empty toml numpy pandas jinja2 pyyaml pyros-genmsg packaging kconfiglib future jsonschema

    2).

    sh macos.sh

    When you buid the code, you will see :

    
    -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.9.6", minimum required is "3")
You need to ensure that the above python version is consistent!!! for ensure this, you can install `brew install px4-sim-gazebo
` before Install the required Python packages, and then you will use python3.12

2. Regarding QT, we only need qt5 and pyqt5. When installing px4-sim-gazebo, a higher version (6) will be installed by default.

brew uninstall --ignore-dependencies qt brew uninstall --ignore-dependencies pyqt brew install pyqt@5 # if don't have brew install qt@5 # if don't have

if they install new version python, just run the follow again:

brew uninstall --ignore-dependencies python3

3. Regarding SDK, use complete xcode instead of CLT.
you can check you path:

xcode-select -p

you maybe see the follow:

/Library/Developer/CommandLineTools


if that happen, install xcode by app store and change the path:

sudo xcode-select --switch /Applications/Xcode.app

mengchaoheng commented 2 months ago

some ref. https://github.com/PX4/PX4-SITL_gazebo-classic/issues/1021#issuecomment-2078922511