atomicobject / heatshrink

data compression library for embedded/real-time systems
ISC License
1.31k stars 176 forks source link

Compilation Error: looking for <err.h> #48

Open arnoldvillasanta opened 6 years ago

arnoldvillasanta commented 6 years ago

/Arduino/libraries/heatshrink-master/heatshrink.c:32:17: fatal error: err.h: No such file or directory

include

Where can I download err.h?

silentbicycle commented 6 years ago

What OS are you compiling on?

arnoldvillasanta commented 6 years ago

MacOS

Doom4535 commented 6 years ago

Was a solution to this ever found?

silentbicycle commented 6 years ago

You should already have err.h as /usr/include/err.h, but the build failure may have more to do with building in an Arduino context -- the Arduino platform is based on C++, not C, which impacts the build setup in many ways.

Are you building with the included makefile? heatshrink.c is the main source for the command line tool, which really doesn't make sense to build for an Arduino, but has built without issue on macOS. I haven't tried since Yosemite, though.

If that's not enough to get you unstuck, I need more details about how you're trying to build.