Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 2.85 KB

README.md

File metadata and controls

44 lines (29 loc) · 2.85 KB

Tasmota Arduino PlatformIO framework builder ESP32 builderGitHub Releases

This repository contains the scripts that produce the libraries included with Tasmota esp32-arduino.

Tested on Ubuntu and MacOS.

Build on Ubuntu

sudo apt-get install git wget curl libssl-dev libncurses-dev flex bison gperf python python-pip python-setuptools python-serial python-click python-cryptography python-future python-pyparsing python-pyelftools cmake ninja-build ccache jq
sudo pip install --upgrade pip
git clone https://github.com/espressif/esp32-arduino-lib-builder
cd esp32-arduino-lib-builder
./build.sh

Using the User Interface

You can more easily build the libraries using the user interface found in the tools/config_editor/ folder. It is a Python script that allows you to select and edit the options for the libraries you want to build. The script has mouse support and can also be pre-configured using the same command line arguments as the build.sh script. For more information and troubleshooting, please refer to the UI README.

To use it, follow these steps:

  1. Make sure you have the following prerequisites:
  • Python 3.9 or later
  • All the dependencies listed in the previous section
  1. Install the required UI packages using pip install -r tools/config_editor/requirements.txt.

  2. Execute the script tools/config_editor/app.py from any folder. It will automatically detect the path to the root of the repository.

  3. Configure the compilation and ESP-IDF options as desired.

  4. Click on the "Compile Static Libraries" button to start the compilation process.

  5. The script will show the compilation output in a new screen. Note that the compilation process can take many hours, depending on the number of libraries selected and the options chosen.

  6. If the compilation is successful and the option to copy the libraries to the Arduino Core folder is enabled, it will already be available for use in the Arduino IDE. Otherwise, you can find the compiled libraries in the esp32-arduino-libs folder alongside this repository.

  • Note that the copy operation doesn't currently support the core downloaded from the Arduino IDE Boards Manager, only the manual installation from the arduino-esp32 repository.

Documentation

For more information about how to use the Library builder, please refer to this Documentation page