Closed ghost closed 1 year ago
Hi @walzen-shell. I can see two errors that I had:
error: 'GPIO' undeclared (first use in this function)
In my case that happened when I didn't activated the GPIO option in menuconfig. Component config - Driver configuration - RTCIO configuration - Support array rtc_gpio_desc for ESP32 = check
error: implicit declaration of function ...
In my case this happened because there is a function declaration without the corresponding #include
What esp-idf version are you using?
Regards.
@than-sad
Hi @walzen-shell
I got succeeded to compile with esp-idf 3.4 and 4.1 and @barisonal with 4.4. This code is old (around 2020) and a lot of things changed in esp-idf 5. I recommend you to try it with one of the versions I mentioned.
I think in esp-idf 5 that option was removed or at least changed of location. Im not an expert at all.
Regards.
Thanks @than-sad
I tried now your suggested solution here https://www.studiopieters.nl/esp32-homekit-camera/ but I can't install esp-idf 3.2, because there is no install.sh or export.sh. How can I install an old version of esp-idf?
I used:
git clone -b v3.2.3 --recursive https://github.com/espressif/esp-idf.git
but there aren't those files in there
Hi @walzen-shell, 3.2.3 it's probably too old. Try deleting all esp-idf folders (including hidden ones if exist .espressif) and install the version 4.1.4.
Follow the tutorial just changing to: git clone -b v4.1.4 --recursive https://github.com/espressif/esp-idf.git
Test it and share results. Regards.
thank you @than-sad I get now following output in install.sh:
Installing tools: xtensa-esp32-elf, xtensa-esp32s2-elf, esp32ulp-elf, esp32s2ulp-elf, openocd-esp32
Installing xtensa-esp32-elf@esp-2020r3-8.4.0
Downloading xtensa-esp32-elf-gcc8_4_0-esp-2020r3-macos.tar.gz to /var/root/.espressif/dist/xtensa-esp32-elf-gcc8_4_0-esp-2020r3-macos.tar.gz.tmp
WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
WARNING: Failed to download https://github.com/espressif/crosstool-NG/releases/download/esp-2020r3/xtensa-esp32-elf-gcc8_4_0-esp-2020r3-macos.tar.gz to /var/root/.espressif/dist/xtensa-esp32-elf-gcc8_4_0-esp-2020r3-macos.tar.gz.tmp
Downloading xtensa-esp32-elf-gcc8_4_0-esp-2020r3-macos.tar.gz to /var/root/.espressif/dist/xtensa-esp32-elf-gcc8_4_0-esp-2020r3-macos.tar.gz.tmp
WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
WARNING: Failed to download https://github.com/espressif/crosstool-NG/releases/download/esp-2020r3/xtensa-esp32-elf-gcc8_4_0-esp-2020r3-macos.tar.gz to /var/root/.espressif/dist/xtensa-esp32-elf-gcc8_4_0-esp-2020r3-macos.tar.gz.tmp
Downloading xtensa-esp32-elf-gcc8_4_0-esp-2020r3-macos.tar.gz to /var/root/.espressif/dist/xtensa-esp32-elf-gcc8_4_0-esp-2020r3-macos.tar.gz.tmp
WARNING: Download failure <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)>
WARNING: Failed to download https://github.com/espressif/crosstool-NG/releases/download/esp-2020r3/xtensa-esp32-elf-gcc8_4_0-esp-2020r3-macos.tar.gz to /var/root/.espressif/dist/xtensa-esp32-elf-gcc8_4_0-esp-2020r3-macos.tar.gz.tmp
ERROR: Failed to download, and retry count has expired
Traceback (most recent call last):
File "/Users/hannesnagel/esp/esp-idf/tools/idf_tools.py", line 1459, in <module>
main(sys.argv[1:])
File "/Users/hannesnagel/esp/esp-idf/tools/idf_tools.py", line 1455, in main
action_func(args)
File "/Users/hannesnagel/esp/esp-idf/tools/idf_tools.py", line 1207, in action_install
tool_obj.download(tool_version)
File "/Users/hannesnagel/esp/esp-idf/tools/idf_tools.py", line 590, in download
raise DownloadError()
__main__.DownloadError
or if I run docker build . -f esp-sdk-dockerfile -t esp-sdk
:
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Retrieving needed toolchain components' tarballs'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: do_isl_get[scripts/build/companion_libs/121-isl.sh@741]
[ERROR] >> called from: do_companion_libs_get[scripts/build/companion_libs.sh@15]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@591]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> 'share/doc/crosstool-ng/crosstool-ng-1.22.0-60-g37b07f6/B - Known issues.txt'
[ERROR]
[ERROR] (elapsed: 3:21.66)
[03:22] / ct-ng:152: recipe for target 'build' failed
#9 216.0 make[2]: Leaving directory '/build/esp-open-sdk/crosstool-NG'
#9 216.0 make[2]: *** [build] Error 1
#9 216.0 ../Makefile:135: recipe for target '_toolchain' failed
#9 216.0 make[1]: Leaving directory '/build/esp-open-sdk/crosstool-NG'
#9 216.0 make[1]: *** [_toolchain] Error 2
#9 216.0 Makefile:130: recipe for target 'crosstool-NG/.built' failed
#9 216.0 make: *** [crosstool-NG/.built] Error 2
------
executor failed running [/bin/sh -c su docker -c " git clone --recursive https://github.com/pfalcon/esp-open-sdk.git /build/esp-open-sdk ; cd /build/esp-open-sdk ; make STANDALONE=n ; "]: exit code: 2
Hi, the first one is related to certificates, you have to check your setup. The second one I don't know because I don't use docker.
Regards.
I have a compiler issue (for idf.py)
maybe someone has a solution for this issue?