Camera compile help please



  • Warning, I don't understand the invalid conversion error hence why i need some help!

    Arduino: 1.8.9 Hourly Build 2018/12/06 04:12 (Mac OS X), Board: "ESP32 Dev Module, Disabled, Default, QIO, 80MHz, 4MB (32Mb), 921600, None"
    
    /Users/adambryant/Development/Arduino/Arduino6_12_18.app/Contents/Java/arduino-builder -dump-prefs -logger=machine -hardware /Users/adambryant/Development/Arduino/Arduino6_12_18.app/Contents/Java/hardware -hardware /Users/adambryant/Library/Arduino15/packages -tools /Users/adambryant/Development/Arduino/Arduino6_12_18.app/Contents/Java/tools-builder -tools /Users/adambryant/Development/Arduino/Arduino6_12_18.app/Contents/Java/hardware/tools/avr -tools /Users/adambryant/Library/Arduino15/packages -built-in-libraries /Users/adambryant/Development/Arduino/Arduino6_12_18.app/Contents/Java/libraries -libraries /Users/adambryant/Development/Arduinolibs/libraries -fqbn=esp32:esp32:esp32:PSRAM=disabled,PartitionScheme=default,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none -ide-version=10809 -build-path /var/folders/lk/x85468mj7479l_t_44y9q4600000gn/T/arduino_build_576543 -warnings=none -build-cache /var/folders/lk/x85468mj7479l_t_44y9q4600000gn/T/arduino_cache_742274 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=/Users/adambryant/Library/Arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=/Users/adambryant/Library/Arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=/Users/adambryant/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc-1.22.0-80-g6c4433a-5.2.0.path=/Users/adambryant/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0 -prefs=runtime.tools.esptool.path=/Users/adambryant/Library/Arduino15/packages/esp32/tools/esptool/2.3.1 -prefs=runtime.tools.esptool-2.3.1.path=/Users/adambryant/Library/Arduino15/packages/esp32/tools/esptool/2.3.1 -verbose /Users/adambryant/Development/Arduino/hardware/camera/esp32-cam-demo/sketch_dec12b/sketch_dec12b.ino
    /Users/adambryant/Development/Arduino/Arduino6_12_18.app/Contents/Java/arduino-builder -compile -logger=machine -hardware /Users/adambryant/Development/Arduino/Arduino6_12_18.app/Contents/Java/hardware -hardware /Users/adambryant/Library/Arduino15/packages -tools /Users/adambryant/Development/Arduino/Arduino6_12_18.app/Contents/Java/tools-builder -tools /Users/adambryant/Development/Arduino/Arduino6_12_18.app/Contents/Java/hardware/tools/avr -tools /Users/adambryant/Library/Arduino15/packages -built-in-libraries /Users/adambryant/Development/Arduino/Arduino6_12_18.app/Contents/Java/libraries -libraries /Users/adambryant/Development/Arduinolibs/libraries -fqbn=esp32:esp32:esp32:PSRAM=disabled,PartitionScheme=default,FlashMode=qio,FlashFreq=80,FlashSize=4M,UploadSpeed=921600,DebugLevel=none -ide-version=10809 -build-path /var/folders/lk/x85468mj7479l_t_44y9q4600000gn/T/arduino_build_576543 -warnings=none -build-cache /var/folders/lk/x85468mj7479l_t_44y9q4600000gn/T/arduino_cache_742274 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.mkspiffs.path=/Users/adambryant/Library/Arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.mkspiffs-0.2.3.path=/Users/adambryant/Library/Arduino15/packages/esp32/tools/mkspiffs/0.2.3 -prefs=runtime.tools.xtensa-esp32-elf-gcc.path=/Users/adambryant/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0 -prefs=runtime.tools.xtensa-esp32-elf-gcc-1.22.0-80-g6c4433a-5.2.0.path=/Users/adambryant/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0 -prefs=runtime.tools.esptool.path=/Users/adambryant/Library/Arduino15/packages/esp32/tools/esptool/2.3.1 -prefs=runtime.tools.esptool-2.3.1.path=/Users/adambryant/Library/Arduino15/packages/esp32/tools/esptool/2.3.1 -verbose /Users/adambryant/Development/Arduino/hardware/camera/esp32-cam-demo/sketch_dec12b/sketch_dec12b.ino
    Using board 'esp32' from platform in folder: /Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0
    Using core 'esp32' from platform in folder: /Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0
    Detecting libraries used...
    /Users/adambryant/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-g++ -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DHAVE_CONFIG_H -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/config -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/bluedroid -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/bluedroid/api -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/app_trace -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/app_update -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/bootloader_support -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/bt -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/driver -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp32 -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp_adc_cal -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp_http_client -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp-tls -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/ethernet -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/fatfs -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/freertos -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/heap -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/jsmn -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/log -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/mdns -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/mbedtls -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/mbedtls_port -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/newlib -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/nvs_flash -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/openssl -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/spi_flash -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/sdmmc -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/smartconfig_ack -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/spiffs -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/tcpip_adapter -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/ulp -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/vfs -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/wear_levelling -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/xtensa-debug-module -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/coap -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/console -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/expat -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/json -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/lwip -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/newlib -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/nghttp -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/soc -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/wpa_supplicant -std=gnu++11 -fno-exceptions -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10809 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/cores/esp32 -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/variants/esp32 /var/folders/lk/x85468mj7479l_t_44y9q4600000gn/T/arduino_build_576543/sketch/sketch_dec12b.ino.cpp -o /dev/null
    Generating function prototypes...
    /Users/adambryant/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-g++ -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DHAVE_CONFIG_H -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/config -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/bluedroid -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/bluedroid/api -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/app_trace -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/app_update -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/bootloader_support -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/bt -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/driver -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp32 -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp_adc_cal -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp_http_client -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp-tls -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/ethernet -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/fatfs -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/freertos -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/heap -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/jsmn -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/log -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/mdns -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/mbedtls -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/mbedtls_port -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/newlib -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/nvs_flash -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/openssl -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/spi_flash -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/sdmmc -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/smartconfig_ack -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/spiffs -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/tcpip_adapter -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/ulp -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/vfs -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/wear_levelling -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/xtensa-debug-module -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/coap -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/console -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/expat -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/json -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/lwip -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/newlib -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/nghttp -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/soc -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/wpa_supplicant -std=gnu++11 -fno-exceptions -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -fno-rtti -c -w -x c++ -E -CC -DF_CPU=240000000L -DARDUINO=10809 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/cores/esp32 -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/variants/esp32 /var/folders/lk/x85468mj7479l_t_44y9q4600000gn/T/arduino_build_576543/sketch/sketch_dec12b.ino.cpp -o /var/folders/lk/x85468mj7479l_t_44y9q4600000gn/T/arduino_build_576543/preproc/ctags_target_for_gcc_minus_e.cpp
    /Users/adambryant/Development/Arduino/Arduino6_12_18.app/Contents/Java/tools-builder/ctags/5.8-arduino11/ctags -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives /var/folders/lk/x85468mj7479l_t_44y9q4600000gn/T/arduino_build_576543/preproc/ctags_target_for_gcc_minus_e.cpp
    Compiling sketch...
    /Users/adambryant/Library/Arduino15/packages/esp32/tools/xtensa-esp32-elf-gcc/1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-g++ -DESP_PLATFORM "-DMBEDTLS_CONFIG_FILE=\"mbedtls/esp_config.h\"" -DHAVE_CONFIG_H -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/config -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/bluedroid -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/bluedroid/api -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/app_trace -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/app_update -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/bootloader_support -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/bt -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/driver -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp32 -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp_adc_cal -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp_http_client -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp-tls -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/ethernet -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/fatfs -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/freertos -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/heap -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/jsmn -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/log -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/mdns -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/mbedtls -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/mbedtls_port -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/newlib -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/nvs_flash -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/openssl -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/spi_flash -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/sdmmc -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/smartconfig_ack -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/spiffs -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/tcpip_adapter -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/ulp -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/vfs -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/wear_levelling -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/xtensa-debug-module -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/coap -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/console -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/expat -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/json -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/lwip -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/newlib -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/nghttp -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/soc -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/wpa_supplicant -std=gnu++11 -fno-exceptions -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-sign-compare -fno-rtti -MMD -c -DF_CPU=240000000L -DARDUINO=10809 -DARDUINO_ESP32_DEV -DARDUINO_ARCH_ESP32 "-DARDUINO_BOARD=\"ESP32_DEV\"" "-DARDUINO_VARIANT=\"esp32\"" -DESP32 -DCORE_DEBUG_LEVEL=0 -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/cores/esp32 -I/Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/variants/esp32 /var/folders/lk/x85468mj7479l_t_44y9q4600000gn/T/arduino_build_576543/sketch/sketch_dec12b.ino.cpp -o /var/folders/lk/x85468mj7479l_t_44y9q4600000gn/T/arduino_build_576543/sketch/sketch_dec12b.ino.cpp.o
    /Users/adambryant/Development/Arduino/hardware/camera/esp32-cam-demo/sketch_dec12b/sketch_dec12b.ino: In function 'void app_main()':
    sketch_dec12b:97:57: error: invalid conversion from 'int' to 'gpio_num_t' [-fpermissive]
         gpio_set_direction(CAMERA_LED_GPIO, GPIO_MODE_OUTPUT);
                                                             ^
    In file included from /Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp32/esp_sleep.h:19:0,
                     from /Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp32/esp_system.h:21,
                     from /Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/freertos/freertos/portable.h:126,
                     from /Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/freertos/freertos/FreeRTOS.h:105,
                     from /Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/cores/esp32/Arduino.h:32,
                     from /var/folders/lk/x85468mj7479l_t_44y9q4600000gn/T/arduino_build_576543/sketch/sketch_dec12b.ino.cpp:1:
    /Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/driver/driver/gpio.h:344:11: note:   initializing argument 1 of 'esp_err_t gpio_set_direction(gpio_num_t, gpio_mode_t)'
     esp_err_t gpio_set_direction(gpio_num_t gpio_num, gpio_mode_t mode);
               ^
    sketch_dec12b:98:38: error: invalid conversion from 'int' to 'gpio_num_t' [-fpermissive]
         gpio_set_level(CAMERA_LED_GPIO, 1);
                                          ^
    In file included from /Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp32/esp_sleep.h:19:0,
                     from /Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/esp32/esp_system.h:21,
                     from /Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/freertos/freertos/portable.h:126,
                     from /Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/freertos/freertos/FreeRTOS.h:105,
                     from /Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/cores/esp32/Arduino.h:32,
                     from /var/folders/lk/x85468mj7479l_t_44y9q4600000gn/T/arduino_build_576543/sketch/sketch_dec12b.ino.cpp:1:
    /Users/adambryant/Library/Arduino15/packages/esp32/hardware/esp32/1.0.0/tools/sdk/include/driver/driver/gpio.h:315:11: note:   initializing argument 1 of 'esp_err_t gpio_set_level(gpio_num_t, uint32_t)'
     esp_err_t gpio_set_level(gpio_num_t gpio_num, uint32_t level);
               ^
    sketch_dec12b:103:19: error: 'CONFIG_D0' was not declared in this scope
             .pin_d0 = CONFIG_D0,
                       ^
    sketch_dec12b:104:19: error: 'CONFIG_D1' was not declared in this scope
             .pin_d1 = CONFIG_D1,
                       ^
    sketch_dec12b:105:19: error: 'CONFIG_D2' was not declared in this scope
             .pin_d2 = CONFIG_D2,
                       ^
    sketch_dec12b:106:19: error: 'CONFIG_D3' was not declared in this scope
             .pin_d3 = CONFIG_D3,
                       ^
    sketch_dec12b:107:19: error: 'CONFIG_D4' was not declared in this scope
             .pin_d4 = CONFIG_D4,
                       ^
    sketch_dec12b:108:19: error: 'CONFIG_D5' was not declared in this scope
             .pin_d5 = CONFIG_D5,
                       ^
    sketch_dec12b:109:19: error: 'CONFIG_D6' was not declared in this scope
             .pin_d6 = CONFIG_D6,
                       ^
    sketch_dec12b:110:19: error: 'CONFIG_D7' was not declared in this scope
             .pin_d7 = CONFIG_D7,
                       ^
    sketch_dec12b:111:21: error: 'CONFIG_XCLK' was not declared in this scope
             .pin_xclk = CONFIG_XCLK,
                         ^
    sketch_dec12b:112:21: error: 'CONFIG_PCLK' was not declared in this scope
             .pin_pclk = CONFIG_PCLK,
                         ^
    sketch_dec12b:113:22: error: 'CONFIG_VSYNC' was not declared in this scope
             .pin_vsync = CONFIG_VSYNC,
                          ^
    sketch_dec12b:114:21: error: 'CONFIG_HREF' was not declared in this scope
             .pin_href = CONFIG_HREF,
                         ^
    sketch_dec12b:115:25: error: 'CONFIG_SDA' was not declared in this scope
             .pin_sscb_sda = CONFIG_SDA,
                             ^
    sketch_dec12b:116:25: error: 'CONFIG_SCL' was not declared in this scope
             .pin_sscb_scl = CONFIG_SCL,
                             ^
    sketch_dec12b:117:22: error: 'CONFIG_RESET' was not declared in this scope
             .pin_reset = CONFIG_RESET,
                          ^
    sketch_dec12b:118:25: error: 'CONFIG_XCLK_FREQ' was not declared in this scope
             .xclk_freq_hz = CONFIG_XCLK_FREQ,
                             ^
    /Users/adambryant/Development/Arduino/hardware/camera/esp32-cam-demo/sketch_dec12b/sketch_dec12b.ino: In function 'void wifi_init_sta()':
    sketch_dec12b:50:31: error: 'CONFIG_ESP_WIFI_SSID' was not declared in this scope
     #define EXAMPLE_ESP_WIFI_SSID CONFIG_ESP_WIFI_SSID
                                   ^
    /Users/adambryant/Development/Arduino/hardware/camera/esp32-cam-demo/sketch_dec12b/sketch_dec12b.ino:420:25: note: in expansion of macro 'EXAMPLE_ESP_WIFI_SSID'
             .sta = {.ssid = EXAMPLE_ESP_WIFI_SSID, .password = EXAMPLE_ESP_WIFI_PASS},
                             ^
    sketch_dec12b:51:31: error: 'CONFIG_ESP_WIFI_PASSWORD' was not declared in this scope
     #define EXAMPLE_ESP_WIFI_PASS CONFIG_ESP_WIFI_PASSWORD
                                   ^
    /Users/adambryant/Development/Arduino/hardware/camera/esp32-cam-demo/sketch_dec12b/sketch_dec12b.ino:420:60: note: in expansion of macro 'EXAMPLE_ESP_WIFI_PASS'
             .sta = {.ssid = EXAMPLE_ESP_WIFI_SSID, .password = EXAMPLE_ESP_WIFI_PASS},
                                                                ^
    exit status 1
    invalid conversion from 'int' to 'gpio_num_t' [-fpermissive] 
    

    Can someone help me porting the code please?


  • M5Stack

    @ajb2k3
    Hey, Good morning!
    Do you own M5Camera which integrated with PSRAM?
    Here's a new firmware with M5Camera. It's better than previous.
    https://github.com/m5stack/m5stack-cam-psram
    Thank you



  • @watson

    I own both versions.
    Stupid moment.....
    How do I flash the firmware to the camera?


  • M5Stack

    @ajb2k3

    For the psram version you can download the latest firmware here, The firmware can be flashed with esptool.py first install esptool with the command pip install –upgrade esptool from the command line then navigate to the firmware folder in the unzipped folder you downloaded from github then enter the command ./flash.sh esptool will do the rest. For the older version of the camera that you have there is a firmware in the m5 burner for windows download on the m5stack homepage. The firmware v0.02 is easily flashed by hooking up your camera and selecting that firmware in the windows burner if your on windows. I'm working on getting these firmware files included in the mac burner, should be uploaded soon. Meanwhile you can find the v0.02 folder in the m5cam firmwares folder and use the same command ./flash.sh

    Hope this helps



  • @lukasmaximus said in Camera compile help please:

    @ajb2k3

    For the psram version you can download the latest firmware here, The firmware can be flashed with esptool.py first install esptool with the command pip install –upgrade esptool from the command line then navigate to the firmware folder in the unzipped folder you downloaded from github then enter the command ./flash.sh esptool will do the rest. For the older version of the camera that you have there is a firmware in the m5 burner for windows download on the m5stack homepage. The firmware v0.02 is easily flashed by hooking up your camera and selecting that firmware in the windows burner if your on windows. I'm working on getting these firmware files included in the mac burner, should be uploaded soon. Meanwhile you can find the v0.02 folder in the m5cam firmwares folder and use the same command ./flash.sh

    Hope this helps

    I'm still getting the damaged file error in osx 10.12.06



  • Still not working on OSX 10.14.2


  • M5Stack

    @ajb2k3 Hi did you try entering the command in the terminal that I mentioned in this thread sudo spctl --master-disable ? I have tried this command on multiple macs from 10.12.6 up to mojave, since I don't have your specific version of the OS it's difficult for me to test, please try and let me know the result. If you worry about suspicious apps being installed on your mac you can always re-enable the protection with sudo spctl --master-enable. If all else fails the esptool.py method I mentioned above will work, or the method I documented in this video all you need to change is to add the firmware files in the firmware folder and then change the links in the firmwares.json file to suit the firmware you wish to burn.

    Let me know how it goes. I'm gonna be away in Germany over christmas but I'll still try to check back here.

    Luke



  • @lukasmaximus
    Will have a play. Enjoy your time in germany.
    That works!
    Sorry bud.


  • M5Stack

    Glad it worked, Merry christmas bud :p