maximkulkin / esp32-homekit-camera

Firmware for esp32-camera module to act as Apple Homekit IP camera
MIT License
394 stars 78 forks source link

Project not build (ESP-IDF 4.0) #86

Open feanor413 opened 3 years ago

feanor413 commented 3 years ago

I have a problem configuring. When I use idf.py build I get the error message that the x264.h not found and implicit declaration of function 'wc_AesEncryptDirect'.

../main/streaming.c:18:10: fatal error: x264.h: No such file or directory

include <x264.h>

      ^~~~~~~~

compilation terminated. ... In file included from ../components/wolfssl/wolfssl-4.1.0/wolfssl/wolfcrypt/types.h:29, from ../components/wolfssl/wolfssl-4.1.0/wolfssl/wolfcrypt/aes.h:30, from ../main/crypto.c:3: ../components/wolfssl/wolfssl-4.1.0/wolfssl/wolfcrypt/settings.h:1940:14: warning: #warning "For timing resistance / side-channel attack prevention consider using harden options" [-Wcpp]

warning "For timing resistance / side-channel attack prevention consider using harden options"

          ^~~~~~~

../main/crypto.c: In function 'encrypt_counter': ../main/crypto.c:24:9: error: implicit declaration of function 'wc_AesEncryptDirect'; did you mean 'wc_AesCbcEncrypt'? [-Werror=implicit-function-declaration] wc_AesEncryptDirect(aes, keystream, iv); ^~~~~~~ wc_AesCbcEncrypt cc1.exe: some warnings being treated as errors ninja: build stopped: subcommand failed. ninja failed with exit code 1

I am using the latest ESP-IDF version (4).

Who can help me?

okanduzyel commented 3 years ago

Delete your esp idf folder. Build that instruction carefully https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/

And then, do what it writes in read me part https://github.com/maximkulkin/esp32-homekit-camera

I guess, you have a problem on the side of esp idf.