Comments (13)
master branch builds against IDF master (4.4)
from esp32-arduino-lib-builder.
to build against master IDF, use the release/v4.2
branch of this repo :)
from esp32-arduino-lib-builder.
thanks a lot :) I will try this and see if the memory problem is happening with newer esp-idf as well.
from esp32-arduino-lib-builder.
questions regarding v4.2 branch,:
- Is it python3 stable now?
- where has make menuconfig gone?
I am getting this when I run build.sh
ESP-IDF is already installed at: ./esp-idf
Note: You are using Python 3.6.9. Python 3 support is new, please report any problems you encounter. Search for 'Setting the Python Interpreter' in the ESP-IDF docs if you want to use Python 2.7.
usage: idf.py [-h] [-p PORT] [-b BAUD] [-C PROJECT_DIR] [-B BUILD_DIR]
[-G {Ninja,Unix Makefiles}] [-n] [-v]
[-D DEFINE_CACHE_ENTRY [DEFINE_CACHE_ENTRY ...]] [--no-ccache]
{all,build,clean,fullclean,reconfigure,menuconfig,confserver,size,size-components,size-files,bootloader,bootloader-clean,bootloader-flash,app,app-flash,efuse_common_table,efuse_custom_table,show_efuse_table,partition_table,partition_table-flash,flash,erase_flash,monitor,erase_otadata,read_otadata}
[{all,build,clean,fullclean,reconfigure,menuconfig,confserver,size,size-components,size-files,bootloader,bootloader-clean,bootloader-flash,app,app-flash,efuse_common_table,efuse_custom_table,show_efuse_table,partition_table,partition_table-flash,flash,erase_flash,monitor,erase_otadata,read_otadata} ...]
idf.py: error: argument actions: invalid choice: 'idf-libs' (choose from 'all', 'build', 'clean', 'fullclean', 'reconfigure', 'menuconfig', 'confserver', 'size', 'size-components', 'size-files', 'bootloader', 'bootloader-clean', 'bootloader-flash', 'app', 'app-flash', 'efuse_common_table', 'efuse_custom_table', 'show_efuse_table', 'partition_table', 'partition_table-flash', 'flash', 'erase_flash', 'monitor', 'erase_otadata', 'read_otadata')
from esp32-arduino-lib-builder.
Starting with IDF 4.0 the build system uses CMake and not Make. Proper config command is idf.py menuconfig
. And yes, everything works with Python 3. Running build.sh
should work if you have installed everything correctly.
from esp32-arduino-lib-builder.
Alright, I have that stuff installed from the readme but it puts out many errors like this:
CMake Error at esp-idf/tools/cmake/idf_functions.cmake:29 (include):
include could not find load file:crosstool_version_check
Call Stack (most recent call first):
esp-idf/tools/cmake/project.cmake:5 (include)
CMakeLists.txt:9 (include)CMake Error at esp-idf/tools/cmake/idf_functions.cmake:30 (include):
include could not find load file:ldgen
Call Stack (most recent call first):
esp-idf/tools/cmake/project.cmake:5 (include)
CMakeLists.txt:9 (include)CMake Error at esp-idf/tools/cmake/idf_functions.cmake:31 (include):
include could not find load file:version
Call Stack (most recent call first):
esp-idf/tools/cmake/project.cmake:5 (include)
CMakeLists.txt:9 (include)CMake Error at esp-idf/tools/cmake/idf_functions.cmake:33 (set_default):
Unknown CMake command "set_default".
Call Stack (most recent call first):
esp-idf/tools/cmake/project.cmake:5 (include)
CMakeLists.txt:9 (include)
Is there new doc on the packages needed to be installed?
from esp32-arduino-lib-builder.
this is probably not a dependency issue.
To be clear:
- You cloned this repository
- Switched to release/v4.2 branch
- Executed
./build.sh
from esp32-arduino-lib-builder.
Looks like I got the wrong xtensa-esp32-elf tools?
I have downloaded them from here (linux-amd64) for v4.2:
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-tools.html
I unpacked it in my home dir in "xtensa-esp32-elf", and made sure it can be found by adding the path to the $PATH env:
export PATH=${HOME}/xtensa-esp32-elf/bin:$PATH"
I did the same for current master branch with esp-idf v3.3 which worked just fine.
Now I am stuck here:
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /home/al/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc
Build flags: -mlongcalls
Id flags:The output was:
1
/home/al/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: cannot find crt1-sim.o: No such file or directory
/home/al/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: cannot find _vectors.o: No such file or directory
/home/al/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: cannot find -lsim
/home/al/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: cannot find -lhandlers-sim
/home/al/xtensa-esp32-elf/bin/../lib/gcc/xtensa-esp32-elf/5.2.0/../../../../xtensa-esp32-elf/bin/ld: cannot find -lhal
collect2: error: ld returned 1 exit status
...
from esp32-arduino-lib-builder.
@me-no-dev you were right, I still had wrong branch selected in esp-idf, seems like the build.sh script does not switch the branch automatically.
I am a little step further now compiling, but now I am stuck here:
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: xtensa-esp32s2-elf-gcc
Build flags: -mlongcalls
Id flags:The output was:
No such file or directory
from esp32-arduino-lib-builder.
from esp32-arduino-lib-builder.
For now I got my code more or less stable with esp-idf 3.3 and arduino-esp32 master branch so I will properly try esp-idf v4.2 later when the building process is more stable or the build environment can be prepared automatically.
from esp32-arduino-lib-builder.
release/v4.2
seems not present anymore
I need to build against v4.x, any idea on how to do that?
from esp32-arduino-lib-builder.
Hire
I know I'm not in the good place, but:
Is somebody able to give me examples to set the correct syntax to build.sh [-s] [-A arduino_branch] [-I idf_branch] [-i idf_commit] [-c path] [-t ] [-b <build|menuconfig|idf_libs|copy_bootloader|mem_variant>] [config ...]?
For example I want to build the arduino_branch version "2.0.1" based on idf_branch "zzz":my only goal is to integrate vTaskGetRunTimeStats( char * pcWriteBuffer ).
My project, already running, is a wifi rover, able of autonomous missions with RTK data & with 100 Hz IMU, using a javascript websocket browser interface (later an RF serial protocol...). All is correctly working in Eclipse & arduino IDE, environment, but I need vTaskGetRunTimeStats to optimize the tasks priorities/stacks/cores implementations (Lwip, esp_http_server & others...).
I try the custom configuration "./build.sh -b menuconfig -t esp32" & it runs but I don't know how to set arduino & idf versions (option -A & -I).Can you help me?
Cordially yours (Eric retired computer design engineer https://github.com/ecobdoor/toto).
from esp32-arduino-lib-builder.
Related Issues (20)
- Windows build? HOT 4
- Build flags across files HOT 6
- mbedtls_calloc fail HOT 1
- error: implicit declaration of function 'esp_rmaker_cmd_prepare_empty_response' HOT 3
- Linking error "esp_phy/lib/esp32c3/libbtbb.a: file not recognized: file format not recognized" HOT 3
- ./build.sh command ends in ERROR: Can't reliably evaluate relative path without context: ../rmaker_common
- 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
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.