Replies: 5 comments 5 replies
-
Beta Was this translation helpful? Give feedback.
-
Hi Jantje, Thanks for your elaborate answer. Very instructive and helpfull for developers. I followed your instructions but unfortunately it did not solve my problem. I cannot find an "automatic way" to cope with libraries with the same name, switching between 2 platforms i.e. ESP32 and ESP8266, without manual intervention. You cannot exclude a library from the "build" and then include a library with the same name; it always replaces the other library, even when you exclude the other lib from the build. |
Beta Was this translation helpful? Give feedback.
-
Hi jantje, thank you for these instructions on using different configurations. So my guess is that something very crucial in the underlying mechanism is not gathering all the necessary files for STM32. I created a new project with the exact same codebase and choose STM32 from the start as platform and that one builds perfectly well, so I am confident that a solution to switch configurations is possible. |
Beta Was this translation helpful? Give feedback.
-
Oh - sorry for misplacing my question/comment Shall I open a new topic on this or can it be converted? |
Beta Was this translation helpful? Give feedback.
-
if you do the 2 projects approach try linking to folders as much as possible as it will be easier to maintain. |
Beta Was this translation helpful? Give feedback.
-
No idea wether this is a question about Eclipse or about Sloeber....
I have created 2 build configurations for one application, one for the esp8266 and one for the esp32. Thus maintaining a single source code for 2 platforms.
Each platform use different libraries (like wire or spi) but having identical names, and located in the 2 different locations of the 2 packages. In case I switch to the other platform one would expect that the library points to the library belonging to the chosen platform. Unfortunately this does not happen for libraries having identical names.
Excluding the library and import the other library (having the same name) does not work. My workaround is to rename each library (having identical names) with a prefix of "ESP8266" or "ESP32". For example: rename the SPI-library to ESP8266spi and ESP32spi..... Perhaps I do something wrong or is it a known issue.
Thanks in advance for suggestions to handle this.
Beta Was this translation helpful? Give feedback.
All reactions