-
Notifications
You must be signed in to change notification settings - Fork 7.6k
How to build everything from source instead of static libraries? #3098
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Short answer... Not possible in Arduino IDE... Longer answer.. You have two options:
Option 2 is a lot easier to setup and maintain over the long term. As an added bonus you will get a full fledged IDE. |
for option 3, make sure to use the correct version of esp-idf... currently set to the 3.2 release branch.. |
I tried to build libbt.a in CLion and then copy them to ~/Library/Arduino15/packages/esp32 folder structure. Since my esp-idf is latest master (v4) and the Arduino libs are v3.x I got a lot of missing symbols so I had to build and copy another 3 libs. Of course once I got a ELF file built and flashed it didn't work, so I kind of dropped that for now. @atanisoft Arduino is great for hobbyists or some rapid prototyping. I was just surprised that the binaries (libs) are checked into git in arduino-esp32 and the folder structure is flattened to just sdk/lib. When you build these libraries with cmake, idf.py or CLion the libs are build into a folder structure of esp-idf/component_name/libxxx.a. I guess I could copy *.a from esp-idf to ~/Library/Arduino15/packages/esp32 For Option 2, I've actually installed Visual Studio Code, PlatformIO and ESP32 component. That's a good free option as well. |
Since you have CLion, I'd suggest use the PIO plugin for it and you can follow the same options for #2. |
Got everything I need up and running in CLion - no luck with Arduino IDE. |
I am facing a similar problem. I want to re-compile libbt and replace it in the arduino library folder. But my problem is how I can build the libbt.a library? |
This project is based on pre-built static libraries, which means you can't make any changes.
I would like to change the UUID for BT SPP and use it in Arduino https://github.com/espressif/esp-idf/blob/master/components/bt/host/bluedroid/api/esp_spp_api.c#L26
The function I want to modify is esp_spp_start_discovery and the source is here:
https://github.com/espressif/esp-idf/blob/6517c5033aab27afe491e433d6beeba93dfb1aa7/components/bt/host/bluedroid/api/esp_spp_api.c#L71
How?
Ideally I would like to rebuild everything from source in Arduino every-time I build. Alternatively I would like to build ~/Documents/Arduino/hardware/espressif/esp32/tools/sdk/lib/libbt.a from source.
The text was updated successfully, but these errors were encountered: