-
Notifications
You must be signed in to change notification settings - Fork 800
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encounter errors after the homebrew auto upgraded #1020
Comments
Seems QT related. Check which version of qt is active in brew and try to switch it to an older one |
I faced the same error, uninstalling qt and pyqt that doesn't have |
Same issue. As mentioned above, uninstalled non @5 qt and pyqt resolves. |
@danielhonies Is this fixed by your recent patch PR? I guess I am confirming "are the steps in place such that we won't have to answer this question again"? |
@hamishwillee it is not. Unfortunately there are a bunch of issues with macOS and haven't had the time to look into all of them |
|
Thanks @danielhonies - just wishful thinking really :-). Pleased to see at least some work going on to support this OS. |
I am using OSX(v12.6.6 Monterey) to run the simulations. It works well until the home-brew auto upgraded some of the formulas. How can I fix the issues?
The errors:
PX4-Autopilot % make px4_sitl gazebo_plane
[0/1] cd /Users/kevin/PX4-Autopilot/bu...4_sitl_default -- gazebo-classic_plane
WARNING gazebo_plane target DEPRECATED, please use gazebo-classic_plane
[0/4] Performing build step for 'sitl_gazebo-classic'
[1/15] Building CXX object CMakeFiles/...e/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 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/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/kevin/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/include -I/Users/kevin/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/kevin/PX4-Autopilot/build/px4_sitl_default/mavlink -I/Users/kevin/PX4-Autopilot/build/px4_sitl_default/mavlink/mavlink/v2.0 -I/usr/local/include/Paging -I/Users/kevin/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic/external/OpticalFlow/include -I/usr/local/Cellar/gstreamer/1.22.6/include/gstreamer-1.0 -I/usr/local/Cellar/glib/2.78.1/include -I/usr/local/Cellar/glib/2.78.1/include/glib-2.0 -I/usr/local/Cellar/glib/2.78.1/lib/glib-2.0/include -I/usr/local/opt/gettext/include -I/usr/local/Cellar/pcre2/10.42/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX12.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/Cellar/protobuf/24.4/include -isystem /usr/local/Cellar/abseil/20230802.1/include -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 -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/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.8.1_1/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 /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/OpenGL.framework/Headers -O2 -g -DNDEBUG -std=gnu++17 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk -mmacosx-version-min=12.6 -fPIC -F/Library/Developer/CommandLineTools/SDKs/MacOSX12.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/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/moc_gazebo_video_stream_widget.cpp
In file included from /Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/moc_gazebo_video_stream_widget.cpp:10:
In file included from /Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/../../../../Tools/simulation/gazebo-classic/sitl_gazebo-classic/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:576:26: error: incomplete type 'QAction' named in nested name specifier
connect(result, &QAction::triggered, std::forward(args)...);
^~~~~~~~~
/usr/local/include/QtGui/qevent.h:35:7: note: forward declaration of 'QAction'
class QAction;
^
In file included from /Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/moc_gazebo_video_stream_widget.cpp:10:
In file included from /Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/../../../../Tools/simulation/gazebo-classic/sitl_gazebo-classic/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:583:26: error: incomplete type 'QAction' named in nested name specifier
connect(result, &QAction::triggered, std::forward(args)...);
^~~~~~~~~
/usr/local/include/QtGui/qevent.h:35:7: note: forward declaration of 'QAction'
class QAction;
^
In file included from /Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/moc_gazebo_video_stream_widget.cpp:10:
In file included from /Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/../../../../Tools/simulation/gazebo-classic/sitl_gazebo-classic/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:601:26: error: incomplete type 'QAction' named in nested name specifier
connect(result, &QAction::triggered, std::forward(args)...);
^~~~~~~~~
/usr/local/include/QtGui/qevent.h:35:7: note: forward declaration of 'QAction'
class QAction;
^
In file included from /Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/moc_gazebo_video_stream_widget.cpp:10:
In file included from /Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/../../../../Tools/simulation/gazebo-classic/sitl_gazebo-classic/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:608:26: error: incomplete type 'QAction' named in nested name specifier
connect(result, &QAction::triggered, std::forward(args)...);
^~~~~~~~~
/usr/local/include/QtGui/qevent.h:35:7: note: forward declaration of 'QAction'
class QAction;
^
In file included from /Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/moc_gazebo_video_stream_widget.cpp:10:
In file included from /Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/../../../../Tools/simulation/gazebo-classic/sitl_gazebo-classic/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/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/moc_gazebo_video_stream_widget.cpp:10:
In file included from /Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/../../../../Tools/simulation/gazebo-classic/sitl_gazebo-classic/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/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/moc_gazebo_video_stream_widget.cpp:16:2: error: "This file was generated using the moc from 5.15.10. It"
#error "This file was generated using the moc from 5.15.10. It"
^
/Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/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/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/include/moc_gazebo_video_stream_widget.cpp:18:2: error: "(The moc has changed too much.)"
#error "(The moc has changed too much.)"
^
/Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/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/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/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/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/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/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/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/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/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/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/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/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/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/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic/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.
ninja: build stopped: subcommand failed.
FAILED: external/Stamp/sitl_gazebo-classic/sitl_gazebo-classic-build /Users/kevin/PX4-Autopilot/build/px4_sitl_default/external/Stamp/sitl_gazebo-classic/sitl_gazebo-classic-build
cd /Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic && /usr/local/Cellar/cmake/3.27.7/bin/cmake --build /Users/kevin/PX4-Autopilot/build/px4_sitl_default/build_gazebo-classic -- -j 1
ninja: build stopped: subcommand failed.
FAILED: src/modules/simulation/simulator_mavlink/CMakeFiles/gazebo_plane /Users/kevin/PX4-Autopilot/build/px4_sitl_default/src/modules/simulation/simulator_mavlink/CMakeFiles/gazebo_plane
cd /Users/kevin/PX4-Autopilot/build/px4_sitl_default/src/modules/simulation/simulator_mavlink && /usr/local/Cellar/cmake/3.27.7/bin/cmake -E cmake_echo_color --red "WARNING gazebo_plane target DEPRECATED, please use gazebo-classic_plane" && /usr/local/Cellar/cmake/3.27.7/bin/cmake --build /Users/kevin/PX4-Autopilot/build/px4_sitl_default -- gazebo-classic_plane
ninja: build stopped: subcommand failed.
make: *** [px4_sitl] Error 1
The text was updated successfully, but these errors were encountered: