visciang / nerves_dht

Elixir library to read the DHT sensors on Raspberry Pi boards
14 stars 7 forks source link

Compile error when included in Nerves Project #11

Open verofin opened 6 years ago

verofin commented 6 years ago

Hi I get this issue during the $ mix firmware command MIX_TARGET=rpi Erlang/OTP 21 [erts-10.0] [source] [64-bit]

Outut: ==> nerves_dht cc -o priv/dht cc: fatal error: no input files compilation terminated. Makefile:59: recipe for target 'priv/dht' failed make: *** [priv/dht] Error 1 could not compile dependency :nerves_dht, "mix compile" failed. You can recompile this dependency with "mix deps.compile nerves_dht", update it with "mix deps.update nerves_dht" or clean it with "mix deps.clean nerves_dht"

visciang commented 6 years ago

Can you try to build a fresh new hello project?

mix archive.install hex nerves_bootstrap

cd /tmp

mix nerves.new hello
# Fetch and install dependencies? [Yn] Y

cd ./hello

# Add to mix.exs the dependency:
#  {:nerves_dht, git: "https://github.com/visciang/nerves_dht.git"}

export MIX_TARGET=rpi
mix deps.get
mix firmware

NOTE:

I'm running elixir 1.7.1, erlang 21.0.4 and I can build (cross compile) all deps included nerves_dht, but can't build the firmware because of https://github.com/nerves-project/shoehorn/issues/11

verofin commented 6 years ago

I get the same issue as you. I notice you already raised the required github issues.

Regards Sam

On Mon, Jul 30, 2018 at 10:14 PM, visciang notifications@github.com wrote:

Can you try to build a fresh new hello project?

mix archive.install hex nerves_bootstrap

cd /tmp

mix nerves.new hello

Fetch and install dependencies? [Yn] Y

cd ./hello

Add to mix.exs the dependency:

{:nerves_dht, git: "https://github.com/visciang/nerves_dht.git"}

export MIX_TARGET=rpi mix deps.get mix firmware

NOTE:

I'm running elixir 1.7.1, erlang 21.0.4 and I can build (cross compile) all deps included nerves_dht, but can't build the firmware because of nerves-project/shoehorn#11 https://github.com/nerves-project/shoehorn/issues/11

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/visciang/nerves_dht/issues/11#issuecomment-408994979, or mute the thread https://github.com/notifications/unsubscribe-auth/APo6zvu8DhqKSMxtJqfSjgKx4pzSQpmpks5uL2kdgaJpZM4Vmmo9 .

Zensavona commented 5 years ago

Was this ever resolved? I am having the same issue