sonic-pi
sonic-pi copied to clipboard
Build on Ubunto 20.08 fails - missing <erl_nif.h>
Getting error message in /home/ubuntu/Development/sonic-pi/app/external/sp_link/src/sp_link_nif_callbacks.h when attempting to build in Ubuntu. fatal error: erl_nif.h: No such file or directory 25 | #include <erl_nif.h>
I've been reading that this file is located on the system, and the compiler has to have a directive to find it. For instance: https://elixirforum.com/t/how-to-specify-c-include-path-for-asdf-managed-elixir-in-a-generic-way/40284 https://elixirforum.com/t/where-is-erl-nif-h-header-file-required-for-nif/27142
Found that sudo apt install erlang-dev cleared this...
Cool, glad you found the header file. I was going to ask which packages you installed and whether you had already tried the ones in the README: https://github.com/sonic-pi-net/sonic-pi/blob/dev/BUILD-LINUX.md#11-debian