环境变量已经配置
输出结果:
PS D:\ESP32\Espressif\frameworks\esp-idf-v5.1.2> cd C:\Users\xd\Desktop\02_key
PS C:\Users\xd\Desktop\02_key> idf.py build
Executing action: all (aliases: build)
Running cmake in directory C:\Users\xd\Desktop\02_key\build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DPYTHON=D:\ESP32\Espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe -DESP_PLATFORM=1 -DCCACHE_ENABLE=1 C:\Users\xd\Desktop\02_key"...
-- IDF_TARGET is not set, guessed 'esp32s3' from sdkconfig 'C:/Users/xd/Desktop/02_key/sdkconfig'
-- Found Git: D:/ESP32/Espressif/tools/idf-git/2.39.2/cmd/git.exe (found version "2.39.2.windows.1")
-- git rev-parse returned 'fatal: detected dubious ownership in repository at 'D:/ESP32/Espressif/frameworks/esp-idf-v5.1.2'
'D:/ESP32/Espressif/frameworks/esp-idf-v5.1.2' is owned by:
'S-1-5-32-544'
but the current user is:
'S-1-5-21-2906097121-4191922362-2787985371-1001'
To add an exception for this directory, call:
git config --global --add safe.directory D:/ESP32/Espressif/frameworks/esp-idf-v5.1.2'
fatal: detected dubious ownership in repository at 'D:/ESP32/Espressif/frameworks/esp-idf-v5.1.2'
'D:/ESP32/Espressif/frameworks/esp-idf-v5.1.2' is owned by:
'S-1-5-32-544'
but the current user is:
'S-1-5-21-2906097121-4191922362-2787985371-1001'
To add an exception for this directory, call:
git config --global --add safe.directory D:/ESP32/Espressif/frameworks/esp-idf-v5.1.2
-- ccache will be used for faster recompilation
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: D:/ESP32/Espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: D:/ESP32/Espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gcc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: D:/ESP32/Espressif/tools/xtensa-esp32s3-elf/esp-12.2.0_20230208/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-g++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- git rev-parse returned 'fatal: not a git repository (or any of the parent directories): .git'
-- Could not use 'git describe' to determine PROJECT_VER.
-- Building ESP-IDF components for target esp32s3
-- Project sdkconfig file C:/Users/xd/Desktop/02_key/sdkconfig
Compiler supported targets: xtensa-esp32s3-elf
-- Looking for sys/types.h
-- Looking for sys/types.h - not found
-- Looking for stdint.h
-- Looking for stdint.h - not found
-- Looking for stddef.h
-- Looking for stddef.h - not found
-- Check size of time_t
-- Check size of time_t - failed
CMake Error at D:/ESP32/Espressif/frameworks/esp-idf-v5.1.2/CMakeLists.txt:234 (message):
Failed to determine sizeof(time_t)
下载IDF后使用idf.py编译项目找不到系统文件和无法确定time_t
Who is online
Users browsing this forum: No registered users and 275 guests