-
Notifications
You must be signed in to change notification settings - Fork 54
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
Can't compile on Ubuntu 22.04 #114
Comments
Looks like the problems is that mavgen was failing, this was with latest head (Hash 9806a3ba7).
|
This seems to be a problem with versions of the submodules. There is Ardupilot and under that, Mavlink. 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. |
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: #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. |
Setting Is there a specific commit that did work for you 3 weeks ago? |
Can you use commit: 5b4e041 ? It is the commit of the 1.11 release: 5b4e041 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. |
Same errors on 5b4e041 with running Section 2 before attempting a make. |
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(?)
Also the make (esp32s3 build) compiles:
Maybe the issue is in an outdated pymavlink? Here is the list of install python packages:
edit: it runs python 3.10.6
|
Double checked a few things. First I am running Ubuntu 20.04.6. Second my 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. |
Both VMs I setup (Ubuntu 22.04.2 LTS and Debian 11.7) fail with a clean repo pull and following 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 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: |
@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. |
The versions that compiled for me on Ubuntu 22.04: |
@shalomc-airo your latest works for me as well on Ubuntu 20.04. Just to complete the list of commits: |
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: |
I think the issue is just the submodules were not updated. You can re-run
when you have done an update of this project and that will update your submodules to the right version |
With the latest master (fc60679), I was able to build ArduRemoteID without errors. |
Same here. Latest seems to work for me no problem. |
After following the instructions in BUILDING.md, I seethe following compilation error:
Host: Ubuntu 22.04
Python: 3.10.6
Make output:
The text was updated successfully, but these errors were encountered: