Compiling: What am I doing wrong?

I had downloaded APM from master and compiled it on the JAN version of the RT image, everything was running great. I just downloaded the new image, and tried with both the official APM and emlid git and am running into the following:

pi@us2m01 ~/navio/ardupilot/ArduCopter $ sudo make configure
../mk/configure.mk:2: WARNING - A /home/pi/navio/ardupilot/config.mk file has been written
../mk/configure.mk:2: Please edit the file to match your system configuration, if you use a different board or port
pi@us2m01 ~/navio/ardupilot/ArduCopter $ sudo make navio
// BUILDROOT=/tmp/ArduCopter.build HAL_BOARD=HAL_BOARD_LINUX HAL_BOARD_SUBTYPE=HAL_BOARD_SUBTYPE_LINUX_NAVIO TOOLCHAIN=RPI EXTRAFLAGS=-DGIT_VERSION="e9bbe062"
building /tmp/ArduCopter.build/ArduCopter.cpp
%% ArduCopter.cpp
make: *** No rule to make target '/home/pi/ardupilot/libraries/AP_Common/AP_Common.h', needed by '/tmp/ArduCopter.build/ArduCopter.o'.  Stop.

Trying to compile on the rpi, of course.

Am I forgetting something? I can’t get anything to compile anymore.

Disregard due to my own stupidity. Seems to work fine without sudo!

Great that you have figured it out. I also suggest to upgrade to the latest Raspbian as here.