ArduPilot / ArduPilot/ArduRemoteID

Can't compile on Ubuntu 22.04

Open
#114 16 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
250
Forks
109
PR merge metrics
No merged PRs in 30d

Description

After following the instructions in BUILDING.md, I seethe following compilation error:

```Building ESP32S3_DEV on esp32s3
In file included from /media/shalomc/home/workspace/opensource/arduremoteid/RemoteIDModule/mavlink_msgs.h:18,
from /media/shalomc/home/workspace/opensource/arduremoteid/RemoteIDModule/transport.h:6,
from /media/shalomc/home/workspace/opensource/arduremoteid/RemoteIDModule/mavlink.h:5,
from /media/shalomc/home/workspace/opensource/arduremoteid/RemoteIDModule/RemoteIDModule.ino:15:
/media/shalomc/home/Arduino/libraries/mavlink2/mavlink2.h:1:10: fatal error: generated/all/version.h: No such file or directory
#include "generated/all/version.h"
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
```

**Host**: Ubuntu 22.04
**Python**: 3.10.6

**Make output**:
```

➜ RemoteIDModule git:(master) make setup
Installing ESP32 support
../bin/arduino-cli core update-index --config-file arduino-cli.yaml
Downloading index: package_index.tar.bz2 downloaded
Downloading index: package_esp32_index.json downloaded
../bin/arduino-cli core install esp32:esp32@2.0.3
Platform esp32:esp32@2.0.3 already installed
../bin/arduino-cli lib install "Adafruit NeoPixel"
Already installed Adafruit NeoPixel@1.10.5
➜ RemoteIDModule git:(master) make
Generating mavlink2 headers
Validating modules/mavlink/message_definitions/v1.0/all.xml
Parsing modules/mavlink/message_definitions/v1.0/all.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/ASLUAV.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/ASLUAV.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/common.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/common.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/development.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/development.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/icarous.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/icarous.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/minimal.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/minimal.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/python_array_test.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/python_array_test.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/standard.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/standard.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/test.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/test.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/ualberta.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/ualberta.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/uAvionix.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/uAvionix.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/loweheiser.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/loweheiser.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/storm32.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/storm32.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/AVSSUAS.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/AVSSUAS.xml
Validating /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/cubepilot.xml
Parsing /media/shalomc/home/workspace/opensource/arduremoteid/modules/mavlink/message_definitions/v1.0/cubepilot.xml
Merged enum MAV_CMD
Merged enum MAV_CMD
Merged enum MAV_CMD
Merged enum MAV_CMD
Merged enum MAV_CMD
Enum STORAGE_TYPE in STORAGE_INFORMATION.type does not exist
Generating DroneCAN headers for libcanard
expanding uavcan.Timestamp
expanding uavcan.CoarseOrientation
expanding uavcan.tunnel.Call
expanding uavcan.tunnel.Broadcast
expanding uavcan.tunnel.Protocol
expanding uavcan.equipment.range_sensor.Measurement
expanding uavcan.equipment.safety.ArmingStatus
expanding uavcan.equipment.hardpoint.Status
expanding uavcan.equipment.hardpoint.Command
expanding uavcan.equipment.gnss.Fix
expanding uavcan.equipment.gnss.Fix2
expanding uavcan.equipment.gnss.ECEFPositionVelocity
expanding uavcan.equipment.gnss.RTCMStream
expanding uavcan.equipment.gnss.Auxiliary
expanding uavcan.equipment.power.PrimaryPowerSupplyStatus
expanding uavcan.equipment.power.CircuitStatus
expanding uavcan.equipment.power.BatteryInfo
expanding uavcan.equipment.ahrs.MagneticFieldStrength
expanding uavcan.equipment.ahrs.RawIMU
expanding uavcan.equipment.ahrs.Solution
expanding uavcan.equipment.ahrs.MagneticFieldStrength2
expanding uavcan.equipment.actuator.ArrayCommand
expanding uavcan.equipment.actuator.Status
expanding uavcan.equipment.actuator.Command
expanding uavcan.equipment.air_data.AngleOfAttack
expanding uavcan.equipment.air_data.RawAirData
expanding uavcan.equipment.air_data.StaticPressure
expanding uavcan.equipment.air_data.Sideslip
expanding uavcan.equipment.air_data.StaticTemperature
expanding uavcan.equipment.air_data.IndicatedAirspeed
expanding uavcan.equipment.air_data.TrueAirspeed
expanding uavcan.equipment.device.Temperature
expanding uavcan.equipment.ice.FuelTankStatus
expanding uavcan.equipment.ice.reciprocating.Status
expanding uavcan.equipment.ice.reciprocating.CylinderStatus
expanding uavcan.equipment.indication.RGB565
expanding uavcan.equipment.indication.BeepCommand
expanding uavcan.equipment.indication.SingleLightCommand
expanding uavcan.equipment.indication.LightsCommand
expanding uavcan.equipment.esc.RPMCommand
expanding uavcan.equipment.esc.Status
expanding uavcan.equipment.camera_gimbal.GEOPOICommand
expanding uavcan.equipment.esc.RawCommand
expanding uavcan.equipment.camera_gimbal.Status
expanding uavcan.equipment.camera_gimbal.Mode
expanding uavcan.equipment.camera_gimbal.AngularCommand
expanding uavcan.navigation.GlobalNavigationSolution
expanding uavcan.protocol.DataTypeKind
expanding uavcan.protocol.HardwareVersion
expanding uavcan.protocol.CANIfaceStats
expanding uavcan.protocol.RestartNode
expanding uavcan.protocol.GetDataTypeInfo
expanding uavcan.protocol.AccessCommandShell
expanding uavcan.protocol.GlobalTimeSync
expanding uavcan.protocol.SoftwareVersion
expanding uavcan.protocol.GetNodeInfo
expanding uavcan.protocol.NodeStatus
expanding uavcan.protocol.GetTransportStats
expanding uavcan.protocol.Panic
expanding uavcan.protocol.enumeration.Indication
expanding uavcan.protocol.enumeration.Begin
expanding uavcan.protocol.param.Value
expanding uavcan.protocol.param.NumericValue
expanding uavcan.protocol.param.ExecuteOpcode
expanding uavcan.protocol.param.Empty
expanding uavcan.protocol.param.GetSet
expanding uavcan.protocol.dynamic_node_id.Allocation
expanding uavcan.protocol.dynamic_node_id.server.Entry
expanding uavcan.protocol.dynamic_node_id.server.RequestVote
expanding uavcan.protocol.dynamic_node_id.server.Discovery
expanding uavcan.protocol.dynamic_node_id.server.AppendEntries
expanding uavcan.protocol.file.Path
expanding uavcan.protocol.file.GetDirectoryEntryInfo
expanding uavcan.protocol.file.Error
expanding uavcan.protocol.file.Delete
expanding uavcan.protocol.file.EntryType
expanding uavcan.protocol.file.Read
expanding uavcan.protocol.file.BeginFirmwareUpdate
expanding uavcan.protocol.file.GetInfo
expanding uavcan.protocol.file.Write
expanding uavcan.protocol.debug.LogLevel
expanding uavcan.protocol.debug.LogMessage
expanding uavcan.protocol.debug.KeyValue
expanding dronecan.sensors.hygrometer.Hygrometer
expanding dronecan.remoteid.SecureCommand
expanding dronecan.remoteid.BasicID
expanding dronecan.remoteid.System
expanding dronecan.remoteid.OperatorID
expanding dronecan.remoteid.Location
expanding dronecan.remoteid.SelfID
expanding dronecan.remoteid.ArmStatus
expanding com.hex.equipment.flow.Measurement
Embedding file public_keys/ArduPilot_public_key1.dat:public_keys/ArduPilot_public_key1.dat
Embedding file public_keys/ArduPilot_public_key2.dat:public_keys/ArduPilot_public_key2.dat
Embedding file public_keys/ArduPilot_public_key3.dat:public_keys/ArduPilot_public_key3.dat
Embedding file public_keys/BlueMark_public_key1.dat:public_keys/BlueMark_public_key1.dat
Embedding file web/images/bg.jpg:web/images/bg.jpg
Embedding file web/images/bluemark.png:web/images/bluemark.png
Embedding file web/images/button.jpg:web/images/button.jpg
Embedding file web/images/logo.jpg:web/images/logo.jpg
Embedding file web/index.html:web/index.html
Embedding file web/js/jquery.min.js:web/js/jquery.min.js
Embedding file web/js/tools.js:web/js/tools.js
Embedding file web/styles/main.css:web/styles/main.css
Building ESP32S3_DEV on esp32s3
In file included from /media/shalomc/home/workspace/opensource/arduremoteid/RemoteIDModule/mavlink_msgs.h:18,
from /media/shalomc/home/workspace/opensource/arduremoteid/RemoteIDModule/transport.h:6,
from /media/shalomc/home/workspace/opensource/arduremoteid/RemoteIDModule/mavlink.h:5,
from /media/shalomc/home/workspace/opensource/arduremoteid/RemoteIDModule/RemoteIDModule.ino:15:
/media/shalomc/home/Arduino/libraries/mavlink2/mavlink2.h:1:10: fatal error: generated/all/version.h: No such file or directory
#include "generated/all/version.h"
^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Used library Version Path
libopendroneid /media/shalomc/home/workspace/opensource/arduremoteid/modules/opendroneid-core-c/libopendroneid
mavlink2 1.0 /media/shalomc/home/workspace/opensource/arduremoteid/libraries/mavlink2

Used platform Version Path
esp32:esp32 2.0.3 /media/shalomc/home/.arduino15/packages/esp32/hardware/esp32/2.0.3

Error during build: exit status 1
make: *** [Makefile:61: ArduRemoteID-ESP32S3_DEV.bin] Error 1

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with BUILDING.md and the Makefile target at line 61, then inspect the mavlink2 library referenced by RemoteIDModule/mavlink_msgs.h and libraries/mavlink2/mavlink2.h. Reproduce the Ubuntu 22.04 build with `make setup` followed by `make`, and verify that the generated/all/version.h include is available and the ESP32S3_DEV build completes.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, cpp, python
Domain
build-system, embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.