Hi,
I am trying to build ArduPlane Firmware for a QUADPLANE specific to a Tricopter/Plane structure with 2 forward tilting props/motors.
This code has been run in SITL and builds and works.
I used the following process and ran into errors:
I made a fresh branch of the Ardupilot Master Repo just today.
I opened PX4 console and navigated to "...Ardupilot/Arduplane" directory.
Then used the following commands:
make px4-clean
make px4-v2-tri -j4
After about 5 - 10 minutes (i wasn't watching) it got stuck at a point for more than 15 minutes.
I tried to Ctrl-C (and various other breaks) but nothing worked so i exited the console and tried again.
This time without the "clean" command it got stuck again at a different point.
Then i exited and tried again with "clean" then build.
This time it went for 10 minutes and stopped with the error message:
"make: *** [px4-v2] Error 2"
I am very very new to firmware Dev for Ardupilot but i have previously built and loaded a working Tri-Copter Firmware. I've attached a few screen shots of PX4 Console during the building and of the errors and commands.
Any idea's?
Replies
Ok Problem Solved.
Up until now i had been using Source Tree (Git Interface) to clone a branch of the Ardupilot Master Repo. Due to this i had been ignoring the first couple of instructions on the "Building Ardupilot for Pixhawk?PX4 on Windows with Make"
As such the problem was i had been trying to build the Ardupilot firmware without having updated the PX4 submodules (specific for Pixhawks and have their own Repository Seperate to Ardupilot).
So i ditched Source Tree and my own branch and followed the Ardupilot instructions to a T.
I also changed the cloned repository Directory to a shorter path name.
Doing these things, the build then worked.
Thanks for bearing with me.
-Bede
Paul,
Matt our team mentor made a fork of the master Ardupilot Repo yesterday using the Source Tree git interface and then i cloned that Repo at the start of today. I have been following those very instructions.
I will try clone the Master repo directly and see if it makes a difference.
And perhaps move the repo to a location with a shorter Directory path
Here is the make.out file with the PX4 console output for the build.
Hopefully it will help.
make.out
the first error is:
fatal: Not a git repository: C:/Users/bedew/Documents/Eclipse Workspace/ArdupilotRepo/.git/modules/modules/PX4Firmware
can you check if there is a ".git" file in that directory? If there isn't, then how did you create this directory?
Please also run:
git submodule status
and:
../mk/check_modules.sh
show the output of each.
If you can't solve this quickly you may be better off using an Ubuntu VM to do the build.
For the "Error 2" you'd have to scroll back far enough to see the root cause of the error. Or build like this:
make px4-v2-tri -j4 2>&1 | tee make.out
that rather strange looking command will do the build with all output and errors also going to make.out. Then you could post make.out here for someone to look at.
It is possible you are running low on memory with the parallel build. You could try without the -j4.