maximkulkin / esp32-homekit-camera

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

libavutil/avconfig.h not found #2

Closed GermanSheepDog closed 5 years ago

GermanSheepDog commented 5 years ago

Hello,

I cloned esp32-homekit-camera to local directory and I installed the home kit-directory manual.

I used menuconfig to config:

If I compiled I got this error messages:

App "esp32-homekit-camera" version: 9cf2d13-dirty
CC build/libswscale/libswscale/alphablend.o
In file included from /Users/<username>/esp/esp-idf/components/newlib/include/_ansi.h:16:0,
                 from /Users/<username>/esp/esp-idf/components/newlib/include/stdlib.h:11,
                 from /Users/<username>/esp/esp32-homekit-camera/components/libswscale/libavutil/avassert.h:30,
                 from /Users/<username>/esp/esp32-homekit-camera/components/libswscale/libswscale/swscale_internal.h:27,
                 from /Users/<username>/esp/esp32-homekit-camera/components/libswscale/libswscale/alphablend.c:21:
/Users/<username>/esp/esp-idf/components/newlib/include/sys/config.h:199:0: warning: "HAVE_GETOPT" redefined
 #define HAVE_GETOPT
 ^
In file included from /Users/<username>/esp/esp32-homekit-camera/components/libswscale/libswscale/swscale_internal.h:24:0,
                 from /Users/<username>/esp/esp32-homekit-camera/components/libswscale/libswscale/alphablend.c:21:
/Users/<username>/esp/esp32-homekit-camera/components/libswscale/config.h:282:0: note: this is the location of the previous definition
 #define HAVE_GETOPT 1
 ^
In file included from /Users/<username>/esp/esp32-homekit-camera/components/libswscale/libavutil/avutil.h:296:0,
                 from /Users/<username>/esp/esp32-homekit-camera/components/libswscale/libavutil/avassert.h:31,
                 from /Users/<username>/esp/esp32-homekit-camera/components/libswscale/libswscale/swscale_internal.h:27,
                 from /Users/<username>/esp/esp32-homekit-camera/components/libswscale/libswscale/alphablend.c:21:
/Users/<username>/esp/esp32-homekit-camera/components/libswscale/libavutil/common.h:45:32: fatal error: libavutil/avconfig.h: No such file or directory
compilation terminated.
make[1]: *** [libswscale/alphablend.o] Error 1
make: *** [component-libswscale-build] Error 2
Pg1:esp32-homekit-camera <username>$ 

I didn't find any solution for esp32 at google. Can anyone please help me?

maximkulkin commented 5 years ago

Accidentally, libavutil's .gitignore excluded some header files. Fixed that.