Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error when included in Nerves Project #11

Open
verofin opened this issue Jul 30, 2018 · 3 comments
Open

Compile error when included in Nerves Project #11

verofin opened this issue Jul 30, 2018 · 3 comments

Comments

@verofin
Copy link

verofin commented Jul 30, 2018

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
Copy link
Owner

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

@verofin
Copy link
Author

verofin commented Jul 31, 2018 via email

@Zensavona
Copy link

Was this ever resolved? I am having the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants