I’ve zipped the repo at ArduSub-stablehere, but it’s ~500MB to download, and because it was cloned directly from the ArduPilot repo you should be able to test with it but won’t be able to push changes to your own remote, or make pull requests.
That’s probably not particularly important though, since once you’ve confirmed your configuration works the way you want it to you can move the changes over to your own repo (off your master branch) and pull request from there
Did you follow the build environment setup? That uses sudo internally, which I would expect should mean there shouldn’t be permission issues at this stage. If you have already installed the prerequisites then maybe try chmod +x waf, but it shouldn’t be necessary (waf should already be executable by default).
i tried to use the ardusub-stable file you provided in this discussion. anyways i tried the instructions you provide. is this fine? im on the part where the code is Tools/environment_install/install-prereqs-ubuntu.sh -y
Even the master branch doesn’t seem fully updated for 22.04 yet, and the updates that have occurred are all from March or later, which is more recently than the ArduSub stable branch has been updated. I’d recommend using 20.04 if possible, and if that’s not possible as your main OS then you can perhaps try in a virtual machine instead (using e.g. VirtualBox).
You can of course wait until 22.04 is fully supported for ArduSub, but there isn’t a fixed date where that will happen, and I expect we’ll try to push out ArduSub 4.1 as the new stable first.
hi eliot, i tried the version 18.04. im still having an error when i do the submodule update and the error is the same in version 22.04. but i will try the version 20.04, hopefully its the solution for the error.
Good day im still having the same error when updating the submodule. i attached the guide im using and the entire output. What do you think the problem in here? i tried all the linux version 18.04, 20.04 and 22.04. All of them has the same error. Thank you!
I spoke with our software team and @williangalvani is working on updating submodules to solve the issue properly for ArduSub >= 4.1, but completing that may take some more time.
I’ve just tried a fresh install of a fresh ardupilot fork on Ubuntu 20.04, and it worked without issues when using that workaround. Combining for a full set of instructions:
git clone https://github.com/your-github-userid/ardupilot
# fetch the latest tags
git fetch --tags
# checkout the latest stable tag, and branch off it in your own 'new-branch'
git checkout ArduSub-stable -b new-branch
# manually fix deprecated authentication format
sed -i -e s/git:/https:/ .gitmodules
# initial submodule update and initialisation
git submodule update --init
# fix the same issue within a submodule
sed -i -e s/git:/https:/ modules/mavlink/.gitmodules
# update submodules recursively and continue as normal
git submodule update --init --recursive
# install prerequisites
# reload the path
# configure waf for your board (e.g. Pixhawk1)
./waf configure --board Pixhawk1
Note that if you try to initialise submodules before the links have been changed properly then the incorrect link is stored internally, so it’s much easier to start with a fresh ardupilot clone and work through the instructions from the top.