openpilot
openpilot copied to clipboard
scons failing on mac bootstrap
Describe the bug
On macOS 12.4, scons fails to build after a fresh openpilot install and running $ tools/mac_setup.sh
$ cd openpilot && pipenv shell
$ scons -u -j$(nproc)
Warning: Please note that the following versions of CasADi are officially supported: 3.5.5 or 3.5.4 or 3.5.3 or 3.5.2 or 3.5.1 or 3.4.5 or 3.4.0.
If there is an incompatibility with the CasADi generated code, please consider changing your CasADi version.
Version 3.5.4+ currently in use.
sh: /Users/dylanherman/openpilot/third_party/acados/Darwin/t_renderer: Bad CPU type in executable
Exception: Rendering of main.in.c failed!
Attempted to execute OS command:
/Users/dylanherman/openpilot/third_party/acados/Darwin/t_renderer '/Users/dylanherman/openpilot/pyextra/acados_template/c_templates_tera/*' 'main.in.c' '/Users/dylanherman/openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/acados_ocp_long.json' 'main_long.c'
Exiting.
scons: *** [selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code/Makefile] Error 1
scons: building terminated because of errors.
Opening as an issue as it's been referenced in past discussions as well as in #dev-openpilot with no resolution.
This was ran on a macbook with Intel CPUs.
OS Version
macOS 12.4
openpilot version or commit
eb17291ca13035b40d653da107653d4420517aaa
Additional info
No response
Yep, I have a branch I've started working on supporting intel macs with. They only have the arm executable for acados for macOS at the moment.
@LoganxDev thanks! If you want to push that branch, maybe we can track progress here.
There's the branch I'm using, the current issue is some ffmpeg lib headers aren't being found even though the libs are in the lib path in the root Sconstruct.
There have been a few PRs to fix builds on macOS, do you want to check if this is still an issue on the latest master?
Mac is being worked on