下载IDF后使用idf.py编译项目找不到系统文件和无法确定time_t

xxdzsing
Posts: 4
Joined: Tue Nov 05, 2024 3:04 pm

下载IDF后使用idf.py编译项目找不到系统文件和无法确定time_t

Postby xxdzsing » Tue Nov 05, 2024 3:19 pm

环境变量已经正常配置,编译输出结果:

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)

Luxni_
Posts: 28
Joined: Mon Aug 16, 2021 6:20 am

Re: 下载IDF后使用idf.py编译项目找不到系统文件和无法确定time_t

Postby Luxni_ » Wed Nov 06, 2024 11:15 am

先盲猜一波,SDK是从其它地方拷贝过来的

xxdzsing
Posts: 4
Joined: Tue Nov 05, 2024 3:04 pm

Re: 下载IDF后使用idf.py编译项目找不到系统文件和无法确定time_t

Postby xxdzsing » Wed Nov 06, 2024 3:27 pm

SDK是从离线下载的

Luxni_
Posts: 28
Joined: Mon Aug 16, 2021 6:20 am

Re: 下载IDF后使用idf.py编译项目找不到系统文件和无法确定time_t

Postby Luxni_ » Fri Nov 08, 2024 4:27 am

先尝试在 sdk 中,重新install一下看看。

Who is online

Users browsing this forum: No registered users and 50 guests