PX4 Firmware "make px4_sitl gazebo" but report " Unable to find the Boost header files. Please set BOOST_ROOT to the root "

#1

xxx@xxx-ubuntu18.042LTS64bit:~/src/Firmware$ make px4_sitl gazebo

-- PX4 config file: /home/xxx/src/Firmware/boards/px4/sitl/default.cmake
-- PX4 config: px4_sitl_default
-- PX4 platform: posix
-- PX4 lockstep: enabled
-- PX4 version: v1.9.0-340-g15d1543f95
-- cmake build type: RelWithDebInfo
-- The CXX compiler identification is GNU 7.4.0
-- The C compiler identification is GNU 7.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.15") 
-- Found PY_jinja2: /usr/lib/python2.7/dist-packages/jinja2  
-- PX4 ECL: Very lightweight Estimation & Control Library v1.9.0-rc1-17-ge175118
-- Configuring done
-- Generating done
-- Build files have been written to: /home/shelley/src/Firmware/build/px4_sitl_default
Scanning dependencies of target logs_symlink
Scanning dependencies of target uorb_headers
Scanning dependencies of target df_driver_framework
Scanning dependencies of target lockstep_scheduler
[  0%] Generating ../../logs
[  0%] Generating uORB topic headers
[  0%] Built target logs_symlink
[  0%] Building CXX object platforms/posix/src/lockstep_scheduler/CMakeFiles/lockstep_scheduler.dir/src/lockstep_scheduler.cpp.o
Scanning dependencies of target mixer_gen
[  0%] Generating mixer_multirotor.generated.h
[  0%] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/DriverFramework.cpp.o
[  0%] Generating mixer_multirotor_normalized.generated.h
[  0%] Built target mixer_gen
Scanning dependencies of target mixer_gen_6dof
[  0%] Generating mixer_multirotor_6dof.generated.h
[  0%] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/WorkMgr.cpp.o
[  0%] Linking CXX static library liblockstep_scheduler.a
[  0%] Built target mixer_gen_6dof
Scanning dependencies of target ver_gen
[  0%] Built target lockstep_scheduler
[  0%] Generating git version header
[  0%] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/WorkItems.cpp.o
[  0%] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/DevMgr.cpp.o
[  0%] Built target uorb_headers
Scanning dependencies of target git_gps_devices
[  0%] git submodule src/drivers/gps/devices
[  0%] Built target git_gps_devices
Scanning dependencies of target git_ecl
[  1%] git submodule src/lib/ecl
Scanning dependencies of target git_mavlink_v2
[  2%] git submodule mavlink/include/mavlink/v2.0
[  3%] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/DevObj.cpp.o
[  3%] Built target git_ecl
Scanning dependencies of target git_gazebo
[  3%] git submodule Tools/sitl_gazebo
[  3%] Built target git_mavlink_v2
[  3%] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/SyncObj.cpp.o
[  3%] Built target git_gazebo
[  3%] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/DFList.cpp.o
[  3%] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/Time.cpp.o
[  3%] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/DFDiag.cpp.o
[  3%] Generating uORB topic sources
[  3%] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/I2CDevObj.cpp.o
Scanning dependencies of target perf
[  3%] Building CXX object src/lib/perf/CMakeFiles/perf.dir/perf_counter.cpp.o
[  3%] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/SPIDevObj.cpp.o
[  4%] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/ImuSensor.cpp.o
[  4%] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/BaroSensor.cpp.o
[  4%] Linking CXX static library libperf.a
[  4%] Built target perf
Scanning dependencies of target work_queue
[  4%] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/MagSensor.cpp.o
[  5%] Building C object src/platforms/common/work_queue/CMakeFiles/work_queue.dir/dq_addlast.c.o
[  5%] Linking CXX static library libdf_driver_framework.a
[  5%] Built target df_driver_framework
Scanning dependencies of target tinybson
[  5%] Building CXX object src/lib/parameters/tinybson/CMakeFiles/tinybson.dir/tinybson.cpp.o
Scanning dependencies of target uorb_msgs
[  5%] Linking CXX static library libtinybson.a
[  5%] Built target tinybson
[  5%] Building C object src/platforms/common/work_queue/CMakeFiles/work_queue.dir/dq_rem.c.o
[  5%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/uORBTopics.cpp.o
[  5%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/actuator_armed.cpp.o
[  6%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/actuator_controls.cpp.o
[  6%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/actuator_direct.cpp.o
[  6%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/actuator_outputs.cpp.o
[  6%] Building C object src/platforms/common/work_queue/CMakeFiles/work_queue.dir/hrt_queue.c.o
[  6%] Building C object src/platforms/common/work_queue/CMakeFiles/work_queue.dir/dq_remfirst.c.o
[  6%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/adc_report.cpp.o
[  6%] Building C object src/platforms/common/work_queue/CMakeFiles/work_queue.dir/hrt_thread.c.o
[  6%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/airspeed.cpp.o
[  6%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/battery_status.cpp.o
[  6%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/camera_capture.cpp.o
[  6%] Building C object src/platforms/common/work_queue/CMakeFiles/work_queue.dir/hrt_work_cancel.c.o
[  7%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/camera_trigger.cpp.o
[  7%] Building C object src/platforms/common/work_queue/CMakeFiles/work_queue.dir/queue.c.o
[  8%] Building C object src/platforms/common/work_queue/CMakeFiles/work_queue.dir/sq_addafter.c.o
[  8%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/collision_report.cpp.o
[  8%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/commander_state.cpp.o
[  8%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/collision_constraints.cpp.o
[  8%] Built target ver_gen
Scanning dependencies of target ecl_airdata
[  8%] Building C object src/platforms/common/work_queue/CMakeFiles/work_queue.dir/sq_addlast.c.o
[  8%] Building CXX object src/lib/ecl/airdata/CMakeFiles/ecl_airdata.dir/WindEstimator.cpp.o
[  8%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/cpuload.cpp.o
[  8%] Building C object src/platforms/common/work_queue/CMakeFiles/work_queue.dir/sq_remfirst.c.o
[  8%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/debug_array.cpp.o
[  8%] Building C object src/platforms/common/work_queue/CMakeFiles/work_queue.dir/work_lock.c.o
[  8%] Building C object src/platforms/common/work_queue/CMakeFiles/work_queue.dir/work_cancel.c.o
[  8%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/debug_key_value.cpp.o
[  8%] Building C object src/platforms/common/work_queue/CMakeFiles/work_queue.dir/work_queue.c.o
[  8%] Building C object src/platforms/common/work_queue/CMakeFiles/work_queue.dir/work_thread.c.o
[  8%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/debug_value.cpp.o
[  9%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/debug_vect.cpp.o
[ 10%] Linking C static library libwork_queue.a
[ 10%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/differential_pressure.cpp.o
[ 10%] Built target work_queue
[ 10%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/distance_sensor.cpp.o
[ 10%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/ekf2_innovations.cpp.o
[ 10%] Linking CXX static library libecl_airdata.a
[ 10%] Built target ecl_airdata
[ 10%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/ekf2_timestamps.cpp.o
[ 10%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/ekf_gps_drift.cpp.o
Scanning dependencies of target ecl_attitude_fw
[ 10%] Building CXX object src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_controller.cpp.o
Scanning dependencies of target ecl_geo
[ 10%] Building CXX object src/lib/ecl/geo/CMakeFiles/ecl_geo.dir/geo.cpp.o
[ 10%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/ekf_gps_position.cpp.o
[ 10%] Building CXX object src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_pitch_controller.cpp.o
[ 10%] Building CXX object src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_roll_controller.cpp.o
[ 11%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/esc_report.cpp.o
[ 11%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/esc_status.cpp.o
[ 12%] Building CXX object src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_wheel_controller.cpp.o
[ 12%] Linking CXX static library libecl_geo.a
[ 12%] Built target ecl_geo
Scanning dependencies of target ecl_geo_lookup
[ 12%] Building CXX object src/lib/ecl/geo_lookup/CMakeFiles/ecl_geo_lookup.dir/geo_mag_declination.cpp.o
[ 12%] Building CXX object src/lib/ecl/attitude_fw/CMakeFiles/ecl_attitude_fw.dir/ecl_yaw_controller.cpp.o
[ 12%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/estimator_status.cpp.o
[ 12%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/follow_target.cpp.o
[ 12%] Linking CXX static library libecl_geo_lookup.a
[ 12%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/geofence_result.cpp.o
Scanning dependencies of target ecl_l1
[ 12%] Built target ecl_geo_lookup
[ 12%] Linking CXX static library libecl_attitude_fw.a
Scanning dependencies of target ecl_tecs
[ 13%] Building CXX object src/lib/ecl/l1/CMakeFiles/ecl_l1.dir/ecl_l1_pos_controller.cpp.o
[ 13%] Building CXX object src/lib/ecl/tecs/CMakeFiles/ecl_tecs.dir/tecs.cpp.o
[ 13%] Built target ecl_attitude_fw
Scanning dependencies of target ecl_validation
[ 13%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/gps_dump.cpp.o
[ 13%] Building CXX object src/lib/ecl/validation/CMakeFiles/ecl_validation.dir/data_validator.cpp.o
[ 13%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/gps_inject_data.cpp.o
[ 13%] Linking CXX static library libecl_tecs.a
[ 13%] Built target ecl_tecs
[ 13%] Building CXX object src/lib/ecl/validation/CMakeFiles/ecl_validation.dir/data_validator_group.cpp.o
Scanning dependencies of target mixer
[ 13%] Linking CXX static library libecl_l1.a
[ 13%] Built target ecl_l1
[ 13%] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer.cpp.o
Scanning dependencies of target rc
[ 14%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/home_position.cpp.o
[ 14%] Building CXX object src/lib/rc/CMakeFiles/rc.dir/crsf.cpp.o
[ 14%] Linking CXX static library libecl_validation.a
[ 14%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/input_rc.cpp.o
[ 14%] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_group.cpp.o
[ 14%] Built target ecl_validation
[ 14%] Building CXX object src/lib/rc/CMakeFiles/rc.dir/st24.cpp.o
[ 14%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/iridiumsbd_status.cpp.o
[ 14%] Building CXX object src/lib/rc/CMakeFiles/rc.dir/sumd.cpp.o
[ 14%] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_helicopter.cpp.o
[ 14%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/irlock_report.cpp.o
[ 14%] Building CXX object src/lib/rc/CMakeFiles/rc.dir/sbus.cpp.o
[ 14%] Building CXX object src/lib/rc/CMakeFiles/rc.dir/dsm.cpp.o
[ 14%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/landing_gear.cpp.o
[ 14%] Building C object src/lib/mixer/CMakeFiles/mixer.dir/mixer_load.c.o
[ 14%] Building CXX object src/lib/rc/CMakeFiles/rc.dir/common_rc.cpp.o
[ 14%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/landing_target_innovations.cpp.o
[ 14%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/landing_target_pose.cpp.o
[ 15%] Linking CXX static library librc.a
[ 15%] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_multirotor.cpp.o
[ 15%] Built target rc
[ 15%] Building CXX object src/lib/mixer/CMakeFiles/mixer.dir/mixer_simple.cpp.o
[ 16%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/led_control.cpp.o
Scanning dependencies of target sitl_gazebo
[ 16%] Creating directories for 'sitl_gazebo'
[ 16%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/log_message.cpp.o
[ 16%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/manual_control_setpoint.cpp.o
[ 16%] No download step for 'sitl_gazebo'
[ 16%] No update step for 'sitl_gazebo'
[ 17%] No patch step for 'sitl_gazebo'
[ 18%] Linking CXX static library libmixer.a
[ 18%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/mavlink_log.cpp.o
[ 18%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/mission.cpp.o
[ 18%] No forceconfigure step for 'sitl_gazebo'
[ 18%] Built target mixer
[ 18%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/mission_result.cpp.o
[ 18%] Performing configure step for 'sitl_gazebo'
-- install-prefix: /usr/local
[ 18%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/mount_orientation.cpp.o
[ 19%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/multirotor_motor_limits.cpp.o
[ 19%] Generating serial_params.c
[ 19%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/obstacle_distance.cpp.o
[ 19%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/offboard_control_mode.cpp.o
-- The C compiler identification is GNU 7.4.0
[ 19%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/optical_flow.cpp.o
[ 19%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/orbit_status.cpp.o
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
[ 19%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/ping.cpp.o
[ 19%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/parameter_update.cpp.o
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
[ 19%] Generating parameters.xml
[ 20%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/position_controller_landing_status.cpp.o
[ 20%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/position_controller_status.cpp.o
-- Detecting C compiler ABI info - done
[ 20%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/position_setpoint.cpp.o
-- Detecting C compile features
[ 20%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/position_setpoint_triplet.cpp.o
[ 20%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/power_button_state.cpp.o
[ 20%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/power_monitor.cpp.o
[ 20%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/pwm_input.cpp.o
[ 21%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/qshell_req.cpp.o
[ 21%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/qshell_retval.cpp.o
[ 21%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/radio_status.cpp.o
[ 21%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/rate_ctrl_status.cpp.o
[ 21%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/rc_channels.cpp.o
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
[ 21%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/rc_parameter_map.cpp.o
[ 21%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/safety.cpp.o
[ 22%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/satellite_info.cpp.o
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
[ 22%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_accel.cpp.o
[ 22%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_baro.cpp.o
[ 22%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_bias.cpp.o
-- Detecting CXX compiler ABI info - done
[ 22%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_combined.cpp.o
-- Detecting CXX compile features
[ 22%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_correction.cpp.o
[ 22%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_gyro.cpp.o
[ 22%] Generating px4_parameters.c, px4_parameters.h, px4_parameters_public.h
[ 22%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_mag.cpp.o
[ 23%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_preflight.cpp.o
[ 23%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/sensor_selection.cpp.o
Scanning dependencies of target parameters
[ 23%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/servorail_status.cpp.o
[ 23%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/subsystem_info.cpp.o
[ 23%] Building CXX object src/lib/parameters/CMakeFiles/parameters.dir/parameters.cpp.o
[ 23%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/system_power.cpp.o
[ 23%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/task_stack_info.cpp.o
[ 23%] Building C object src/lib/parameters/CMakeFiles/parameters.dir/px4_parameters.c.o
[ 23%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/tecs_status.cpp.o
-- Detecting CXX compile features - done
[ 24%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/telemetry_status.cpp.o
-- Performing Test COMPILER_SUPPORTS_CXX17
[ 24%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/test_motor.cpp.o
[ 24%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/timesync_status.cpp.o
[ 24%] Linking CXX static library libparameters.a
-- Performing Test COMPILER_SUPPORTS_CXX17 - Success
-- Performing Test COMPILER_SUPPORTS_CXX14
[ 24%] Built target parameters
[ 24%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/trajectory_waypoint.cpp.o
[ 24%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/transponder_report.cpp.o
[ 24%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/tune_control.cpp.o
[ 25%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/uavcan_parameter_value.cpp.o
[ 25%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/uavcan_parameter_request.cpp.o
-- Performing Test COMPILER_SUPPORTS_CXX14 - Success
-- Performing Test COMPILER_SUPPORTS_CXX11
[ 25%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/ulog_stream.cpp.o
[ 25%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/ulog_stream_ack.cpp.o
[ 25%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_air_data.cpp.o
[ 25%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_attitude.cpp.o
[ 25%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_command.cpp.o
[ 25%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_attitude_setpoint.cpp.o
-- Performing Test COMPILER_SUPPORTS_CXX11 - Success
-- Performing Test COMPILER_SUPPORTS_CXX0X
[ 26%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_command_ack.cpp.o
[ 26%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_constraints.cpp.o
[ 26%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_control_mode.cpp.o
-- Performing Test COMPILER_SUPPORTS_CXX0X - Success
-- Using C++17 compiler
[ 26%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_global_position.cpp.o
[ 26%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_gps_position.cpp.o
[ 26%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_land_detected.cpp.o
[ 26%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_local_position.cpp.o
[ 27%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_local_position_setpoint.cpp.o
-- Looking for pthread.h
[ 27%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_magnetometer.cpp.o
[ 27%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_odometry.cpp.o
[ 27%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_rates_setpoint.cpp.o
[ 27%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_roi.cpp.o
-- Looking for pthread.h - found
-- Looking for pthread_create
[ 27%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_status_flags.cpp.o
[ 27%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_status.cpp.o
[ 28%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vehicle_trajectory_waypoint.cpp.o
[ 28%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/vtol_vehicle_status.cpp.o
[ 28%] Building CXX object msg/CMakeFiles/uorb_msgs.dir/topics_sources/wind_estimate.cpp.o
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
[ 28%] Linking CXX static library libuorb_msgs.a
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
[ 28%] Built target uorb_msgs
Scanning dependencies of target generate_topic_listener
Scanning dependencies of target px4_layer
[ 28%] Generating listener_generated.cpp
[ 28%] Building CXX object platforms/posix/src/px4_layer/CMakeFiles/px4_layer.dir/px4_posix_tasks.cpp.o
[ 28%] Building CXX object platforms/posix/src/px4_layer/CMakeFiles/px4_layer.dir/px4_posix_impl.cpp.o
[ 28%] Built target generate_topic_listener
[ 28%] Building CXX object platforms/posix/src/px4_layer/CMakeFiles/px4_layer.dir/px4_sem.cpp.o
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE  
[ 29%] Building CXX object platforms/posix/src/px4_layer/CMakeFiles/px4_layer.dir/px4_init.cpp.o
[ 29%] Building C object platforms/posix/src/px4_layer/CMakeFiles/px4_layer.dir/lib_crc32.c.o
CMake Error at /usr/local/share/cmake-3.14/Modules/FindBoost.cmake:2165 (message):
  Unable to find the requested Boost libraries.

  Unable to find the Boost header files.  Please set BOOST_ROOT to the root
  directory containing Boost or BOOST_INCLUDEDIR to the directory containing
  Boost's headers.
Call Stack (most recent call first):
  CMakeLists.txt:33 (find_package)


CMake Error at CMakeLists.txt:34 (find_package):
  By not providing "Findgazebo.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "gazebo", but
  CMake did not find one.

  Could not find a package configuration file provided by "gazebo" with any
  of the following names:

    gazeboConfig.cmake
    gazebo-config.cmake

  Add the installation prefix of "gazebo" to CMAKE_PREFIX_PATH or set
  "gazebo_DIR" to a directory containing one of the above files.  If "gazebo"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!
See also "/home/xxx/src/Firmware/build/px4_sitl_default/build_gazebo/CMakeFiles/CMakeOutput.log".
See also "/home/xxx/src/Firmware/build/px4_sitl_default/build_gazebo/CMakeFiles/CMakeError.log".
[ 29%] Building CXX object platforms/posix/src/px4_layer/CMakeFiles/px4_layer.dir/drv_hrt.cpp.o
platforms/posix/CMakeFiles/sitl_gazebo.dir/build.make:108: recipe for target 'external/Stamp/sitl_gazebo/sitl_gazebo-configure' failed
make[4]: *** [external/Stamp/sitl_gazebo/sitl_gazebo-configure] Error 1
CMakeFiles/Makefile2:13404: recipe for target 'platforms/posix/CMakeFiles/sitl_gazebo.dir/all' failed
make[3]: *** [platforms/posix/CMakeFiles/sitl_gazebo.dir/all] Error 2
make[3]: *** Waiting for unfinished jobs....
[ 29%] Linking CXX static library libpx4_layer.a
[ 29%] Built target px4_layer
CMakeFiles/Makefile2:19130: recipe for target 'platforms/posix/CMakeFiles/gazebo.dir/rule' failed
make[2]: *** [platforms/posix/CMakeFiles/gazebo.dir/rule] Error 2
Makefile:5919: recipe for target 'gazebo' failed
make[1]: *** [gazebo] Error 2
Makefile:200: recipe for target 'px4_sitl' failed
make: *** [px4_sitl] Error 2

xxx@xxx-ubuntu18.042LTS64bit-virtual-machine:~/src/Firmware$

#2

Please paste terminal output inside ```.

It looks like you don’t have gazebo and gazebo-dev installed.

#3

I have put the terminal output inside ’ ’ in my post.
Is that what you mean?
I executed “ubuntu_sim.sh” and there are script as follows:

# Gazebo (9) simulator dependencies
echo "Installing Gazebo9"
sudo apt-get install protobuf-compiler libeigen3-dev libopencv-dev -y
sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
## Setup keys
wget http://packages.osrfoundation.org/gazebo.key -O - | sudo apt-key add -
## Update the debian database:
sudo apt-get update -y
## Install Gazebo9
sudo apt-get install gazebo9 -y
## For developers (who work on top of Gazebo) one extra package
sudo apt-get install libgazebo9-dev -y
#4

No, I mean ```. Just copy these 3 ticks and use them.

Did that setup script run through successfully? Can you run it again and paste the output here?

1 Like
#5

Now, the output is as follows:

xxx@xxx-ubuntu18.042LTS64bit:~/src/Firmware$ make px4_sitl gazebo
make: *** No rule to make target 'px4_sitl'.  Stop.

xxx@xxx-ubuntu18.042LTS64bit:~/src/Firmware$ make px4_sitl jmavsim
make: *** No rule to make target 'px4_sitl'.  Stop.
#6

Can you do this please?

1 Like
#7

Running this setup script takes a long time, because downloading code is slow and often fails, and I can only manually execute the remaining command lines in the setup script after it fails to execute automatically. But I will try again.
Thank you and best regards!

#8

Ok, well just make sure that all commands are done successful in that case.

1 Like
#9

Hi Julian,
Command “make px4_sitl gazebo” can be executed successfully now after all commands in the setup script are done successfully.
Thank you very much!