visciang / nerves_dht Goto Github PK
View Code? Open in Web Editor NEWElixir library to read the DHT sensors on Raspberry Pi boards
Elixir library to read the DHT sensors on Raspberry Pi boards
I can include it in a project but it dies on mix firmware:
MIX_TARGET=rpi2 mix firmware
Nerves environment
MIX_TARGET: rpi2
MIX_ENV: dev
|nerves_bootstrap| Building OTP Release...
* skipping runtime configuration (config/releases.exs not found)
* creating _build/rpi2_dev/rel/nerves_thermo/releases/0.1.0/vm.args
Updating base firmware image with Erlang release...
scrub-otp-release.sh: ERROR: Unexpected executable format for '/projects/nerves_thermo/_build/_nerves-tmp/rootfs-additions/srv/erlang/lib/nerves_dht-1.1.3/priv/nerves_dht'
Got:
file:Mach-O 64-bit executable x86_64
Expecting:
readelf:ARM;0x5000400, Version5 EABI, hard-float ABI
This file was compiled for the host or a different target and probably
will not work.
Check the following:
1. Are you using a path dependency in your mix deps? If so, run
'mix clean' in that directory to avoid pulling in any of its
build products.
2. Did you recently upgrade to Nerves 1.3 or Distillery 2.0? Make
sure that your 'rel/config.exs' has 'plugin Nerves'. See
https://hexdocs.pm/nerves/updating-projects.html#updating-from-v1-0-to-v1-3-0
3. Did you recently upgrade or change your Nerves system? If so,
try cleaning and rebuilding this project and its deps.
4. Are you building outside of Nerves' mix integration? If so,
make sure that you've sourced 'nerves-env.sh'.
If you're still having trouble, please file an issue on Github
at https://github.com/nerves-project/nerves_system_br/issues.
** (Mix) Nerves encountered an error. %IO.Stream{device: :standard_io, line_or_bytes: :line, raw: true}
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"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.