# Px4 compilation on apple M1 laptop - uavcan issue

**URL:** <https://forum.opencyphal.org/t/px4-compilation-on-apple-m1-laptop-uavcan-issue/2054>\
**Category:** General\
**Created:** [December 20, 2023, 3:59am UTC](https://forum.opencyphal.org/t/px4-compilation-on-apple-m1-laptop-uavcan-issue/2054 "2023-12-20T03:59:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suvasis](https://forum.opencyphal.org/letter_avatar_proxy/v4/letter/s/cab0a1/32.png) [@suvasis](https://forum.opencyphal.org/u/suvasis)\
**Post date:** [December 20, 2023, 3:59am UTC](https://forum.opencyphal.org/t/px4-compilation-on-apple-m1-laptop-uavcan-issue/2054/1 "2023-12-20T03:59:53Z")

</div>

hi,

Pls check the log file attached.  
command \<\>PX4-Autopilot % make px4\_fmu-v5x\_default (log file is attached. )  
I don’t see uavcan/\_register\* generated. Also there is no error per se. That’s why in vscode ServiceRequest.hpp has resolution error

ServiceRequest.hpp,  
#pragma once

#include \<px4\_platform\_common/px4\_config.h\>  
#include \<px4\_platform\_common/module.h\>  
#include \<version/version.h\>

> > > #include \<uavcan/\_register/List\_1\_0.h\> not resolved.

(base) macmachine@macmachine uavcan % pwd  
/Users/macmachine/tools/drone\_project\_idea/px4/suvasis\_env/PX4-Autopilot/src/drivers/uavcan  
(base) macmachine@macmachine uavcan % ls -l  
total 296  
-rw-r–r-- 1 macmachine staff 6256 Dec 19 11:32 CMakeLists.txt  
-rw-r–r-- 1 macmachine staff 3312 Dec 19 11:32 Kconfig  
drwxr-xr-x 8 macmachine staff 256 Dec 19 11:32 actuators  
-rw-r–r-- 1 macmachine staff 2764 Dec 19 11:32 allocator.hpp  
-rw-r–r-- 1 macmachine staff 2824 Dec 19 11:32 arming\_status.cpp  
-rw-r–r-- 1 macmachine staff 2751 Dec 19 11:32 arming\_status.hpp  
-rw-r–r-- 1 macmachine staff 3318 Dec 19 11:32 beep.cpp  
-rw-r–r-- 1 macmachine staff 3010 Dec 19 11:32 beep.hpp  
drwxr-xr-x 16 macmachine staff 512 Dec 19 11:59 libuavcan  
-rw-r–r-- 1 macmachine staff 3290 Dec 19 11:32 logmessage.hpp  
-rw-r–r-- 1 macmachine staff 835 Dec 19 11:32 module.yaml  
-rw-r–r-- 1 macmachine staff 6270 Dec 19 11:32 rgbled.cpp  
-rw-r–r-- 1 macmachine staff 3024 Dec 19 11:32 rgbled.hpp  
-rw-r–r-- 1 macmachine staff 2718 Dec 19 11:32 safety\_state.cpp  
-rw-r–r-- 1 macmachine staff 2747 Dec 19 11:32 safety\_state.hpp  
drwxr-xr-x 30 macmachine staff 960 Dec 19 11:32 sensors  
-rw-r–r-- 1 macmachine staff 2166 Dec 19 11:32 uavcan\_driver.hpp  
drwxr-xr-x 6 macmachine staff 192 Dec 19 11:32 uavcan\_drivers  
-rw-r–r-- 1 macmachine staff 39118 Dec 19 11:32 uavcan\_main.cpp  
-rw-r–r-- 1 macmachine staff 13649 Dec 19 11:32 uavcan\_main.hpp  
-rw-r–r-- 1 macmachine staff 2516 Dec 19 11:32 uavcan\_module.hpp  
-rw-r–r-- 1 macmachine staff 9066 Dec 19 11:32 uavcan\_params.c  
-rw-r–r-- 1 macmachine staff 7373 Dec 19 11:32 uavcan\_servers.cpp  
-rw-r–r-- 1 macmachine staff 3538 Dec 19 11:32 uavcan\_servers.hpp  
(base) macmachine@macmachine uavcan %

This is the only warning i saw:  
CMake Warning (dev) at CMakeLists.txt:166 (find\_package):  
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules  
are removed. Run “cmake --help-policy CMP0148” for policy details. Use  
the cmake\_policy command to set the policy and suppress this warning.

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at src/drivers/uavcan/libuavcan/libuavcan/CMakeLists.txt:24 (find\_package):  
Policy CMP0148 is not set: The FindPythonInterp and FindPythonLibs modules  
are removed. Run “cmake --help-policy CMP0148” for policy details. Use  
the cmake\_policy command to set the policy and suppress this warning.

[log.txt](https://forum.opencyphal.org/uploads/short-url/h2nq673TyrMQ5CWJnikRgThX7sa.txt) (131.6 KB)  
Thanks.  
suvasis

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [December 23, 2023, 5:00pm UTC](https://forum.opencyphal.org/t/px4-compilation-on-apple-m1-laptop-uavcan-issue/2054/2 "2023-12-23T17:00:57Z")

</div>

Have you tried asking for help on the PX4 forum?
