elixir-vision / picam

Elixir library used to capture MJPEG video on a Raspberry Pi using the camera module.
Other
122 stars 27 forks source link

Can't run Picam.Camera.start_link() #33

Closed aplisov closed 5 years ago

aplisov commented 6 years ago

I've installed a fresh version of Raspbian as well as Elixir and Nerves. I also downloaded this file and moved it into /home/pi. When I SSH into the file picam/lib/picam, I open up iex and type c("camera.ex"). Once I do this, it says [Picam.Camera] which I assume is correct. However when I go to run Picam.Camera.start_link() I get the following error. image

Any help is much appreciated.

pdgonzalez872 commented 5 years ago

@TheHardestBunnyAlive Hi! So you are not using this in a Nerves application? Is this still an issue or can we close this out?

aplisov commented 5 years ago

I ended up not using picam because I couldn't figure out the issue. You can close it.

On Wed, Jan 30, 2019, 3:02 PM Paulo Daniel Gonzalez < notifications@github.com wrote:

@TheHardestBunnyAlive https://github.com/TheHardestBunnyAlive Hi! So you are not using this in a Nerves application? Is this still an issue or can we close this out?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/electricshaman/picam/issues/33#issuecomment-459088081, or mute the thread https://github.com/notifications/unsubscribe-auth/AEb0QCxbHR-TEk3Vz39dFHI8Pl6f85UCks5vIfo_gaJpZM4VzESx .

GregMefford commented 5 years ago

It looks like the issue is that elixir_make would normally have compiled a C-based application that Elixir is trying to call. When you manually compile the Elixir code like this, the binary application isn't available where it should be. mix compile before running IEx should solve this in case someone else happens upon this issue in the future.