sonic-pi icon indicating copy to clipboard operation
sonic-pi copied to clipboard

Build on Ubunto 20.08 fails - missing <erl_nif.h>

Open sdcurtin opened this issue 2 years ago • 2 comments

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>

sdcurtin avatar Dec 01 '22 18:12 sdcurtin

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...

sdcurtin avatar Dec 01 '22 19:12 sdcurtin

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

samaaron avatar Dec 01 '22 19:12 samaaron