Open ba-13 opened 1 year ago
What's your dev environment and px4 version? Did you ever have this working?
I tried with the PR you mentioned above, it gave nearly the same error
Copying fixed headers for protocol 2.0 to /attached/Aerial_Robotics/PX4/build/px4_sitl_default/mavlink
[9/810] Performing build step for 'sitl_gazebo'
[2/26] Generating include/moc_gazebo_video_stream_widget.cpp
FAILED: include/moc_gazebo_video_stream_widget.cpp
cd /attached/Aerial_Robotics/PX4/build/px4_sitl_default/build_gazebo/include && /usr/lib/qt5/bin/moc @/attached/Aerial_Robotics/PX4/build/px4_sitl_default/build_gazebo/include/moc_gazebo_video_stream_widget.cpp_parameters
usr/include/cstrin:73: Parse error at "std"
[6/26] Building CXX object CMakeFiles/gazebo_camera_manager_plugin.dir/src/gazebo_camera_manager_plugin.cpp.o
ninja: build stopped: subcommand failed.
[806/810] Linking CXX executable bin/px4
FAILED: external/Stamp/sitl_gazebo/sitl_gazebo-build
cd /attached/Aerial_Robotics/PX4/build/px4_sitl_default/build_gazebo && /usr/local/bin/cmake --build /attached/Aerial_Robotics/PX4/build/px4_sitl_default/build_gazebo -- -j 5
ninja: build stopped: subcommand failed.
make: *** [Makefile:232: px4_sitl] Error 1
Noting that FAILED: include/moc_gazebo_user_camera_plugin.cpp
no longer fails this time, or at least it's not showing up.
What's your dev environment and px4 version? Did you ever have this working?
I'm not sure what you want to know by dev environment. I'm currently using Ubuntu 20.04. Can you please explain what info you need? Also regarding px4 version, I'm just using the source code, main branch.
And no, didn't have this working for SITL based on gazebo before. jmavsim
was working though.
I had a problem like this when I first tried to build gazebo simulation. Try these solutions that I received in my issue: #20775
Describe the bug
Facing the following build error while trying
make px4_sitl gazebo
.Expected behavior
make px4_sitl gazebo
builds successfully.Logs