簡體   English   中英

問題 eclipse 構建 cmake espidf 錯誤:在緩存中找不到 CMAKE_PROJECT_NAME

[英]problem with eclipse build cmake espidf Error: could not find CMAKE_PROJECT_NAME in Cache

我的 eclipse IDE 和 ESP-IDF 有問題,每次我構建一個項目時,我都會得到這個按摩-

Building in: C:\Users\eclipse-workspace06\blynk\build
Configuring in: C:\Users\eclipse-workspace06\blynk\build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=D:\espidfeclipse\esp-idf-v5.0\tools\cmake\toolchain-esp32.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCCACHE_ENABLE=1 -DIDF_TARGET=esp32 C:\Users\eclipse-workspace06\blynk
-- Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.28.0.windows.1") 
CMake Error at D:/espidfeclipse/esp-idf-v5.0/tools/cmake/build.cmake:181 (file):
  file FILE([TO_CMAKE_PATH|TO_NATIVE_PATH] path result) must be called with
-- Configuring incomplete, errors occurred!
  exactly three arguments.
Call Stack (most recent call first):
  D:/espidfeclipse/esp-idf-v5.0/tools/cmake/idf.cmake:53 (__build_init)
  D:/espidfeclipse/esp-idf-v5.0/tools/cmake/project.cmake:12 (include)
  CMakeLists.txt:5 (include)


CMake Error at D:/espidfeclipse/esp-idf-v5.0/tools/cmake/project.cmake:18 (message):
  Internal error, PYTHON build property not set correctly.
Call Stack (most recent call first):
  CMakeLists.txt:5 (include)


cmake --build . -- -v
Error: could not find CMAKE_PROJECT_NAME in Cache
Build complete (1 errors, 0 warnings): C:\Users\eclipse-workspace06\blynk\build
Total time taken to build the project: 246 ms

該代碼是適用於 VScode 和 Arduino 的示例代碼,我已經安裝並重新安裝了所有東西 100 次。 (如果我建立常規 c++ 它工作正常)

如果我能得到任何幫助,我將不勝感激。

感謝@drescherjm 和@Tsyvarev 讓我走上了正確的道路。 我解決了這個問題,解決方案很奇怪。 我所做的是從不同的環境變量中刪除所有 python 實例,它出於某種奇怪的原因起作用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM