First off, Github is now as good as blocked in Shenzhen, and when it does work the connection gets cut ever few minutes,
so I spent more than 4 days to download esp-idf and then run `./install.sh` which just downloads more stuff.
As a Chinese company, you should probably provide local mirrors for everything.
Then today everything finally downloaded, I entered the `esp-idf/examples/get-started/hello_world` directory
and ran:
Code: Select all
idf.py build
Code: Select all
idf.py build
Executing action: all (aliases: build)
Running cmake in directory /home/timothy/Downloads/esp-idf/examples/get-started/hello_world/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 --warn-uninitialized -DIDF_TARGET=esp32 -DCCACHE_ENABLE=0 /home/timothy/Downloads/esp-idf/examples/get-started/hello_world"...
Warn about uninitialized values.
-- Found Git: /usr/bin/git (found version "2.20.1")
-- Component directory /home/timothy/Downloads/esp-idf/components/asio does not contain a CMakeLists.txt file. No component will be added
-- The C compiler identification is GNU 8.2.0
-- The CXX compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/timothy/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/timothy/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /home/timothy/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /home/timothy/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++
-- Check for working CXX compiler: /home/timothy/.espressif/tools/xtensa-esp32-elf/esp-2019r2-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Project version: v4.1-dev-2030-g9cdbda325-dirty
-- Building ESP-IDF components for target esp32
-- Found PythonInterp: /home/timothy/.espressif/python_env/idf4.1_py2.7_env/bin/python (found version "2.7.17")
-- Found Perl: /usr/bin/perl (found version "5.28.1")
-- Adding linker script /home/timothy/Downloads/esp-idf/examples/get-started/hello_world/build/esp-idf/esp32/esp32_out.ld
-- Adding linker script /home/timothy/Downloads/esp-idf/components/esp32/ld/esp32.project.ld.in
-- Adding linker script /home/timothy/Downloads/esp-idf/components/esp32/ld/esp32.peripherals.ld
-- Adding linker script /home/timothy/Downloads/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs-time.ld
-- Adding linker script /home/timothy/Downloads/esp-idf/components/esp_rom/esp32/ld/esp32.rom.ld
-- Adding linker script /home/timothy/Downloads/esp-idf/components/esp_rom/esp32/ld/esp32.rom.libgcc.ld
-- Adding linker script /home/timothy/Downloads/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-data.ld
-- Adding linker script /home/timothy/Downloads/esp-idf/components/esp_rom/esp32/ld/esp32.rom.syscalls.ld
-- Adding linker script /home/timothy/Downloads/esp-idf/components/esp_rom/esp32/ld/esp32.rom.newlib-funcs.ld
CMake Error at ../../../tools/cmake/component.cmake:302 (message):
Include directory
'/home/timothy/Downloads/esp-idf/components/nghttp/nghttp2/lib/includes' is
not a directory.
Call Stack (most recent call first):
../../../tools/cmake/component.cmake:470 (__component_add_include_dirs)
../../../components/nghttp/CMakeLists.txt:26 (idf_component_register)
-- Configuring incomplete, errors occurred!
See also "/home/timothy/Downloads/esp-idf/examples/get-started/hello_world/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
esp-idf source: Github v4.1 branch
Any suggestions?