Build issue on Apple Silicon

Hi there, I am new to PX4 and wanted to experiment with it. Trying to build for the first time and running into an issue. I am on Apple M2 processor. I followed this guide and have my terminal session running under Rosetta. After I do make px4_sitl jmavsim, I am getting a bunch of linker warning like

ld: warning: ignoring file 'src/modules/uxrce_dds_client/lib/libmicrocdr.a[6](sequence.c.o)': found architecture 'x86_64', required architecture 'arm64'

and then (expectedly) ld: Undefined symbols errors.
Any suggestions?

1 Like

I figured it out. I had an ARM homebrew in $PATH, added in ~/.zprofile. Most likely that was the reason.

1 Like

Hey there, so I’m also trying to get PX4 running on my M2 pro.

Have you gotten it working? Now homebrew has deprecated OGRE, so I’m having a hard time getting OGRE installed, because apparently PX4 needs it. Do you know how to get OGRE installed without Homebrew?