make idf build offline

Lagunax
Posts: 21
Joined: Mon Sep 09, 2019 8:24 pm

make idf build offline

Postby Lagunax » Thu Feb 22, 2024 6:00 pm

For now i have lost any internet connection on my pc. mobile network is so slow that it drops connections too often. so online build not possible. and i do not know how long this will be. how can i download al components and setup them to build offline? why espressif did not made offline build? this is stupiest thing to build online only.... i lost many time with this...

MicroController
Posts: 1725
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: make idf build offline

Postby MicroController » Thu Feb 22, 2024 7:55 pm

What do you mean? What "online build" are you talking about?
Follow the documented steps and you'll be good to build offline like most people do.

Lagunax
Posts: 21
Joined: Mon Sep 09, 2019 8:24 pm

Re: make idf build offline

Postby Lagunax » Wed May 01, 2024 10:00 am

MicroController wrote:
Thu Feb 22, 2024 7:55 pm
What do you mean? What "online build" are you talking about?
Follow the documented steps and you'll be good to build offline like most people do.
i talking about this:

Code: Select all

-- Building ESP-IDF components for target esp32
NOTICE: Skipping optional dependency: espressif/esp-sr
CMake Error at /home/esp32/esp-idf/tools/cmake/build.cmake:540 (message):
  ERROR: Cannot establish a connection to the component registry.  Are you
  connected to the internet?
most rebuilds tries to check components from internet, so i not found way to block this checking.

MicroController
Posts: 1725
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: make idf build offline

Postby MicroController » Wed May 01, 2024 1:37 pm


Lagunax
Posts: 21
Joined: Mon Sep 09, 2019 8:24 pm

Re: make idf build offline

Postby Lagunax » Wed May 01, 2024 2:50 pm

nope, this not helps...

Code: Select all

CMake Warning at /home/esp32/esp-idf/tools/cmake/build.cmake:565 (message):
  "idf_component.yml" file was found for components:

        /home/esp32/eclipse-workspace/external/components/ESP32Modbus

        /home/esp32/eclipse-workspace/external/components/arduino

  However, the component manager is not enabled.
Call Stack (most recent call first):
  /home/esp32/esp-idf/tools/cmake/project.cmake:547 (idf_build_process)
  CMakeLists.txt:8 (project)


-- DEBUG: Use esp-modbus component folder: /home/esp32/eclipse-workspace/external/components/ESP32Modbus.
CMake Error at /home/esp32/esp-idf/tools/cmake/build.cmake:266 (message):
  Failed to resolve component 'espressif__mdns'.
Call Stack (most recent call first):
  /home/esp32/esp-idf/tools/cmake/build.cmake:302 (__build_resolve_and_add_req)
  /home/esp32/esp-idf/tools/cmake/build.cmake:595 (__build_expand_requirements)
  /home/esp32/esp-idf/tools/cmake/project.cmake:547 (idf_build_process)
  CMakeLists.txt:8 (project)


-- Configuring incomplete, errors occurred!
See also "/home/esp32/eclipse-workspace/external/build/CMakeFiles/CMakeOutput.log".
HINT: The component espressif__mdns could not be found. This could be because: component name was misspelled, the component was not added to the build, the component has been moved to the IDF component manager or has been removed and refactored into some other component.
Please look out for component in 'https://components.espressif.com' and add using 'idf.py add-dependency' command.
Refer to the migration guide for more details about moved components.
Refer to the build-system guide for more details about how components are found and included in the build.
cmake failed with exit code 1, output of the command is in the /home/esp32/eclipse-workspace/external/build/log/idf_py_stderr_output_480 and /home/esp32/eclipse-workspace/external/build/log/idf_py_stdout_output_480
esp32@esp32:~/eclipse-workspace/external$ ls ./managed_components/espressif__mdns/
CHANGELOG.md  CMakeLists.txt  examples  idf_component.yml  include  Kconfig  LICENSE  mdns.c  mdns_console.c  mdns_networking_lwip.c  mdns_networking_socket.c  private_include  README.md  tests
esp32@esp32:~/eclipse-workspace/external$ 
mdns component exists in managed components folder, but manager prints error with it

Who is online

Users browsing this forum: No registered users and 322 guests