espressif / esp-who

Face detection and recognition framework
Other
1.64k stars 458 forks source link

Building for Darwin-arm64 fails using esp-idf tag 4.3-rc #175

Closed bschuste closed 1 year ago

bschuste commented 3 years ago

While trying to build the example camera_web_server (branch master) on a Mac mini with the M1 processor, I ran into the build error below. I am using the esp-idf tagged 4.3-rc.

[670/1019] Generating x509_crt_bundle FAILED: esp-idf/mbedtls/x509_crt_bundle cd /Users/.../esp-who/examples/single_chip/camera_web_server/build/esp-idf/mbedtls && /Users/.../.espressif/python_env/idf4.3_py3.9_env/bin/python /Users/.../esp-who/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py --input /Users/.../esp-who/esp-idf/components/mbedtls/esp_crt_bundle/cacrt_all.pem -q Traceback (most recent call last): File "/Users/.../esp-who/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py", line 224, in main() File "/Users/.../esp-who/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py", line 208, in main bundle.add_from_file(path) File "/Users/.../esp-who/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py", line 86, in add_from_file self.add_from_pem(crt_str) File "/Users/.../esp-who/esp-idf/components/mbedtls/esp_crt_bundle/gen_crt_bundle.py", line 116, in add_from_pem self.certificates.append(x509.load_pem_x509_certificate(crt.encode(), default_backend())) File "/Users/.../.espressif/python_env/idf4.3_py3.9_env/lib/python3.9/site-packages/cryptography/hazmat/backends/init.py", line 14, in default_backend from cryptography.hazmat.backends.openssl.backend import backend File "/Users/.../.espressif/python_env/idf4.3_py3.9_env/lib/python3.9/site-packages/cryptography/hazmat/backends/openssl/init.py", line 6, in from cryptography.hazmat.backends.openssl.backend import backend File "/Users/.../.espressif/python_env/idf4.3_py3.9_env/lib/python3.9/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 113, in from cryptography.hazmat.bindings.openssl import binding File "/Users/.../.espressif/python_env/idf4.3_py3.9_env/lib/python3.9/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14, in from cryptography.hazmat.bindings._openssl import ffi, lib ImportError: dlopen(/Users/.../.espressif/python_env/idf4.3_py3.9_env/lib/python3.9/site-packages/_cffi_backend.cpython-39-darwin.so, 2): no suitable image found. Did find: /Users/.../.espressif/python_env/idf4.3_py3.9_env/lib/python3.9/site-packages/_cffi_backend.cpython-39-darwin.so: mach-o, but wrong architecture /Users/.../.espressif/python_env/idf4.3_py3.9_env/lib/python3.9/site-packages/_cffi_backend.cpython-39-darwin.so: mach-o, but wrong architecture ninja: build stopped: subcommand failed. ninja failed with exit code 1

yehangyang commented 2 years ago

Hi @bschuste,

As ESP-DL is refactored thoroughly, ESP-WHO has to make the corresponding changes. Please check the branch v2_alpha.