Skocz do zawartości

esp32 pierwsza kompilacja problem


Pomocna odpowiedź

Napisano (edytowany)

Mam problem z eclipse-idf podczas kompilacji i wysyłania kodu do esp32.

Please use idf.py only in an ESP-IDF shell environment.

 

#include <stdio.h>
#include <stdbool.h>
#include <unistd.h>

void app_main(void)
{
    while (true) {
        printf("Hello from app_main!\n");
        sleep(1);
    }
}
Building in: /home/michal/eclipse-workspace/esp/build
Configuring in: /home/michal/eclipse-workspace/esp/build
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=/home/michal/eclipse/cpp-2022-09/eclipse/esp-idf-v5.0/tools/cmake/toolchain-esp32.cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCCACHE_ENABLE=1 -DIDF_TARGET=esp32 /home/michal/eclipse-workspace/esp
-- Could NOT find Git (missing: GIT_EXECUTABLE) 
CMake Warning at /home/michal/eclipse/cpp-2022-09/eclipse/esp-idf-v5.0/tools/cmake/git_submodules.cmake:4 (message):
  Git executable was not found.  Git submodule checks will not be executed.
  If you have any build issues at all, start by adding git executable to the
  PATH and rerun cmake to not see this warning again.
Call Stack (most recent call first):
  /home/michal/eclipse/cpp-2022-09/eclipse/esp-idf-v5.0/tools/cmake/idf.cmake:41 (include)
  /home/michal/eclipse/cpp-2022-09/eclipse/esp-idf-v5.0/tools/cmake/project.cmake:12 (include)
  CMakeLists.txt:5 (include)


CMake Warning at /home/michal/eclipse/cpp-2022-09/eclipse/esp-idf-v5.0/tools/cmake/project.cmake:337 (message):
  enabled ccache in build but ccache program not found
Call Stack (most recent call first):
  CMakeLists.txt:8 (project)

 

Edytowano przez Michal88

Bądź aktywny - zaloguj się lub utwórz konto!

Tylko zarejestrowani użytkownicy mogą komentować zawartość tej strony

Utwórz konto w ~20 sekund!

Zarejestruj nowe konto, to proste!

Zarejestruj się »

Zaloguj się

Posiadasz własne konto? Użyj go!

Zaloguj się »
×
×
  • Utwórz nowe...