-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Build failed on ESP_IDF #3215
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
you forgot to mention the ESP-IDF version, but I will guess it's not 3.2 :) |
I changed ESP-IDF version to release/3.2 as instructed : I went and tried to make again, but it still failed: |
just to be sure, I've DELETED EVERYTHING and started on a clean slate. Maybe I had something done wrong. I'm writing this as I'm doing it, so everything I write is what has just happend: Download ESP-IDF
Clone the M5stack repo on which I'm basing my project:
after setting menuconfig as required, everything has compiled and ran as expected Clone this library into my project (following instruction from To use as a component of ESP-IDF :
I used the solution in #2154
The make command failed with this error: I've verified that my device (ESP32CAM) has enough flash to 4MB, which it does.
compilation passed without errors. I re-checked by running step 8 numerous times, all passing.
run passed without errors Add use of this library to my code:using instructions from here
this time I got LOTS OF ERRORS
resulted in lots of so far so good, the code compiled and ran
code is compiling. This bug is over. @me-no-dev for future times, please don't dismiss so easily. the problem wasn't compiler version (but a whole different sets of problems) |
Thanks for this "tutorial", I ran to the same problem with my port. Since this is a config problem, why is this not catched in the code with a #ifndef XY #error A GOOD DESCRIPTION .... |
@Boldie Why not send in a PR to add those sort of config checks to the client code .... |
Especially if the user wants to use the library as component in IDF, there are some pitfalls while doing make menuconfig. One is this missing dependency which will now fail with a better error message with a hint to the user how to fix it. refs espressif#2154 espressif#3215
Hardware: (irrelevant for this issue)
Board: M5 ESP32CAM
Core Installation/update date: latest
IDE name: IDF-with Arduino
Flash Frequency: 40
Flash size: 4 MB
PSRAM enabled: ?no?
Upload Speed: ?115200?
Computer OS: Ubuntu 18.04.3 LTS
I'm trying to add the HTTPClient header file (and all associated files, libraries, methods, etc.) to M5's WIFI_STA project (link) in order to be able to send GET requests.
I followed the steps in the docs (doc):
I had the exact same issue as WiFiClientSecure make issue #2154, so I followed the instructions there to solve.
Component Config -> mbedTLS -> TLS Key Exchange Methods -> [*] Enable pre-shared-key ciphersuits [*] Enable PSK based ciphersuite modes
I now still have building issues, appearing unrelated to the previous one.
LOG:
In file included from /home/user/esp/m5stack-cam-psram/wifi/wifi_sta/main/main.c:18:0: /home/user/esp/m5stack-cam-psram/wifi/wifi_sta/components/arduino/libraries/HTTPClient/src/HTTPClient.h:32:18: fatal error: memory: No such file or directory compilation terminated. /home/user/esp/esp-idf/make/component_wrapper.mk:285: recipe for target 'main.o' failed make[1]: *** [main.o] Error 1 /home/user/esp/esp-idf/make/project.mk:530: recipe for target 'component-main-build' failed make: *** [component-main-build] Error 2
please help me to solve this issue.
Thanks
The text was updated successfully, but these errors were encountered: