mtrudel / beats

Beats is a drum machine
https://www.youtube.com/watch?v=XN4WuOujr38
MIT License
41 stars 3 forks source link

module PortMidi.Nifs.Devices is not loaded and could not be found #1

Open pizzapim opened 4 years ago

pizzapim commented 4 years ago

Hi, I wanted to check out this project but I couldn't compile it. This is the error I got:

==> portmidi
cc -g -std=c99 -O3 -pedantic -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -I/home/pizzapim/.asdf/installs/erlang/23.0.3/erts-11.0.3/include -fPIC -shared  -o priv/portmidi_in.so -lportmidi src/portmidi_in.c src/portmidi_shared.c
cc -g -std=c99 -O3 -pedantic -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -I/home/pizzapim/.asdf/installs/erlang/23.0.3/erts-11.0.3/include -fPIC -shared  -o priv/portmidi_out.so -lportmidi src/portmidi_out.c src/portmidi_shared.c
cc -g -std=c99 -O3 -pedantic -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -I/home/pizzapim/.asdf/installs/erlang/23.0.3/erts-11.0.3/include -fPIC -shared  -o priv/portmidi_devices.so -lportmidi src/portmidi_devices.c src/portmidi_shared.c
warning: Mix compiler :port_midi was supposed to return {:ok | :noop | :error, [diagnostic]} but it returned nil
Compiling 12 files (.ex)

== Compilation error in file lib/portmidi/devices.ex ==
** (CompileError) lib/portmidi/devices.ex:2: module PortMidi.Nifs.Devices is not loaded and could not be found

11:48:37.715 [warn]  The on_load function for module Elixir.PortMidi.Nifs.Devices returned:
{:error, {:load_failed, 'Failed to load NIF library: \'/home/pizzapim/apps/beats/_build/dev/lib/portmidi/priv/portmidi_devices.so: undefined symbol: Pm_OpenInput\''}}

could not compile dependency :portmidi, "mix compile" failed. You can recompile this dependency with "mix deps.compile portmidi", update it with "mix deps.update portmidi" or clean it with "mix deps.clean portmidi"

Thanks