ArduPilot / ArduRemoteID

RemoteID support using OpenDroneID
GNU General Public License v2.0
90 stars 45 forks source link

Can't compile on Ubuntu 22.04 #114

Open shalomc-airo opened 1 year ago

shalomc-airo commented 1 year ago

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

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
shalomc-airo commented 1 year ago

Looks like the problems is that mavgen was failing, this was with latest head (Hash 9806a3ba7). Changing to branch ardupilot-stable-4.1 allowed the compilation to continue, but it still failed with errors like

In file included from /media/shalomc/home/workspace/opensource/arduremoteid/RemoteIDModule/mavlink.h:5,
                 from /media/shalomc/home/workspace/opensource/arduremoteid/RemoteIDModule/mavlink.cpp:5:
/media/shalomc/home/workspace/opensource/arduremoteid/RemoteIDModule/transport.h:18:11: error: 'mavlink_open_drone_id_location_t' does not name a type; did you mean 'mavlink_set_home_position_t'?
     const mavlink_open_drone_id_location_t &get_location(void) const {
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           mavlink_set_home_position_t
shalomc-airo commented 1 year ago

This seems to be a problem with versions of the submodules. There is Ardupilot and under that, Mavlink. Checking out ardupilot-stable-4.1 and Mavlink master seems to have solved the compilation problem.

My experience with these things is that you have to limit yourself to specific commits of each of the submodules and enforce this in the setup scripts. This is what I recommend for you.

BluemarkInnovations commented 1 year ago

Thanks for reporting. Typically we stick to a specific commit of the submodule. However, the master branch has been moved recently to a new MAVLink version due to this PR: https://github.com/ArduPilot/ArduRemoteID/pull/95

I guess that caused the compile errors (and was tested insufficiently). The automatic build of my latest PR fails with similar compile errors now. I will discuss @tridge to solve this issue.

kc2rxo commented 1 year ago

Checking out ardupilot-stable-4.1 and Mavlink master seems to have solved the compilation problem.

Setting modules/mavlink to ardupilot-stable-4.1 and modules/mavlink/pymavlink to master did not seem to fix the compilation problems (which are the same) for me.

Is there a specific commit that did work for you 3 weeks ago?

BluemarkInnovations commented 1 year ago

Can you use commit: 5b4e0414e73f0bef1328c60c953a58f895f9db14 ?

It is the commit of the 1.11 release: https://github.com/ArduPilot/ArduRemoteID/commit/5b4e0414e73f0bef1328c60c953a58f895f9db14

Important also execute the steps in section 2: get code of BUILDING.md again.

I moved from Ubuntu to a Debian OS build environment (as virtual machine, to keep the build environment clean) where 1.11 compiles without issues.

kc2rxo commented 1 year ago

Same errors on 5b4e041 with running Section 2 before attempting a make.

BluemarkInnovations commented 1 year ago

So I gave the wrong answer. I just downloaded a fresh ArduRemoteID project and compiled it without issues under Debian: bookworm/sid. The issue seems to be Ubuntu related(?)

roel@arduremoteid:~$ cd /tmp/
roel@arduremoteid:/tmp$ git clone https://github.com/ardupilot/arduremoteid
Cloning into 'arduremoteid'...
remote: Enumerating objects: 1009, done.
remote: Counting objects: 100% (361/361), done.
remote: Compressing objects: 100% (165/165), done.
remote: Total 1009 (delta 229), reused 205 (delta 196), pack-reused 648
Receiving objects: 100% (1009/1009), 2.24 MiB | 1.96 MiB/s, done.
Resolving deltas: 100% (651/651), done.
roel@arduremoteid:/tmp$ cd arduremoteid/
roel@arduremoteid:/tmp/arduremoteid$ git submodule init
Submodule 'modules/DSDL' (https://github.com/dronecan/DSDL.git) registered for path 'modules/DSDL'
Submodule 'modules/dronecan_dsdlc' (https://github.com/dronecan/dronecan_dsdlc.git) registered for path 'modules/dronecan_dsdlc'
Submodule 'modules/libcanard' (https://github.com/dronecan/libcanard.git) registered for path 'modules/libcanard'
Submodule 'modules/mavlink' (https://github.com/ArduPilot/mavlink.git) registered for path 'modules/mavlink'
Submodule 'modules/opendroneid-core-c' (https://github.com/opendroneid/opendroneid-core-c.git) registered for path 'modules/opendroneid-core-c'
roel@arduremoteid:/tmp/arduremoteid$ git submodule update --recursive
Cloning into '/tmp/arduremoteid/modules/DSDL'...
Cloning into '/tmp/arduremoteid/modules/dronecan_dsdlc'...
Cloning into '/tmp/arduremoteid/modules/libcanard'...
Cloning into '/tmp/arduremoteid/modules/mavlink'...
Cloning into '/tmp/arduremoteid/modules/opendroneid-core-c'...
Submodule path 'modules/DSDL': checked out '04e821222bd5407898861683ad0738c28b8fcaaf'
Submodule path 'modules/dronecan_dsdlc': checked out '6a252d2e33e88144abda7e28e4ded49465dd9912'
Submodule path 'modules/libcanard': checked out 'f646cdd9345c79b2d144056dcce0fd342a3da12f'
Submodule path 'modules/mavlink': checked out '806a3ba7499da677ded35226d6ff88e5a100c4c2'
Submodule path 'modules/opendroneid-core-c': checked out 'ebcff1e44fa549c09d847ac93deffceb8983aec2'
roel@arduremoteid:/tmp/arduremoteid$ ./scripts/install_build_env.sh
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: empy in /home/roel/.local/lib/python3.10/site-packages (3.3.4)
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pymavlink in /home/roel/.local/lib/python3.10/site-packages (2.4.37)
Requirement already satisfied: lxml in /home/roel/.local/lib/python3.10/site-packages (from pymavlink) (4.9.2)
Requirement already satisfied: future in /home/roel/.local/lib/python3.10/site-packages (from pymavlink) (0.18.3)
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: dronecan in /home/roel/.local/lib/python3.10/site-packages (1.0.17)
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (3.5)
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pexpect in /home/roel/.local/lib/python3.10/site-packages (4.8.0)
Requirement already satisfied: ptyprocess>=0.5 in /home/roel/.local/lib/python3.10/site-packages (from pexpect) (0.7.0)
--2023-06-05 20:07:17--  https://downloads.arduino.cc/arduino-cli/arduino-cli_0.27.1_Linux_64bit.tar.gz
Resolving downloads.arduino.cc (downloads.arduino.cc)... 104.18.12.241, 104.18.13.241, 2606:4700::6812:cf1, ...
Connecting to downloads.arduino.cc (downloads.arduino.cc)|104.18.12.241|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13011374 (12M) [application/octet-stream]
Saving to: ‘arduino-cli_0.27.1_Linux_64bit.tar.gz’

arduino-cli_0.27.1_Linux_64bit.tar.gz  100%[============================================================================>]  12.41M  2.62MB/s    in 7.9s    

2023-06-05 20:07:26 (1.57 MB/s) - ‘arduino-cli_0.27.1_Linux_64bit.tar.gz’ saved [13011374/13011374]

arduino-cli
LICENSE.txt
roel@arduremoteid:/tmp/arduremoteid$ ./scripts/regen_headers.sh
Generating mavlink2 headers
Validating modules/mavlink/message_definitions/v1.0/all.xml
Parsing modules/mavlink/message_definitions/v1.0/all.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/ASLUAV.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/ASLUAV.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/common.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/common.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/development.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/development.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/icarous.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/icarous.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/minimal.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/minimal.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/python_array_test.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/python_array_test.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/standard.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/standard.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/test.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/test.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/ualberta.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/ualberta.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/uAvionix.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/uAvionix.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/loweheiser.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/loweheiser.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/storm32.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/storm32.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/AVSSUAS.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/AVSSUAS.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/cubepilot.xml
Parsing /tmp/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
Found 329 MAVLink message types in 16 XML files
Generating C implementation in directory libraries/mavlink2/generated/all
Generating C implementation in directory libraries/mavlink2/generated/ardupilotmega
Generating C implementation in directory libraries/mavlink2/generated/ASLUAV
Generating C implementation in directory libraries/mavlink2/generated/common
Generating C implementation in directory libraries/mavlink2/generated/development
Generating C implementation in directory libraries/mavlink2/generated/icarous
Generating C implementation in directory libraries/mavlink2/generated/minimal
Generating C implementation in directory libraries/mavlink2/generated/python_array_test
Generating C implementation in directory libraries/mavlink2/generated/standard
Generating C implementation in directory libraries/mavlink2/generated/test
Generating C implementation in directory libraries/mavlink2/generated/ualberta
Generating C implementation in directory libraries/mavlink2/generated/uAvionix
Generating C implementation in directory libraries/mavlink2/generated/loweheiser
Generating C implementation in directory libraries/mavlink2/generated/storm32
Generating C implementation in directory libraries/mavlink2/generated/AVSSUAS
Generating C implementation in directory libraries/mavlink2/generated/cubepilot
Copying fixed headers for protocol 2.0 to libraries/mavlink2/generated
Generating DroneCAN headers for libcanard
expanding uavcan.CoarseOrientation
expanding uavcan.Timestamp
expanding uavcan.tunnel.Protocol
expanding uavcan.tunnel.Call
expanding uavcan.tunnel.Broadcast
expanding uavcan.navigation.GlobalNavigationSolution
expanding uavcan.equipment.hardpoint.Status
expanding uavcan.equipment.hardpoint.Command
expanding uavcan.equipment.esc.RawCommand
expanding uavcan.equipment.esc.RPMCommand
expanding uavcan.equipment.esc.Status
expanding uavcan.equipment.camera_gimbal.AngularCommand
expanding uavcan.equipment.camera_gimbal.Status
expanding uavcan.equipment.camera_gimbal.GEOPOICommand
expanding uavcan.equipment.camera_gimbal.Mode
expanding uavcan.equipment.indication.SingleLightCommand
expanding uavcan.equipment.indication.BeepCommand
expanding uavcan.equipment.indication.RGB565
expanding uavcan.equipment.indication.LightsCommand
expanding uavcan.equipment.ahrs.RawIMU
expanding uavcan.equipment.ahrs.MagneticFieldStrength
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.Sideslip
expanding uavcan.equipment.air_data.RawAirData
expanding uavcan.equipment.air_data.TrueAirspeed
expanding uavcan.equipment.air_data.AngleOfAttack
expanding uavcan.equipment.air_data.IndicatedAirspeed
expanding uavcan.equipment.air_data.StaticTemperature
expanding uavcan.equipment.air_data.StaticPressure
expanding uavcan.equipment.ice.FuelTankStatus
expanding uavcan.equipment.ice.reciprocating.CylinderStatus
expanding uavcan.equipment.ice.reciprocating.Status
expanding uavcan.equipment.safety.ArmingStatus
expanding uavcan.equipment.gnss.Fix2
expanding uavcan.equipment.gnss.ECEFPositionVelocity
expanding uavcan.equipment.gnss.RTCMStream
expanding uavcan.equipment.gnss.Fix
expanding uavcan.equipment.gnss.Auxiliary
expanding uavcan.equipment.device.Temperature
expanding uavcan.equipment.power.CircuitStatus
expanding uavcan.equipment.power.PrimaryPowerSupplyStatus
expanding uavcan.equipment.power.BatteryInfo
expanding uavcan.equipment.range_sensor.Measurement
expanding uavcan.protocol.GetNodeInfo
expanding uavcan.protocol.DataTypeKind
expanding uavcan.protocol.CANIfaceStats
expanding uavcan.protocol.GetTransportStats
expanding uavcan.protocol.HardwareVersion
expanding uavcan.protocol.SoftwareVersion
expanding uavcan.protocol.Panic
expanding uavcan.protocol.RestartNode
expanding uavcan.protocol.GetDataTypeInfo
expanding uavcan.protocol.AccessCommandShell
expanding uavcan.protocol.NodeStatus
expanding uavcan.protocol.GlobalTimeSync
expanding uavcan.protocol.dynamic_node_id.Allocation
expanding uavcan.protocol.dynamic_node_id.server.AppendEntries
expanding uavcan.protocol.dynamic_node_id.server.Discovery
expanding uavcan.protocol.dynamic_node_id.server.Entry
expanding uavcan.protocol.dynamic_node_id.server.RequestVote
expanding uavcan.protocol.enumeration.Indication
expanding uavcan.protocol.enumeration.Begin
expanding uavcan.protocol.param.Value
expanding uavcan.protocol.param.ExecuteOpcode
expanding uavcan.protocol.param.GetSet
expanding uavcan.protocol.param.NumericValue
expanding uavcan.protocol.param.Empty
expanding uavcan.protocol.file.GetDirectoryEntryInfo
expanding uavcan.protocol.file.Write
expanding uavcan.protocol.file.Delete
expanding uavcan.protocol.file.BeginFirmwareUpdate
expanding uavcan.protocol.file.Read
expanding uavcan.protocol.file.Error
expanding uavcan.protocol.file.EntryType
expanding uavcan.protocol.file.GetInfo
expanding uavcan.protocol.file.Path
expanding uavcan.protocol.debug.LogLevel
expanding uavcan.protocol.debug.KeyValue
expanding uavcan.protocol.debug.LogMessage
expanding dronecan.sensors.hygrometer.Hygrometer
expanding dronecan.remoteid.BasicID
expanding dronecan.remoteid.OperatorID
expanding dronecan.remoteid.ArmStatus
expanding dronecan.remoteid.Location
expanding dronecan.remoteid.SelfID
expanding dronecan.remoteid.SecureCommand
expanding dronecan.remoteid.System
expanding com.hex.equipment.flow.Measurement
roel@arduremoteid:/tmp/arduremoteid$ ./scripts/add_libraries.sh
roel@arduremoteid:/tmp/arduremoteid$ cd RemoteIDModule/
roel@arduremoteid:/tmp/arduremoteid/RemoteIDModule$ 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                                                                                                      

A new release of Arduino CLI is available: 0.27.1 → 0.33.0
https://arduino.github.io/arduino-cli/latest/installation/#latest-packages
../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.11.0
roel@arduremoteid:/tmp/arduremoteid/RemoteIDModule$ make bluemark-db200 
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 BLUEMARK_DB200 on esp32c3
Sketch uses 1363592 bytes (67%) of program storage space. Maximum is 2031616 bytes.
Global variables use 57292 bytes (17%) of dynamic memory, leaving 270388 bytes for local variables. Maximum is 327680 bytes.

Used library       Version Path                                                                         
libopendroneid             /tmp/arduremoteid/modules/opendroneid-core-c/libopendroneid                  
mavlink2           1.0     /tmp/arduremoteid/libraries/mavlink2                                         
libcanard                  /tmp/arduremoteid/modules/libcanard                                          
DroneCAN_generated         /tmp/arduremoteid/libraries/DroneCAN_generated                               
WiFi               2.0.0   /home/roel/.arduino15/packages/esp32/hardware/esp32/2.0.3/libraries/WiFi     
BLE                2.0.0   /home/roel/.arduino15/packages/esp32/hardware/esp32/2.0.3/libraries/BLE      
WebServer          2.0.0   /home/roel/.arduino15/packages/esp32/hardware/esp32/2.0.3/libraries/WebServer
ESPmDNS            2.0.0   /home/roel/.arduino15/packages/esp32/hardware/esp32/2.0.3/libraries/ESPmDNS  
Update             2.0.0   /home/roel/.arduino15/packages/esp32/hardware/esp32/2.0.3/libraries/Update   
FS                 2.0.0   /home/roel/.arduino15/packages/esp32/hardware/esp32/2.0.3/libraries/FS       

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

Merging BLUEMARK_DB200
esptool.py v3.3-dev
Flash params set to 0x022f
Wrote 0x167e80 bytes to file ArduRemoteID-BLUEMARK_DB200.bin, ready to flash to offset 0x0
roel@arduremoteid:/tmp/arduremoteid/RemoteIDModule$ cat /etc/debian_version 
bookworm/sid

Also the make (esp32s3 build) compiles:

roel@arduremoteid:/tmp/arduremoteid/RemoteIDModule$ make clean
rm -rf ..esp32* *.bin build* romfs_files.h
roel@arduremoteid:/tmp/arduremoteid/RemoteIDModule$ make
Generating mavlink2 headers
Validating modules/mavlink/message_definitions/v1.0/all.xml
Parsing modules/mavlink/message_definitions/v1.0/all.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/ardupilotmega.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/ASLUAV.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/ASLUAV.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/common.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/common.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/development.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/development.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/icarous.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/icarous.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/minimal.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/minimal.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/python_array_test.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/python_array_test.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/standard.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/standard.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/test.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/test.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/ualberta.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/ualberta.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/uAvionix.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/uAvionix.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/loweheiser.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/loweheiser.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/storm32.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/storm32.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/AVSSUAS.xml
Parsing /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/AVSSUAS.xml
Validating /tmp/arduremoteid/modules/mavlink/message_definitions/v1.0/cubepilot.xml
Parsing /tmp/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
Found 329 MAVLink message types in 16 XML files
Generating C implementation in directory libraries/mavlink2/generated/all
Generating C implementation in directory libraries/mavlink2/generated/ardupilotmega
Generating C implementation in directory libraries/mavlink2/generated/ASLUAV
Generating C implementation in directory libraries/mavlink2/generated/common
Generating C implementation in directory libraries/mavlink2/generated/development
Generating C implementation in directory libraries/mavlink2/generated/icarous
Generating C implementation in directory libraries/mavlink2/generated/minimal
Generating C implementation in directory libraries/mavlink2/generated/python_array_test
Generating C implementation in directory libraries/mavlink2/generated/standard
Generating C implementation in directory libraries/mavlink2/generated/test
Generating C implementation in directory libraries/mavlink2/generated/ualberta
Generating C implementation in directory libraries/mavlink2/generated/uAvionix
Generating C implementation in directory libraries/mavlink2/generated/loweheiser
Generating C implementation in directory libraries/mavlink2/generated/storm32
Generating C implementation in directory libraries/mavlink2/generated/AVSSUAS
Generating C implementation in directory libraries/mavlink2/generated/cubepilot
Copying fixed headers for protocol 2.0 to libraries/mavlink2/generated
Generating DroneCAN headers for libcanard
expanding uavcan.CoarseOrientation
expanding uavcan.Timestamp
expanding uavcan.tunnel.Protocol
expanding uavcan.tunnel.Call
expanding uavcan.tunnel.Broadcast
expanding uavcan.navigation.GlobalNavigationSolution
expanding uavcan.equipment.hardpoint.Status
expanding uavcan.equipment.hardpoint.Command
expanding uavcan.equipment.esc.RawCommand
expanding uavcan.equipment.esc.RPMCommand
expanding uavcan.equipment.esc.Status
expanding uavcan.equipment.camera_gimbal.AngularCommand
expanding uavcan.equipment.camera_gimbal.Status
expanding uavcan.equipment.camera_gimbal.GEOPOICommand
expanding uavcan.equipment.camera_gimbal.Mode
expanding uavcan.equipment.indication.SingleLightCommand
expanding uavcan.equipment.indication.BeepCommand
expanding uavcan.equipment.indication.RGB565
expanding uavcan.equipment.indication.LightsCommand
expanding uavcan.equipment.ahrs.RawIMU
expanding uavcan.equipment.ahrs.MagneticFieldStrength
expanding uavcan.equipment.ahrs.Solution
expanding uavcan.equipment.ahrs.MagneticFieldStrength2
expanding uavcan.equipment.actuator.Status
expanding uavcan.equipment.actuator.ArrayCommand
expanding uavcan.equipment.actuator.Command
expanding uavcan.equipment.air_data.Sideslip
expanding uavcan.equipment.air_data.RawAirData
expanding uavcan.equipment.air_data.TrueAirspeed
expanding uavcan.equipment.air_data.AngleOfAttack
expanding uavcan.equipment.air_data.IndicatedAirspeed
expanding uavcan.equipment.air_data.StaticTemperature
expanding uavcan.equipment.ice.FuelTankStatus
expanding uavcan.equipment.air_data.StaticPressure
expanding uavcan.equipment.ice.reciprocating.CylinderStatus
expanding uavcan.equipment.ice.reciprocating.Status
expanding uavcan.equipment.safety.ArmingStatus
expanding uavcan.equipment.gnss.Fix2
expanding uavcan.equipment.gnss.ECEFPositionVelocity
expanding uavcan.equipment.gnss.RTCMStream
expanding uavcan.equipment.gnss.Fix
expanding uavcan.equipment.gnss.Auxiliary
expanding uavcan.equipment.device.Temperature
expanding uavcan.equipment.power.CircuitStatus
expanding uavcan.equipment.power.PrimaryPowerSupplyStatus
expanding uavcan.equipment.power.BatteryInfo
expanding uavcan.equipment.range_sensor.Measurement
expanding uavcan.protocol.GetNodeInfo
expanding uavcan.protocol.DataTypeKind
expanding uavcan.protocol.CANIfaceStats
expanding uavcan.protocol.GetTransportStats
expanding uavcan.protocol.HardwareVersion
expanding uavcan.protocol.SoftwareVersion
expanding uavcan.protocol.Panic
expanding uavcan.protocol.RestartNode
expanding uavcan.protocol.GetDataTypeInfo
expanding uavcan.protocol.AccessCommandShell
expanding uavcan.protocol.NodeStatus
expanding uavcan.protocol.GlobalTimeSync
expanding uavcan.protocol.dynamic_node_id.Allocation
expanding uavcan.protocol.dynamic_node_id.server.Discovery
expanding uavcan.protocol.dynamic_node_id.server.AppendEntries
expanding uavcan.protocol.dynamic_node_id.server.Entry
expanding uavcan.protocol.dynamic_node_id.server.RequestVote
expanding uavcan.protocol.enumeration.Indication
expanding uavcan.protocol.enumeration.Begin
expanding uavcan.protocol.param.ExecuteOpcode
expanding uavcan.protocol.param.Value
expanding uavcan.protocol.param.GetSet
expanding uavcan.protocol.param.NumericValue
expanding uavcan.protocol.param.Empty
expanding uavcan.protocol.file.GetDirectoryEntryInfo
expanding uavcan.protocol.file.Write
expanding uavcan.protocol.file.Delete
expanding uavcan.protocol.file.BeginFirmwareUpdate
expanding uavcan.protocol.file.Read
expanding uavcan.protocol.file.Error
expanding uavcan.protocol.file.EntryType
expanding uavcan.protocol.file.GetInfo
expanding uavcan.protocol.file.Path
expanding uavcan.protocol.debug.LogLevel
expanding uavcan.protocol.debug.KeyValue
expanding uavcan.protocol.debug.LogMessage
expanding dronecan.sensors.hygrometer.Hygrometer
expanding dronecan.remoteid.BasicID
expanding dronecan.remoteid.OperatorID
expanding dronecan.remoteid.ArmStatus
expanding dronecan.remoteid.Location
expanding dronecan.remoteid.SelfID
expanding dronecan.remoteid.SecureCommand
expanding dronecan.remoteid.System
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
Sketch uses 1356221 bytes (66%) of program storage space. Maximum is 2031616 bytes.
Global variables use 66928 bytes (20%) of dynamic memory, leaving 260752 bytes for local variables. Maximum is 327680 bytes.

Used library       Version Path                                                                         
libopendroneid             /tmp/arduremoteid/modules/opendroneid-core-c/libopendroneid                  
mavlink2           1.0     /tmp/arduremoteid/libraries/mavlink2                                         
libcanard                  /tmp/arduremoteid/modules/libcanard                                          
DroneCAN_generated         /tmp/arduremoteid/libraries/DroneCAN_generated                               
WiFi               2.0.0   /home/roel/.arduino15/packages/esp32/hardware/esp32/2.0.3/libraries/WiFi     
Adafruit_NeoPixel  1.11.0  /home/roel/Arduino/libraries/Adafruit_NeoPixel                               
BLE                2.0.0   /home/roel/.arduino15/packages/esp32/hardware/esp32/2.0.3/libraries/BLE      
WebServer          2.0.0   /home/roel/.arduino15/packages/esp32/hardware/esp32/2.0.3/libraries/WebServer
ESPmDNS            2.0.0   /home/roel/.arduino15/packages/esp32/hardware/esp32/2.0.3/libraries/ESPmDNS  
Update             2.0.0   /home/roel/.arduino15/packages/esp32/hardware/esp32/2.0.3/libraries/Update   
FS                 2.0.0   /home/roel/.arduino15/packages/esp32/hardware/esp32/2.0.3/libraries/FS       

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

Merging ESP32S3_DEV
esptool.py v3.3-dev
Wrote 0x15b340 bytes to file ArduRemoteID-ESP32S3_DEV.bin, ready to flash to offset 0x0

Maybe the issue is in an outdated pymavlink?

Here is the list of install python packages:

roel@arduremoteid:/tmp/arduremoteid/RemoteIDModule$ pip list
Package               Version
--------------------- ---------------
attrs                 21.2.0
Babel                 2.8.0
blinker               1.4
certifi               2020.6.20
chardet               4.0.0
click                 8.0.3
cloud-init            22.2
colorama              0.4.4
configobj             5.0.6
cryptography          3.4.8
dbus-python           1.2.18
distro                1.7.0
distro-info           1.1build1
dronecan              1.0.17
empy                  3.3.4
future                0.18.3
httplib2              0.20.2
idna                  3.3
importlib-metadata    4.6.4
jeepney               0.7.1
Jinja2                3.0.3
jsonpatch             1.32
jsonpointer           2.0
jsonschema            3.2.0
keyring               23.5.0
launchpadlib          1.10.16
lazr.restfulclient    0.14.4
lazr.uri              1.0.6
lxml                  4.9.2
MarkupSafe            2.0.1
more-itertools        8.10.0
netifaces             0.11.0
oauthlib              3.2.0
pexpect               4.8.0
pip                   22.0.2
ptyprocess            0.7.0
PyGObject             3.42.1
PyJWT                 2.3.0
pymavlink             2.4.37
pymonocypher          3.1.3.1
pyparsing             2.4.7
pyrsistent            0.18.1
pyserial              3.5
python-apt            2.3.0+ubuntu2.1
pytz                  2022.1
PyYAML                5.4.1
requests              2.25.1
SecretStorage         3.3.1
setuptools            59.6.0
six                   1.16.0
ssh-import-id         5.11
systemd-python        234
ubuntu-drivers-common 0.0.0
unattended-upgrades   0.1
urllib3               1.26.5
wadllib               1.3.6
wheel                 0.37.1
xkit                  0.0.0
zipp                  1.0.0

edit: it runs python 3.10.6

roel@arduremoteid:/tmp/arduremoteid/RemoteIDModule$ python3 --version
Python 3.10.6
kc2rxo commented 1 year ago

Double checked a few things. First I am running Ubuntu 20.04.6. Second my pymavlink was at 2.4.18 which I force upgraded via pip to 2.4.39. I am running Python 3.8.10.

This upgrade did nothing to fix the issue. I going to try and use a VM with a super clean install and see what happens.

kc2rxo commented 1 year ago

Both VMs I setup (Ubuntu 22.04.2 LTS and Debian 11.7) fail with a clean repo pull and following BUILDING.md.

They both fail with original error reported by @shalomc-airo.

I tried a lot of combinations most of which I failed to jot down. What did work on Debian however was this:

git clone https://github.com/ardupilot/arduremoteid
cd ArduRemoteID
git submodule init
git submodule update --recursive
cd modules/mavlink
git checkout master
cd ../..
./scripts/install_build_env.sh
./scripts/regen_headers.sh
./scripts/add_libraries.sh
cd RemoteIDModule
make setup
make esp32c3dev

Ubuntu stills fails complaining about missing generated/all/version.h using the same steps.

During testing I would blow away the repo completely and start from scratch to be sure everything I could was cleaned out.

Edit: current commits per my local repo are as follows: ArduRemoteID: 77b35f7 module/dronecan_dsdlc: 6a252d2 module/DSDL: 04e8212 module/libcanard: f646cdd module/mavlink: 8e44a3f module/opendroneid-core-c: ebcff1e

BluemarkInnovations commented 1 year ago

@kc2rxo I did test it today with a Ubuntu 22.04.2 server VM.

I can confirm that I got the same error. It doesn't build under Ubuntu.

shalomc-airo commented 1 year ago

The versions that compiled for me on Ubuntu 22.04: arduremoteid: ddafa38 mavlink: 24e31ed3 libcanard: f646cdd dronecan_dsdlc: 6a252d2 DSDL: 04e8212

kc2rxo commented 1 year ago

@shalomc-airo your latest works for me as well on Ubuntu 20.04.

Just to complete the list of commits: arduremoteid: ddafa38 mavlink: 24e31ed3 / pymavlink: f41a355 libcanard: f646cdd dronecan_dsdlc: 6a252d2 DSDL: 04e8212 opendroneid-c-core: ebcff1e4

kc2rxo commented 1 year ago

Ran a clean build on Ubuntu 20.04, all works with the following commands:

git clone https://github.com/ArduPilot/ArduRemoteID.git
cd ArduRemoteID
git submodule init
git submodule update --recursive
git checkout ddafa387
cd modules/mavlink
git checkout 24e31ed3
cd ../..
./scripts/install_build_env.sh
./scripts/regen_headers.sh
./scripts/add_libraries.sh
cd RemoteIDModule
make setup
make esp32c3dev

Commits again for everything: arduremoteid: ddafa38 modules/mavlink: 24e31ed3 modules/libcanard: f646cdd modules/dronecan_dsdlc: 6a252d2 modules/DSDL: 04e8212 modules/opendroneid-c-core: ebcff1e4

tridge commented 1 year ago

I think the issue is just the submodules were not updated. You can re-run

 git submodule update --recursive --force --init

when you have done an update of this project and that will update your submodules to the right version

BluemarkInnovations commented 1 year ago

With the latest master (fc606790181b97f16963f474f459118508bbeea6), I was able to build ArduRemoteID without errors.

kc2rxo commented 1 year ago

Same here. Latest seems to work for me no problem.