Skip to main content

ESP32 Environment Setup

The official ESP tutorial is already quite comprehensive: ESP-IDF Getting Started. Just follow the instructions to install the environment.

Project CMake Configuration

libxr provides a CMake configuration for ESP32: esp32-cmake, which can be directly used.

For the official ESP Hello World project, add the following line at the end of main/CMakeLists.txt:

include(path_to_libxr/CMake/esp32.cmake)

This completes the CMake setup. Be sure to replace path_to_libxr with the actual path to your libxr directory.