PXFmini Builds are not compiling correctly

That’s very helpful, thanks.

I’ve built arducopter for the PXFMini successfullyon Ubuntu, but it won’t run on the Pi Zero, I’m getting a seg fault.

I think it’s a mismatch between versions. I’ve been unable to get any of the new, Ubuntu APSync images to boot on the PI, see Ubuntu T265 images do not boot on Pi Zero

So I’ve been using the Raspbian based build at New APSync Build for Raspberry Pi

Looking at the environment setup script in the build I think I have all the pre-requisites installed, waf runs and configures the build successfully, but the build itself ./waf copter waits a few minutes then fails.

Waf: Entering directory `/home/pi/src/build/pxfmini'
Waf: Leaving directory `/home/pi/src/build/pxfmini'
Build failed
Traceback (most recent call last):
  File "/home/pi/src/modules/waf/waflib/Runner.py", line 395, in task_status
    return tsk.runnable_status()
  File "Tools/ardupilotwaf/git_submodule.py", line 75, in runnable_status
    out = self.generator.bld.cmd_and_log(cmd, quiet=Context.BOTH, cwd=self.cwd)
  File "/home/pi/src/modules/waf/waflib/Context.py", line 461, in cmd_and_log
    raise e
WafError: Command ('/usr/bin/git', 'submodule', 'status', '--recursive', '--', '/home/pi/src/modules/gtest') returned 128

Ideally I’d like to use the official APSync images which I’m guessing would allow me to use the pre-build pxfmini binary or cross compile on my Ubuntu machine, but I can’t, and I can’t seem to get the PI to build the pxfmini binary either, so I’m a little stuck.

Any help from either direction would be appreciated.