Updating ESP-IDF to newest version using VSCode

enthusiastSR
Posts: 11
Joined: Thu Oct 14, 2021 2:56 pm

Updating ESP-IDF to newest version using VSCode

Postby enthusiastSR » Mon Mar 14, 2022 2:27 pm

Hello,

I had previously installed esp-idf version 3.4 on linux using Get started menu from Espressif website
https://docs.espressif.com/projects/esp ... requisites

Now I upgraded to the newest version of esp-idf: version 4.4. But when I tried to build using new version I had errors, which were because of "settings" of the old esp-idf installation.

So I uninstalled and deleted both vscode and esp-idf installation. I used the purge command to delete vscode completely. I also deleted .vscode and .config/code to remove the old settings completely. I also deleted .espressif and esp folders. I tried to delete everything concerning esp-idf and vscode.

Now, after reinstalling version 4.4, I again get the following error message:
  1. [code]
  2. -- Found Git: /usr/bin/git (found version "2.35.1")
  3. -- The C compiler identification is unknown
  4. -- The CXX compiler identification is unknown
  5. -- The ASM compiler identification is unknown
  6. -- Found assembler: xtensa-esp32s2-elf-gcc
  7. CMake Error at /home/user/esp/esp-idf/tools/cmake/project.cmake:334 (__project):
  8.   The CMAKE_C_COMPILER:
  9.  
  10.     xtensa-esp32s2-elf-gcc
  11.  
  12.   is not a full path and was not found in the PATH.
  13.  
  14.   Tell CMake where to find the compiler by setting either the environment
  15.   variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  16.   the compiler, or to the compiler name if it is in the PATH.
  17. Call Stack (most recent call first):
  18.   CMakeLists.txt:4 (project)
  19.  
  20.  
  21. CMake Error at /home/user/esp/esp-idf/tools/cmake/project.cmake:334 (__project):
  22.   The CMAKE_CXX_COMPILER:
  23.  
  24.     xtensa-esp32s2-elf-g++
  25.  
  26.   is not a full path and was not found in the PATH.
  27.  
  28.   Tell CMake where to find the compiler by setting either the environment
  29.   variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  30.   to the compiler, or to the compiler name if it is in the PATH.
  31. Call Stack (most recent call first):
  32.   CMakeLists.txt:4 (project)
  33.  
  34.  
  35. CMake Error at /home/user/esp/esp-idf/tools/cmake/project.cmake:334 (__project):
  36.   The CMAKE_ASM_COMPILER:
  37.  
  38.     xtensa-esp32s2-elf-gcc
  39.  
  40.   is not a full path and was not found in the PATH.
  41.  
  42.   Tell CMake where to find the compiler by setting either the environment
  43.   variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
  44.   to the compiler, or to the compiler name if it is in the PATH.
  45. Call Stack (most recent call first):
  46.   CMakeLists.txt:4 (project)[/code]
I don't understand where else is this software and esp-idf extension hiding its settings? Please help.

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 236 guests