I cannot build px4 even though I cloned fresh copy of both librobotcontrol and Firmware and followed instructions (Redirecting to latest version of document (master)) one by one.
env setup
export TOOLCHAIN_ROOT=$HOME/toolchain/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf
export CROSS_COMPILE=arm-linux-gnueabihf
export ARCH=arm
export CC=arm-linux-gnueabihf-gcc
export CXX=arm-linux-gnueabihf-g++
NEWP=$(echo $PATH | tr ':' '\n' | grep -v "^$HOME" | tr '\n' ':')
NEWP=${NEWP%:}
export PATH=$TOOLCHAIN_ROOT/bin/:$NEWP
robotcontrol
git clone git://github.com/StrawsonDesign/librobotcontrol
cd librobotcontrol
sed 's/gcc/arm-linux-gnueabihf-gcc/' -i `grep gcc * -Rl`
export DESTDIR=~/arm
make install
ls ~/arm
Firmware
export LIBROBOTCONTROL_INSTALL_DIR=~/arm/usr
make beaglebone_blue_cross
[23/698] Building CXX object src/lib/DriverFramework/framework/src/CMakeFiles/df_driver_framework.dir/I2CDevObj.cpp.o
…
/home/mpletty/arm/usr/include/rc/mavlink/common/…/protocol.h: In function ‘uint16_t _MAV_RETURN_uint16_t(const mavlink_message_t*, uint8_t)’:
/home/mpletty/arm/usr/include/rc/mavlink/common/…/protocol.h:279:49: error: cast from ‘const char*’ to ‘const uint16_t* {aka const short unsigned int*}’ increases required alignment of target type [-Werror=cast-align]
{ return *(const TYPE *)(&_MAV_PAYLOAD(msg)[ofs]);}
^
/home/mpletty/arm/usr/include/rc/mavlink/common/…/protocol.h:281:1: note: in expansion of macro ‘_MAV_MSG_RETURN_TYPE’
_MAV_MSG_RETURN_TYPE(uint16_t)
Can anyone else replicate?