Comments (5)
Seems like the lib is not auto-loaded. Adding the following to platformio.ini solves the problem:
build_flags = -L.pio/libdeps/esp32doit-devkit-v1/mDash/src/esp32/ -llibmDash
from mdash.
Just tested it with newest version of libraries and just the solution:
build_flags = -L.pio/libdeps/<name of the lib>/mDash/src/esp32/ -llibmDash
works. The solution by @cpq does not althoug the PR he is mentioning is already there.
from mdash.
also didn't work
from mdash.
Please see #8
from mdash.
right, adding
build_flags = -L.pio/libdeps/esp32doit-devkit-v1/mDash/src/esp32/ -llibmDash
works like a charm
platformio.ini
[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
build_flags = -L.pio/libdeps/esp32doit-devkit-v1/mDash/src/esp32/ -llibmDash
lib_deps = cesanta/mDash@^1.2.14
pio run -e esp32doit-devkit-v1
Processing esp32doit-devkit-v1 (platform: espressif32; board: esp32doit-devkit-v1; framework: arduino)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32doit-devkit-v1.html
PLATFORM: Espressif 32 (3.1.0) > DOIT ESP32 DEVKIT V1
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 3.10005.210308 (1.0.5)
- tool-esptoolpy 1.30000.201119 (3.0.0)
- toolchain-xtensa32 2.50200.97 (5.2.0)
Converting main.ino
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 29 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <mDash> 1.2.14
|-- <WiFi> 1.0
Building in release mode
Compiling .pio/build/esp32doit-devkit-v1/src/main.ino.cpp.o
Generating partitions .pio/build/esp32doit-devkit-v1/partitions.bin
Archiving .pio/build/esp32doit-devkit-v1/lib24b/libmDash.a
Indexing .pio/build/esp32doit-devkit-v1/lib24b/libmDash.a
Compiling .pio/build/esp32doit-devkit-v1/lib0a0/WiFi/ETH.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/lib0a0/WiFi/WiFi.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/lib0a0/WiFi/WiFiAP.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/lib0a0/WiFi/WiFiClient.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/lib0a0/WiFi/WiFiGeneric.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/lib0a0/WiFi/WiFiMulti.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/lib0a0/WiFi/WiFiSTA.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/lib0a0/WiFi/WiFiScan.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/lib0a0/WiFi/WiFiServer.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/lib0a0/WiFi/WiFiUdp.cpp.o
Archiving .pio/build/esp32doit-devkit-v1/libFrameworkArduinoVariant.a
Indexing .pio/build/esp32doit-devkit-v1/libFrameworkArduinoVariant.a
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/Esp.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/FunctionalInterrupt.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/HardwareSerial.cpp.o
Archiving .pio/build/esp32doit-devkit-v1/lib0a0/libWiFi.a
Indexing .pio/build/esp32doit-devkit-v1/lib0a0/libWiFi.a
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/IPAddress.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/IPv6Address.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/MD5Builder.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/Print.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/Stream.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/StreamString.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/WMath.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/WString.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/base64.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/cbuf.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-adc.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-bt.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-cpu.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-dac.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-gpio.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-i2c.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-ledc.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-log.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-matrix.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-misc.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-psram.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-rmt.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-sigmadelta.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-spi.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-time.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-timer.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-touch.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/esp32-hal-uart.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/libb64/cdecode.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/libb64/cencode.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/main.cpp.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/stdlib_noniso.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/wiring_pulse.c.o
Compiling .pio/build/esp32doit-devkit-v1/FrameworkArduino/wiring_shift.c.o
Archiving .pio/build/esp32doit-devkit-v1/libFrameworkArduino.a
Indexing .pio/build/esp32doit-devkit-v1/libFrameworkArduino.a
Linking .pio/build/esp32doit-devkit-v1/firmware.elf
Building .pio/build/esp32doit-devkit-v1/firmware.bin
Retrieving maximum program size .pio/build/esp32doit-devkit-v1/firmware.elf
Checking size .pio/build/esp32doit-devkit-v1/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 11.9% (used 39108 bytes from 327680 bytes)
Flash: [======= ] 66.7% (used 874798 bytes from 1310720 bytes)
esptool.py v3.0
=================================================================== [SUCCESS] Took 24.54 seconds ===================================================================
from mdash.
Related Issues (20)
- mDashSetServer not defined HOT 1
- Documentation on mdash.net is wrong at mDashSetLogLevel() HOT 1
- event.c:18:mg_error 0x36 DNS timeout HOT 2
- Local device clock drift + offset induced by mDash HOT 1
- Failed to compile (collect issue) with latest ESP32 core (undefined reference to `mDashInit') HOT 1
- Getting error while compiling after updating to platform-espressif32 V4.1.0 HOT 3
- Release Source Code
- version 1.2.15 setting the device clock to wildly incorrect values HOT 6
- Incomplete filenames in mDash for release 1.2.15 HOT 5
- Restore CLI access
- Core 1 arduino task hangs after calling any mDash function HOT 1
- Stopping the loop() task execution when using mDashShadowUpdate() HOT 8
- Compilation Error HOT 1
- Implementation with SIM800 HOT 1
- Reboot Loop on Incorrect Password
- Not able to connect Mdash on ESP32 with Ethernet W5500
- esp-idf v4 not supported HOT 1
- Are source files available to build libmdash.a? HOT 1
- Compilation Error : undefined reference to `mDashInit' HOT 4
- ESP8266 compatibility with mDash HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mdash.