Comments (12)
try with current master
from esp32-arduino-lib-builder.
I am having the same issue on MacOS Big Sur (11.2.1)
Executing action: idf-libs
Running cmake in directory /Users/moritz/esp/esp32-arduino-lib-builder/build
Executing "cmake -G Ninja -DPYTHON_DEPS_CHECKED=1 -DESP_PLATFORM=1 -DIDF_TARGET=esp32s2 -DCCACHE_ENABLE=0 /Users/moritz/esp/esp32-arduino-lib-builder"...
-- Found Git: /usr/bin/git (found version "2.24.3 (Apple Git-128)")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /Users/moritz/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Users/moritz/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc - 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: /Users/moritz/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s2
CMake Error at esp-idf/tools/cmake/build.cmake:186 (message):
Failed to resolve component 'ethernet'.
Call Stack (most recent call first):
esp-idf/tools/cmake/build.cmake:212 (__build_resolve_and_add_req)
esp-idf/tools/cmake/build.cmake:426 (__build_expand_requirements)
esp-idf/tools/cmake/project.cmake:395 (idf_build_process)
CMakeLists.txt:10 (project)
-- Configuring incomplete, errors occurred!
See also "/Users/moritz/esp/esp32-arduino-lib-builder/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
from esp32-arduino-lib-builder.
I got it to compile for esp32 only. Steps:
- Install esp-idf as explained here (steps 1 - 4)
- Update esp-idf to
release/v4.3
following this - Clone
esp32-arduino-lib-builder
and make sure you are on branchrelease/v4.2
- Modify
build.sh
and exchangeTARGETS="esp32s2 esp32"
withTARGETS="esp32"
- Make sure you have run
. ./export.sh
ofesp-idf
then runbuild.sh
For step 1 it might be needed to enforce python3.
from esp32-arduino-lib-builder.
But I am encountering even more errors using esp32-arduino-lib-builder
in general on MacOS:
- awk commands are broken
Generating out
we are running in [/Users/moritz/esp/esp32-arduino-lib-builder] on IDF_TARGET: esp32, OUT: /Users/moritz/esp/esp32-arduino-lib-builder/out/tools/sdk/esp32
awk: syntax error at source line 1
context is
>>> /ASFLAGS\=\[/{n++}{print>n"pio_start.txt" <<<
awk: illegal statement at source line 1
awk: syntax error at source line 1
context is
>>> /"ARDUINO_ARCH_ESP32"/{n++}{print>n"pio_end.txt" <<<
awk: illegal statement at source line 1
cat: pio_start.txt: No such file or directory
rm: pio_end.txt: No such file or directory
rm: 1pio_start.txt: No such file or directory
rm: pio_start.txt: No such file or directory
cat: 1pio_end.txt: No such file or directory
rm: 1pio_end.txt: No such file or directory
awk: syntax error at source line 1
context is
>>> /compiler.cpreprocessor.flags.esp32\=/{n++}{print>n"platform_start.txt" <<<
awk: illegal statement at source line 1
gsed: can't read 1platform_start.txt: No such file or directory
awk: syntax error at source line 1
context is
>>> /compiler.ar.flags.esp32\=/{n++}{print>n"platform_mid.txt" <<<
awk: illegal statement at source line 1
cat: platform_start.txt: No such file or directory
cat: 1platform_mid.txt: No such file or directory
- even using gawk gives warnings:
Generating out
we are running in [/Users/moritz/esp/esp32-arduino-lib-builder] on IDF_TARGET: esp32, OUT: /Users/moritz/esp/esp32-arduino-lib-builder/out/tools/sdk/esp32
gawk: Kommandozeile:1: Warnung: Die Escapesequenz »\=« ist kein bekannter Operator für reguläre Ausdrücke
gawk: Kommandozeile:1: Warnung: Die Escapesequenz »\=« ist kein bekannter Operator für reguläre Ausdrücke
gawk: Kommandozeile:1: Warnung: Die Escapesequenz »\=« ist kein bekannter Operator für reguläre Ausdrücke
- The whole generated include folder structure is a mess and does not work with
arduino-esp32
giving numerous include errors - The generated
platform.txt
misses a lot of definitions resulting inrecipe.preproc.macros pattern is missing
when trying to compile anything afterwards
How can this tool be tested with MacOS
? And how do you even get working code out of it?
from esp32-arduino-lib-builder.
I'm getting the same
Failed to resolve component 'ethernet'.
Error on Ubuntu 20.04.
The solution to update ESP-IDF to v4.3 might work but my goal is to explicitly compile the v4.2 ESP-IDF libraries (with some sdkconfig modifications).
This had to work at some point, otherwise https://github.com/espressif/arduino-esp32/tree/idf-release/v4.2/tools/sdk/esp32/lib couldn't have been generated by this last month.
@me-no-dev, could you have a look at this please?
EDIT: Part of the problem seems to be that the component/arduino folder was not cloned of the correct version -- it's using master
. Manually going in there and doing git checkout idf-release/v4.2
skips past that error but ends in another error.
-- Build files have been written to: /home/max/esp32-arduino-lib-builder/build
make[4]: *** No targets specified and no makefile found. Stop.
make[3]: *** [CMakeFiles/bootloader.dir/build.make:112: bootloader-prefix/src/bootloader-stamp/bootloader-build] Error 2
make[2]: *** [CMakeFiles/Makefile2:2140: CMakeFiles/bootloader.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1955: CMakeFiles/idf-libs.dir/rule] Error 2
make: *** [Makefile:164: idf-libs] Error 2
command "idf-libs" is not known to idf.py and is not a Unix Makefiles target
Edit:
To fix the error
awk: cmd. line:1: warning: regexp escape sequence `\=' is not a known regexp operator
..
you have to remove the \
in the awk command in tools/prepare-libs.sh
Edit: Further doing
cd esp-idf
git checkout 2bfdd036b
git submodule update --recursive
cd ..
source esp-idf/export.sh
echo $(git -C components/arduino describe --all --long) > version.txt
rm -rf out build sdkconfig sdkconfig.old
cp "sdkconfig.esp32" sdkconfig
idf.py idf-libs
builds the libraries.
..
[3/3] Generating out
we are running in [/home/max/esp32-arduino-lib-builder] on IDF_TARGET: esp32, OUT: /home/max/esp32-arduino-lib-builder/out/tools/sdk/esp32
tr: warning: an unescaped backslash at end of string is not portable
awk: cmd. line:1: warning: regexp escape sequence `\=' is not a known regexp operator
awk: cmd. line:1: warning: regexp escape sequence `\=' is not a known regexp operator
max@max-VirtualBox:~/esp32-arduino-lib-builder$ ls out/tools/sdk/esp32/lib/
libapp_trace.a libcore.a libesp_event.a libesp_netif.a libesp_websocket_client.a libjson_generator.a libnet80211.a libqrcode.a libvfs.a
libapp_update.a libcxx.a libesp-face.a libespnow.a libesp_wifi.a libjson_parser.a libnewlib.a librtc.a libwear_levelling.a
libasio.a libdriver.a libesp_gdbstub.a libesp_pm.a libexpat.a liblibsodium.a libnghttp.a libsdmmc.a libwifi_provisioning.a
libbootloader_support.a libefuse.a libesp_hid.a libesp_rainmaker.a libfatfs.a liblog.a libnvs_flash.a libsmartconfig.a libwpa_supplicant.a
...
Make absolutely sure you have all build requirements installed per README of the repo. Didn't work without ninja
for me.
sudo apt-get install git wget curl libssl-dev libncurses-dev flex bison gperf python python-cryptography python-pyparsing python-pyelftools cmake ninja-build ccache
Also had to install pip2 for Python2 since this build script uses my Python2 instead of Python3 installation. I was able to do that with curl https://bootstrap.pypa.io/2.7/get-pip.py --output get-pip.py && sudo python2 get-pip.py
.
from esp32-arduino-lib-builder.
+1 for updating/fixing the 4.2 branch
from esp32-arduino-lib-builder.
@me-no-dev thx for updating the 4.2 branch.
There is a issue left. For ESP32-S2 there is no ethernet.
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:
idf.py build
-- Found Git: /usr/bin/git (found version "2.31.1")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/runner/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/runner/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc - 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: /home/runner/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building ESP-IDF components for target esp32s2
CMake Warning at esp-idf/tools/cmake/build.cmake:472 (message):
"idf_component.yml" file was found for components:
/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/esp32-camera
However, the component manager is not enabled.
Call Stack (most recent call first):
esp-idf/tools/cmake/project.cmake:358 (idf_build_process)
CMakeLists.txt:10 (project)
CMake Error at esp-idf/tools/cmake/build.cmake:192 (message):
Failed to resolve component 'ethernet'.
Call Stack (most recent call first):
esp-idf/tools/cmake/build.cmake:218 (__build_resolve_and_add_req)
esp-idf/tools/cmake/build.cmake:502 (__build_expand_requirements)
esp-idf/tools/cmake/project.cmake:358 (idf_build_process)
CMakeLists.txt:10 (project)
-- Configuring incomplete, errors occurred!
See also "/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/build/CMakeFiles/CMakeOutput.log".
cmake failed with exit code 1
from esp32-arduino-lib-builder.
this is temporary issue :) just remove idf_component.yml
from the esp32-camera
component
from esp32-arduino-lib-builder.
Thx @me-no-dev , ESP32-camera warning is gone by deleting idf_component.yml
. But the ethernet
error is still there.
2021-04-05T10:44:37.3436701Z Done! You can now compile ESP-IDF projects.
2021-04-05T10:44:37.3437166Z Go to the project directory and run:
2021-04-05T10:44:37.3437418Z
2021-04-05T10:44:37.3437681Z idf.py build
2021-04-05T10:44:37.3437864Z
2021-04-05T10:44:38.1644911Z -- Found Git: /usr/bin/git (found version "2.31.1")
2021-04-05T10:44:40.3543009Z -- The C compiler identification is GNU 8.4.0
2021-04-05T10:44:40.4016257Z -- The CXX compiler identification is GNU 8.4.0
2021-04-05T10:44:40.4232891Z -- The ASM compiler identification is GNU
2021-04-05T10:44:40.4255358Z -- Found assembler: /home/runner/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc
2021-04-05T10:44:40.4777646Z -- Detecting C compiler ABI info
2021-04-05T10:44:40.5221648Z -- Detecting C compiler ABI info - done
2021-04-05T10:44:40.5299069Z -- Check for working C compiler: /home/runner/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-gcc - skipped
2021-04-05T10:44:40.5301161Z -- Detecting C compile features
2021-04-05T10:44:40.5356426Z -- Detecting C compile features - done
2021-04-05T10:44:40.5453441Z -- Detecting CXX compiler ABI info
2021-04-05T10:44:40.5781948Z -- Detecting CXX compiler ABI info - done
2021-04-05T10:44:40.5867466Z -- Check for working CXX compiler: /home/runner/.espressif/tools/xtensa-esp32s2-elf/esp-2020r3-8.4.0/xtensa-esp32s2-elf/bin/xtensa-esp32s2-elf-g++ - skipped
2021-04-05T10:44:40.5869646Z -- Detecting CXX compile features
2021-04-05T10:44:40.5875606Z -- Detecting CXX compile features - done
2021-04-05T10:44:40.5995313Z -- Building ESP-IDF components for target esp32s2
2021-04-05T10:44:41.1305820Z CMake Error at esp-idf/tools/cmake/build.cmake:192 (message):
2021-04-05T10:44:41.1306912Z Failed to resolve component 'ethernet'.
2021-04-05T10:44:41.1307591Z Call Stack (most recent call first):
2021-04-05T10:44:41.1308723Z esp-idf/tools/cmake/build.cmake:218 (__build_resolve_and_add_req)
2021-04-05T10:44:41.1309562Z esp-idf/tools/cmake/build.cmake:502 (__build_expand_requirements)
2021-04-05T10:44:41.1310318Z esp-idf/tools/cmake/project.cmake:358 (idf_build_process)
2021-04-05T10:44:41.1310850Z CMakeLists.txt:10 (project)
2021-04-05T10:44:41.1311117Z
2021-04-05T10:44:41.1311282Z
2021-04-05T10:44:41.1314529Z -- Configuring incomplete, errors occurred!
from esp32-arduino-lib-builder.
are you sure you have everything correctly installed? I have no problem building and CI is working fine as well. BTW I just deleted the 4.2 branch (merged everything in master) so you might want to switch to that, pull arduino master as well (also updated) and try again
from esp32-arduino-lib-builder.
Yes, because i do a clean sethub via github actions. It is a fork of your github. Just the branch changed in github actions to branch release/4.2 to trigger the build. See
https://github.com/Jason2866/esp32-arduino-lib-builder/tree/release/v4.2
Edit: will try later your latest changes!
from esp32-arduino-lib-builder.
Building master (idf 4.4) does work. Imho issue can be closed
from esp32-arduino-lib-builder.
Related Issues (20)
- Fails to build on Ubuntu 22 with dependency issue HOT 4
- build lib v4.4 with option idf_libs failed HOT 2
- lib builder v5.1 with option build all running building process indefinitely HOT 3
- "Unknown targets: esp32c6" building against Arduino's idf-release/v5.1 branch HOT 3
- qrcode.h not found HOT 6
- Error at generating PlatformIO manifest HOT 40
- Adding Zigbee lib as a component HOT 4
- Error with copy-to-arduino.sh HOT 2
- Linker error due to zigbee HOT 2
- eth patch files are outdated HOT 1
- Built library is not the same as official one HOT 2
- inconsistent setting for: `CONFIG_SPIRAM_TRY_ALLOCATE_WIFI_LWIP=y` HOT 2
- Question: Using component `esp_tinyusb` HOT 1
- ULP not included for S2 & S3 HOT 2
- Unable to Build Arduino ESP32 Library HOT 6
- How works the configuration of the config files? HOT 6
- Improving Wi-Fi file transfer HOT 7
- Build failure when using docker container HOT 9
- Compilation not working HOT 1
- ESP32 - P2P HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32-arduino-lib-builder.