I have a clean installed ubuntu system. Installed the xtensa libraries. Installed cmake. Tried running ./waf --board esp32diy; ./waf copter. Configure runs clean, but copter generates the following error:
Waf: Entering directory `/home/hangar2/ardupilot-esp/build/esp32diy'
[1/3] CMake Configure esp-idf
-- Configuring incomplete, errors occurred!
CMake Error at /usr/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake:130 (message):
Could not find toolchain file: /tools/cmake/toolchain-esp32.cmake
Call Stack (most recent call first):
CMakeLists.txt:5 (project)
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
[2/3] CMake Build esp-idf showinc
No such file or directory
CMake Error: Generator: execution of make failed. Make command was: -f Makefile showinc &&
Output from ./waf --configure esp32diy
./waf configure --board esp32diy
Setting top to : /home/hangar2/ardupilot-esp
Setting out to : /home/hangar2/ardupilot-esp/build
Autoconfiguration : enabled
Checking for program 'python' : /usr/bin/python3
Checking for python version >= 3.6.9 : 3.10.6
Setting board to : esp32diy
Using toolchain : xtensa-esp32-elf
Checking for 'g++' (C++ compiler) : /home/tenchiro/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
Checking for 'gcc' (C compiler) : /home/tenchiro/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Checking for c flags '-MMD' : yes
Checking for cxx flags '-MMD' : yes
CXX Compiler : g++ 5.2.0
Checking for program 'cmake' : /usr/bin/cmake
Checking for program 'ninja, ninja-build' : not found
Checking for program 'make' : /usr/bin/make
USING EXPRESSIF IDF:/home/hangar2/ardupilot-esp/modules/esp_idf
USING DEFAULT_PARAMETERS:/home/hangar2/ardupilot-esp/libraries/AP_HAL_ESP32/boards/defaults.parm
Enabled OpenDroneID : no
Enabled firmware ID checking : no
GPS Debug Logging : no
Enabled custom controller : no
Checking for HAVE_CMATH_ISFINITE : no
Checking for HAVE_CMATH_ISINF : no
Checking for HAVE_CMATH_ISNAN : no
Checking for NEED_CMATH_ISFINITE_STD_NAMESPACE : no
Checking for NEED_CMATH_ISINF_STD_NAMESPACE : no
Checking for NEED_CMATH_ISNAN_STD_NAMESPACE : no
Checking for header endian.h : not found
Checking for header byteswap.h : not found
Checking for HAVE_MEMRCHR : no
Configured VSCode Intellisense: : no
DC_DSDL compiler : /home/hangar2/ardupilot-esp/modules/DroneCAN/dronecan_dsdlc/dronecan_dsdlc.py
Source is git repository : yes
Update submodules : yes
Checking for program 'git' : /usr/bin/git
Checking for program 'xtensa-esp32-elf-size' : /home/tenchiro/esp/xtensa-esp32-elf/bin/xtensa-esp32-elf-size
Benchmarks : disabled
Unit tests : enabled
Scripting : enabled
Scripting runtime checks : enabled
Debug build : disabled
Coverage build : disabled
Force 32-bit build : disabled
Checking for program 'rsync' : /usr/bin/rsync
'configure' finished successfully (0.476s)