Open ryanfobel opened 6 years ago
Add the following to the platformio.ini file:
[env:lolin32] platform = espressif32 framework = arduino board = lolin32 build_flags = !python build_flags.py
The build fails with the following error related to i2c headers:
[11/30/17 09:38:57] Processing lolin32 (platform: espressif32, build_flags: !python build_flags.py, board: lolin32, framework: arduino) ---------------------------------------------------------------------------------- PlatformManager: Installing espressif32 Downloading... Unpacking [####################################] 100% espressif32 @ 0.11.0 has been successfully installed! The platform 'espressif32' has been successfully installed! The rest of packages will be installed automatically depending on your build enviro nment. PackageManager: Installing toolchain-xtensa32 @ ~2.50200.0 Downloading [####################################] 100% Unpacking [####################################] 100% PackageManager: Installing framework-arduinoespressif32 @ ~1.3.0 Downloading [####################################] 100% Unpacking [####################################] 100% PackageManager: Installing tool-esptoolpy @ ~1.20100.0 Downloading [####################################] 100% Unpacking [####################################] 100% Verbose mode can be enabled via `-v, --verbose` option Converting base_node_rpc.ino Collected 42 compatible libraries Looking for dependencies... Library Dependency Graph |-- <ArduinoRpc> v1.10 | |-- <CArrayDefs> | |-- <NadaMQ> | | |-- <CArrayDefs> | | |-- <nanopb> v0.3.7 |-- <Memory> |-- <CArrayDefs> |-- <EEPROM> v1.0 |-- <BaseNodeRpc> | |-- <SPI> v1.0 | |-- <Wire> v1.0 | |-- <CArrayDefs> | |-- <NadaMQ> | | |-- <CArrayDefs> | | |-- <nanopb> v0.3.7 | |-- <nanopb> v0.3.7 | |-- <Memory> |-- <NadaMQ> | |-- <CArrayDefs> | |-- <nanopb> v0.3.7 |-- <Wire> v1.0 |-- <nanopb> v0.3.7 |-- <SPI> v1.0 Compiling .pioenvs\lolin32\src\base_node_rpc.ino.o Generating partitions .pioenvs\lolin32\partitions.bin Archiving .pioenvs\lolin32\libFrameworkArduinoVariant.a Indexing .pioenvs\lolin32\libFrameworkArduinoVariant.a Compiling .pioenvs\lolin32\FrameworkArduino\Esp.o Compiling .pioenvs\lolin32\FrameworkArduino\HardwareSerial.o Compiling .pioenvs\lolin32\FrameworkArduino\IPAddress.o In file included from src\Node.h:5:0, from C:/Users/Wheeler/Documents/dev/python/base-node-rpc/src/base_node_rpc.ino:25: lib\BaseNodeRpc\src/BaseNodeRpc/BaseNode.h:5:25: fatal error: utility/twi.h: No suc h file or directory compilation terminated. *** [.pioenvs\lolin32\src\base_node_rpc.ino.o] Error 1
Add the following to the platformio.ini file:
[env:lolin32] platform = espressif32 framework = arduino board = lolin32 build_flags = !python build_flags.py
The build fails with the following error related to i2c headers: