-
Notifications
You must be signed in to change notification settings - Fork 621
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
Compilation Errors and unresolved inclusions #482
Comments
If you are using Eclipse with IDF plugin (or the "Espressif-IDE"), the simplest way is probably as follows:
|
Another option, without using the "Install ESP-IDF components" option and by downloading the component manually using Git:
|
thank you sir. I will give those two a shot. if I may ask how do I use this type of resource in an existing project. I hate to use the example of Arduino or Atmel studio, but I am thinking of using it more like a library than just using their example code. I am sorry if I sound stupid but I'm still very much learning the IDE. I feel like a moron for not understanding how to add it as a resource. |
From your screenshot, it looks like you got it almost right with your existing project! The problem seems to be that the esp32-camera directory is in the root of your project directory. However, ESP-IDF by default expects project components to be present in the So, based on this, I think it's not a problem to use either of the above methods with an existing project:
|
I keep searching online for a coherent example of the make file but just get redirected back to the espresssif resources which despite my most sincere efforts I just don't understand |
Could you please also show the contents of main/CMakeLists.txt? |
From what I see in the screenshots, you have done everything correctly! I have tried to repeat all the steps with IDF v4.4.2 (which you are using) and I was still able to get the project built. That's really odd. I can't figure out what is the difference that causes the build to fail on your side. When you build the project, do you get the same error message about the missing esp_camera.h in the "Console" window at the bottom? Or is the error only shown in the Problems tab? Could you please attach the following files from the 'build' directory after an unsuccessful build:
We'll try to figure out what's going on based on these files. |
sorry for the delay. I got it working for a while but then lost internet. I did both the git clone and the managed components and it worked for a while. Then a moment ago it stopped working, I did a quick git clone and makefile change and it just started working. idk I don't know how to get the error again. but if it does happen I will send you the files per your request |
maybe it will happen again and I can get you the files to find and crush that bug. Thank you for all of your help and for not making me feel anymore like an idiot than I already do. Sorry that it stopped failing before I could get those bug files for you. |
No worries, at least it works for you now, which is probably not a bad outcome. If this happens again, please reopen the issue and @-mention me, I'll take a look. |
I hate having to bug people online when I can't solve a problem but after 12 hours of banging my head against the wall I have no other choice.
heres the situation. I am trying to use the ESP32-camera code in a porject I am working on. I have tried repeatedly over and over again different methods to add this to my project, and every time I get hundreds of errors that are all caused by the fact that the most of the #includes in the header files can't resolve. I have modified the make files hundreds of different ways in an attempt to correct this. I have downloaded and unzipped to add it, I have cloned the git, I have tried just manually typing it all in. No matter what I do I end up in the same situation.
the kicker is that I can get it to compile as long as I don't open the either the driver/include/esp_camera.h or driver/include/sensor.h.
if I even open either one of those it stops compiling and gives those errors again.
its like the header files aren't there, which of course they are, and it can find them as long as I don't try to open them.
could someone show me mercy and tell me how in the hell to use this. I am not new to coding but am very new to ESP-IDF and am really missing how to simply add a library in this IDE.
thank you so much for any help.
The text was updated successfully, but these errors were encountered: