I get a build error when trying to use a function in mjs after importing it into platformio:
platformio lib --storage-dir lib install https://github.com/cesanta/mjs.git
I can try #include <../lib/mjs/mjs.h>
, but it will only include the header file and not the .c files. Nothing is being linked.
How can I get mjs (or any external library with a .c in it) setup as a platformio library?
Details:
- I can try
#include <mjs.h>
or#include <mjs/mjs.h>
in main.c, neither work. - I expect libraries to be copied to .pioenvs while they are being compiled.
But that doesn't look to be the case. - I have tried several things from my favorite search engine. But no luck. Platformio documentation doesn't seem to be much help either. If you think this requires submitting a github issue, let me know in a comment.
ESP32 espressif DFU library Version 1.5 Currently on Windows 10 (will also be using WSL Debian, Gentoo Linux, and Mac in future)
platformio.ini
[env:esp32dev]
platform = espressif32
framework = espidf
board = esp32dev
build_flags = -DCONFIG_WIFI_SSID=\"ESP_AP\" -DCONFIG_WIFI_PASSWORD=\"MYPASS\"
monitor_speed = 115200
p.s. I understand there is a gpl restriction after I finish the prototyping phase (while prototyping, there is no restrictions). So I do plan on buying a commercial license. I don't think this library would be a good fit in the platformio store. I want a local-only library.
But many libraries out there could follow the found steps, expanding platformio usability...