I am now simply trying to build a NuttX target inside an official PX4 container (with no ROS 2 installed). I believe this should be possible.
I figure it’s best if I go through the errors I am encountering step by step:
To make this easily reproducible I have done the following:
- Run a Ubuntu 22.04 (Jammy) Docker container according to the instructions by running:
# enable access to xhost from the container
xhost +
# Run docker and open bash shell
docker run -it --privileged \
--env=LOCAL_USER_ID="$(id -u)" \
-v ~/src/PX4-Autopilot:/src/PX4-Autopilot/:rw \
-v /tmp/.X11-unix:/tmp/.X11-unix:ro \
-e DISPLAY=:0 \
--network host \
--name=px4-base px4io/px4-dev-base-jammy bash
- Try to build a NuttX target e.g.
make px4_fmu-v5_default
. This gives the following error:
CMake Error at CMakeLists.txt:219 (project):
The CMAKE_CXX_COMPILER:arm-none-eabi-g++
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable “CXX” or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.CMake Error at CMakeLists.txt:219 (project):
The CMAKE_C_COMPILER:arm-none-eabi-gcc
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable “CC” or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.– Enabling double FP precision hardware instructions
CMake Error at CMakeLists.txt:219 (project):
The CMAKE_ASM_COMPILER:arm-none-eabi-gcc
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable “ASM” or the CMake cache entry CMAKE_ASM_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
How can I resolve this error?