-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Description
Hi, I'm trying to rebuild the arduino-esp32 library to use in a PlatformIO project. I need to change the values in menuconfig for my project and run on an esp32-solo chip. I've tried the instructions in esp32-arduino-lib-builder on both windows and macOS. If I use current versions of Arduino-esp32 and the ESP-IDF I get lots of errors with MOCKABLE_FUNCTION.
/Users/dougc/esp/esp32-arduino-lib-builder/components/arduino/libraries/AzureIoT/src/az_iot/c-utility/inc/azure_c_shared_utility/strings.h:36:1: error: expected primary-expression before ',' token
MOCKABLE_FUNCTION(, int, STRING_replace, STRING_HANDLE, handle, char, target, char, replace);
I read about this and other build errors. I tried to roll back the esp-idf to v3.3 and v4.0beta1. I still get compile errors with each version trying to build the library (the errors are different with each version of the esp-idf). Posts relating to this are a bit old and I'm looking for advice on how to rebuild the ardunio-esp32 library using the most current versions.
Right now, I'm on MacOS with esp-idf (master) and ardunio-esp (master).
I found binaries of updated library files here,
https://github.com/lbernstone/arduino-esp32-solo
but I'd like to be able to rebuild those library files. Will someone describe the [latest] compatible versions of Arduino-esp32 and esp-idf, and provide a brief explanation on how to rebuild the Arduino-esp32 library for use in PlatformIO? Thank you!