-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Unable to compile arduino as idf component in eclipse #5317
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
Did you copy sdkconfig to your project? |
hi @chegewara yes i copied over the sdkconfig. edit: |
The component is called esp-eth in idf 4. You cannot compile any version of arduino with any version of idf. I recommend you use lib-builder to ensure you get a match between known good versions. |
i remember i try to use that before @lbernstone but cant proceed somehow, probably because i am using windows |
You can see here which commit of arduino is matched with a commit of esp-idf. If you can't get both those aligned, there is a very low chance you will get this to compile. |
Hi @lbernstone i did try the lib builder and is working fine.
sorry for the long question edit: it finally stop building. |
Hi @chegewara , @lbernstone , the component registration now are not working as before. the linker not be able to find the header class after build: edit: Undefined reference error after the build completed:
this is call from idf component to the arduino library thanks |
Do you guys have example project run on c++ as components and calling arduino library? |
Maybe the problem is with eclipse config? As you can see there is a lot files that has to be included manually. Maybe there is better way to do it, but i dont know it. |
i believe this is not ide eclipse related, i try to build both command line and ide with the same result. code are build properly and the linkage are fine with idf 4.2. but having issue with the 4.4. basically the linker are not able to find the compiled code once the compile finish building. i have this issue previously on my own component and able to resolve it. but now it happens on the arduino library it self. the compiler not able to link the arduino library. wondering how you guys call the arduino lib classes and function on idf components what updates that was done on the arduino-esp, i guess some linkage in the makefile was removed. cc: @lbernstone , @igrr |
Hi this is the error
look like the elf files was not generated. |
i close this and open another one here to be more specific: thanks! |
@lbernstone from the docker file, idf 4,2 previously is using arduino release4.2 branch here there is no more arduino release/4.2 branch. so now 4.2 is build against master arduino branch? try to revert back to version 4.2.2 but cant get the build to success. |
Hardware:
Board: ESP32 Dev Module
Core Installation version: ESP-IDF v4.4-dev-1594-g1d7068e4b-dirty
IDE name: IDF component
Flash Frequency: 40Mhz?
PSRAM enabled: no
Upload Speed: 115200
Computer OS: Windows 10
Description:
Unable to compile arduino as idf component.
I doing library update to the current master for idf and arduino but having issue with the arduino esp32 lib to compile with error as below:
Failed to resolve component 'ethernet'.
I have follow exactly from the guide provided here:
https://github.com/espressif/arduino-esp32/blob/master/docs/esp-idf_component.md
Step i did:
Debug Messages:
the ethernet is a part of arduino idf sdk, i am guessing that this sdk folder need to be copy to idf folder somewhere. not really sure where to put this folder, how to register it and why this is not included by default. i dont want to simply copy stuff and override files. suggesting to have updated setup guide for arduino as components in eclipse.
thank you so much for your reply and thanks in advanced.
The text was updated successfully, but these errors were encountered: