Problem building ArduCopter

I’m trying to build arducopter on my macbook air 10.8 right now and I’m following the instructions listed here:

dev.ardupilot.com/wiki/building- … ke-on-mac/

I ran the line listed in the sixth step: make px4-v2 but I get this funky message:

// BUILDROOT=/Users/johngee/Documents/px4/ardupilot/Build.ArduCopter HAL_BOARD=HAL_BOARD_PX4 HAL_BOARD_SUBTYPE= TOOLCHAIN=NATIVE EXTRAFLAGS=-DGIT_VERSION=“3dfb447f” -DNUTTX_GIT_VERSION=“d447403a” -DPX4_GIT_VERSION=“b0cb142b” -DUAVCAN=1
Checking modules
module/PX4Firmware/.git missing - need module init

  • git submodule init
  • git submodule update
  • cat
    ==============================
    git submodules are initialised

Please see dev.ardupilot.com/wiki/git-submodules/

Please restart the build

  • exit 1
    make: *** [CHECK_MODULES] Error 1

This is after I individually cloned all three modules like so:
git clone github.com/diydrones/PX4Firmware
git clone github.com/diydrones/PX4NuttX
git clone github.com/diydrones/uavcan

because my first git clone from git clone github.com/diydrones/ardupilot.git didn’t seem to clone the three modules. Can anybody please help? Thanks!

hi,I have the same problem with you,and I want to know have you solved the problem?
thanks

Run the make command again.

I also had to update empy - it gave the instructions - and then did the make again.

Hi,

I have a similar problem.
I’m trying to build ArduPilot for Pixhawk/PX4 on Windows 10 with Make.

I changed modules/PX4Firmware from here to add SRXL XBUS support:
github.com/omcaree/PX4Firmware.git

[quote]Sven@Cromartie /c/Users/dan/Documents/GitHub/ardupilot/ArduCopter
$ make px4-v2
// BUILDROOT=/c/Users/funky/Documents/GitHub/ardupilot/Build.ArduCopter HAL_BOARD=HAL_BOARD_PX4 HAL_BOARD_SUBTYPE= TOOLCHAIN=NATIVE EXTRAFLAGS=-DGIT_VERSION=“1f287da7” -DNUTTX_GIT_VERSION=“7c5ef883” -DPX4_GIT_VERSION=“548f37a7” -DUAVCAN=1
Checking modules
module/PX4Firmware/.git missing - need module init

  • git submodule init
    Submodule ‘modules/PX4Firmware’ () registered for path 'modules/PX4Firmware’
    Submodule ‘modules/PX4NuttX’ () registered for path 'modules/PX4NuttX’
    Submodule ‘modules/uavcan’ () registered for path ‘modules/uavcan’
  • git submodule update
    fatal: reference is not a tree: 51858c810a3cb086d7c2041328bd32adec9fa724
    Unable to checkout ‘51858c810a3cb086d7c2041328bd32adec9fa724’ in submodule path ‘modules/PX4Firmware’
  • echo 'git submodule update failed’
    git submodule update failed
  • exit 1
    make: *** [CHECK_MODULES] Error 1[/quote]

I tried ‘git submodule update’ in ardupilot directory

[quote]
Sven@Cromartie /c/Users/funky/Documents/GitHub/ardupilot
$ git submodule update
fatal: reference is not a tree: 51858c810a3cb086d7c2041328bd32adec9fa724
Unable to checkout ‘51858c810a3cb086d7c2041328bd32adec9fa724’ in submodule path ‘modules/PX4Firmware’[/quote]

I need help please.

Kind Regards,
Sven

I’ve just been going through similar issues with this when trying to build Ardupilot.
This seems to have helped me at least download the GIT submodules with getting constant errors.

git config --global url.“https://”.insteadOf git://

With that stage sorted, now onto the next lot of build errors with ArduPilot. What a journey this has become :astonished: .