Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build NuttX targets #346

Open
breuerpeter opened this issue Dec 4, 2023 · 0 comments
Open

Can't build NuttX targets #346

breuerpeter opened this issue Dec 4, 2023 · 0 comments

Comments

@breuerpeter
Copy link

breuerpeter commented Dec 4, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant