-
Notifications
You must be signed in to change notification settings - Fork 359
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
HowTo: Compile esp32-cam-webserver with platformio #160
Comments
Thankyou, nicely written up, but I respectfully disagree, it is a very long-winded way of forcing the code into a very specific default PlatformIO architecture & structure. But I think that is totally unnecessary, and will make it really hard to update / merge / create PR's etc. This project already builds on PlatformIO straight out of the box. If you look you will see a So, Why not; instead: Open VSCode->platformio and select 'Open Project' from the 'open' tab. (No need to select the 'import arduino project' tool) Browse to and select the folder where you have cloned the repo: You now have the project in the IDE, browseable etc, and it will compile & run just fine. |
Actually, thinking about this the partition scheme probably needs defining for the board now; the above is still using the AI-Thinker partition scheme, which will break OTA.. I'll use PlatformIO as my development IDE for a bit and make sure uploading works ;-) But my primary focus will remain the Arduino IDE, as I've said before, I'm happy to support platformio but it's on tier 2. |
Hi,
You're absolutely right, my bad. I read that You're concentrating on the Arduino IDE - which is fine - and actually saw the platformio.ini but did not realize the "src_dir=./" entry. That's why I started from scratch and did not even try File -> Open Folder... I did that now, and yes, it compiles fine. Watching the tree closely during compile You actually see the cpp file it briefly creates. Only downside is that You can't modify the code without pio complaining about the ino extension. Thanks Regards Frank |
In case someone else needs it, here is what I did in order to compile the project with platformio:
Regards
Frank
The text was updated successfully, but these errors were encountered: