Skip to content

Can't build NuttX targets #346

@breuerpeter

Description

@breuerpeter

Link to forum

I am trying to build a NuttX target inside an official PX4 container (with no ROS 2 installed). I think this should be possible.

  1. 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
  1. Attempting to build a NuttX target e.g. make px4_fmu-v5_default 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions