cesanta / mDash

Arduino / ESP-IDF library for mdash.net IoT service
https://mdash.net
Other
34 stars 17 forks source link

Are source files available to build libmdash.a? #7

Closed geert56 closed 3 years ago

geert56 commented 4 years ago

I am trying to use the mDash library in Linux. src/linux-x64/libmdash.a seems to be a 32-bit elf library and not 64-bit. Also, this library cannot be loaded by ld. I get the following error: /usr/bin/ld: ../src/linux-x64/libmDash.a: unrecognized relocation (0x2b) in section .text So it would be great to have access to the source to build libmdash.a from scratch.

cpq commented 3 years ago

This library is close-sourced and there are no plans currently to open it. For the reference, a Linux version was built by a Linux docker container docker.io/mdashnet/cc. Your might use it to build your linux binary:

$ docker run -v $(pwd):$(pwd) -w $(pwd) docker.io/mdashnet/cc cc myfile.c -lmDash -Lmdash/src/linux-x64