-
Notifications
You must be signed in to change notification settings - Fork 615
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
Easier setup for PlatformIO for ESP-IDF using idf_component.yml #596
Comments
We do not control what and how is installed using PIO. What you ask about is documented for ESP-IDF. The component is standard structure and has no issues being used in ESP-IDF projects otherwise. |
I am merely suggesting that there are two more ways of using the component with the ESP-IDF platform in PlatformIO. |
I am a bit confused. Which documentation are you quoting? You opted to use the package manager, which is the default documented way going forward. Did you find some instructions elsewhere? |
The installation instructions on the repo first page (and below): As according in the documentation above it, the package manager method only work with the Arduino platform. |
Just my 2c: since
works in IDF build system (whether you invoke CMake from There is a fair amount of text in the installation section of the project readme now, mentioning also submodules as an installation method. We could simplify this all to a fairly brief set of instructions based on idf_component.yml. |
That would be even better of course, just pointed to master since the documentation did that for ESP-IDF. |
* maint(build): remove legacy GNU Make build system support * maint(example): move the example so that component manager finds it * maint(example): specify component dependency * maint(build): clean up legacy 'register_component' usage * maint(build): specify more fields in component manifest * doc(readme): simplify installation instructions See #596 * maint(ci): remove tests for EOL versions (v4.1, v4.2) * fix(build): add missing transitive dependency on driver component
@nicklasb I am currently struggling with the same problem - just for a quick reference, using |
Yes, worked with having this dependency, haven't build it for a while but should still work. Not sure if you have to REQUIRE if it is in the idf_component.yml, actually. Note that you cannot have really old versions of ESP-IDF. What is your problem? |
No problem here, I was just wondering since the documentation mentions both ways, but I didn't see any mention of having to use "REQUIRES" for esp internal dependencies and idf_components.yml for external dependencies from the component library. |
Hi,
So I have been a bit annoyed by how complex this library is to use in PlatformIO and ESP-IDF, as mentioned here it is quite the chore to get it building. So first, I went another way and cobbled the files together using CMake instead (my env is ESP32cam and it is a esp32 target):
I certainly did not like that solution, as it is just everything else than portable.
Instead, the easiest way for me was to be add an idf_component.yml-file and add esp32-camera as a simple dependency:
and a
..to the CMakeLists.txt and it works? (or at least it builds)
So wouldn't the idf_component.yml path be much easier, or at least deserved to be mentioned, for most PlatformIO ESP-IDF users?
The text was updated successfully, but these errors were encountered: