Closed
Description
Hi there!
I faced the problem of setting up toolchain for building for ESP32 v2.x.x platform on Mac OS.
The typical setup like using basic hello_world example fails with the next error:
CMake Error at CMakeLists.txt:5 (project):
The CMAKE_CXX_COMPILER:
{tools.xtensa-esp32-elf-gcc.path}/bin/xtensa-esp32-elf-g++
is not a full path and was not found in the PATH.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
As I researched the problem is that complex variables of platform.txt
for 2.0.x are not expanded properly.
For example this one:
compiler.path={tools.{build.tarch}-{build.target}-elf-gcc.path}/bin/
All properties that are constructed of variables inside variables
like in the example above are expanded to only one level.
I compared platform.txt
of v1 and v2 — and indeed, v2 heavily uses kind of recursive expansion.
I'm trying to figure out the place inside the toolchain where this expansion is made to fix it. If someone knows — please point me to.
UPDATE: I'm testing on release-1.1-dev
branch.
Metadata
Metadata
Assignees
Labels
No labels