rzeldent / esp32cam-rtsp

Simple RTSP (streaming image) server for the ESP32CAM. Easy configuration and monitoring through the web interface.
679 stars 124 forks source link

Compilation error #135

Open Szymon-ek opened 3 months ago

Szymon-ek commented 3 months ago

Helo ! Setup following instruction form webside, new VSC , new PlatformIO and python 3.10

during compilation continues error:

Processing esp32cam_m5stack_unitcams3 (board: esp32cam_m5stack_unitcams3; platform: espressif32; framework: arduino) --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32cam_m5stack_unitcams3.html PLATFORM: Espressif 32 (2024.5.13) > ESP32-CAM M5STACK UNITCAMS3 HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

Environment Status Duration


esp32cam_m5stack_unitcams3 FAILED 00:00:17.593 ======================================================================================================================= 1 failed, 0 succeeded in 00:00:17.593 =======================================================================================================================

rzeldent commented 3 months ago

Hi Szymon,

Looks like something is not compiling in the IotWebConf templates. I retested it and compiles without any problems. Try to update the environment to the latest version using pio update... See https://docs.platformio.org/en/latest/core/userguide/pkg/cmd_update.html#cmd-pkg-update

Below the output of my compilation:

*  Executing task: C:\Users\rzeld\.platformio\penv\Scripts\platformio.exe run 

Processing esp32cam_m5stack_unitcams3 (board: esp32cam_m5stack_unitcams3; platform: espressif32; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32cam_m5stack_unitcams3.html
PLATFORM: Espressif 32 (6.7.0) > ESP32-CAM M5STACK UNITCAMS3
HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - framework-arduinoespressif32 @ 3.20016.0 (2.0.16) 
 - tool-esptoolpy @ 1.40501.0 (4.5.1) 
 - toolchain-riscv32-esp @ 8.4.0+2021r2-patch5 
 - toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 38 compatible libraries
Scanning dependencies...
Dependency Graph
|-- IotWebConf @ 3.2.1
|-- Micro-RTSP @ 0.1.6
|-- micro-moustache @ 1.0.1
|-- ESPmDNS @ 2.0.0
|-- RTSPServer @ 1.0.0
Building in release mode
prepare_file([".pio\build\esp32cam_m5stack_unitcams3\index.min.html.txt.o"], ["html\index.min.html"])
Converting .pio\build\esp32cam_m5stack_unitcams3\index.min.html.txt.o
revert_original_file([".pio\build\esp32cam_m5stack_unitcams3\index.min.html.txt.o"], ["html\index.min.html"])
Compiling .pio\build\esp32cam_m5stack_unitcams3\src\main.cpp.o
Building .pio\build\esp32cam_m5stack_unitcams3\bootloader.bin
Generating partitions .pio\build\esp32cam_m5stack_unitcams3\partitions.bin
esptool.py v4.5.1
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
Compiling .pio\build\esp32cam_m5stack_unitcams3\libba4\WiFi\WiFi.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libba4\WiFi\WiFiAP.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libba4\WiFi\WiFiClient.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libba4\WiFi\WiFiGeneric.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libba4\WiFi\WiFiMulti.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libba4\WiFi\WiFiSTA.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libba4\WiFi\WiFiScan.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libba4\WiFi\WiFiServer.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libba4\WiFi\WiFiUdp.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libad0\DNSServer\DNSServer.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libfcc\FS\FS.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libfcc\FS\vfs_api.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\lib3d8\WebServer\Parsing.cpp.o
Archiving .pio\build\esp32cam_m5stack_unitcams3\libba4\libWiFi.a
Archiving .pio\build\esp32cam_m5stack_unitcams3\libad0\libDNSServer.a
Compiling .pio\build\esp32cam_m5stack_unitcams3\lib3d8\WebServer\WebServer.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\lib3d8\WebServer\detail\mimetable.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\lib963\EEPROM\EEPROM.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\lib068\ESPmDNS\ESPmDNS.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libe63\IotWebConf\IotWebConf.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libe63\IotWebConf\IotWebConfMultipleWifi.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libe63\IotWebConf\IotWebConfOptionalGroup.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\libe63\IotWebConf\IotWebConfParameter.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\lib9ce\Micro-RTSP\CRtspSession.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\lib9ce\Micro-RTSP\CStreamer.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\lib9ce\Micro-RTSP\JPEGSamples.cpp.o
Archiving .pio\build\esp32cam_m5stack_unitcams3\libfcc\libFS.a
Compiling .pio\build\esp32cam_m5stack_unitcams3\lib9ce\Micro-RTSP\OV2640.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\lib9ce\Micro-RTSP\OV2640Streamer.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\lib9ce\Micro-RTSP\SimStreamer.cpp.o
Archiving .pio\build\esp32cam_m5stack_unitcams3\lib963\libEEPROM.a
Compiling .pio\build\esp32cam_m5stack_unitcams3\lib203\rtsp_server\rtsp_server.cpp.o
Archiving .pio\build\esp32cam_m5stack_unitcams3\lib3d8\libWebServer.a
Archiving .pio\build\esp32cam_m5stack_unitcams3\libe63\libIotWebConf.a
Archiving .pio\build\esp32cam_m5stack_unitcams3\lib068\libESPmDNS.a
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\Esp.cpp.o
Archiving .pio\build\esp32cam_m5stack_unitcams3\lib9ce\libMicro-RTSP.a
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\FirmwareMSC.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\FunctionalInterrupt.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\HWCDC.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\HardwareSerial.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\IPAddress.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\IPv6Address.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\MD5Builder.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\Print.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\Stream.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\StreamString.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\Tone.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\USB.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\USBCDC.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\USBMSC.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\WMath.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\WString.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\base64.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\cbuf.cpp.o
Archiving .pio\build\esp32cam_m5stack_unitcams3\lib203\librtsp_server.a
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-adc.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-bt.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-cpu.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-dac.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-gpio.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-i2c-slave.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-i2c.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-ledc.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-matrix.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-misc.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-psram.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-rgb-led.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-rmt.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-sigmadelta.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-spi.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-time.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-timer.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-tinyusb.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-touch.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\esp32-hal-uart.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\firmware_msc_fat.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\libb64\cdecode.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\libb64\cencode.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\main.cpp.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\stdlib_noniso.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\wiring_pulse.c.o
Compiling .pio\build\esp32cam_m5stack_unitcams3\FrameworkArduino\wiring_shift.c.o
Archiving .pio\build\esp32cam_m5stack_unitcams3\libFrameworkArduino.a
Linking .pio\build\esp32cam_m5stack_unitcams3\firmware.elf
Retrieving maximum program size .pio\build\esp32cam_m5stack_unitcams3\firmware.elf
Checking size .pio\build\esp32cam_m5stack_unitcams3\firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [===       ]  25.8% (used 84412 bytes from 327680 bytes)
Flash: [=====     ]  48.8% (used 960389 bytes from 1966080 bytes)
Building .pio\build\esp32cam_m5stack_unitcams3\firmware.bin
esptool.py v4.5.1
Creating esp32s3 image...
Merged 2 ELF sections
Successfully created esp32s3 image.
Szymon-ek commented 3 months ago

Hello !

Thanks for quick relay, My log below, but the question is , can some one compile all camera models from IA thinker till ttgo and drop somewhere bin files ? Personally I am interested on Unit CamS3 but other people can use other models , same way as Tasmota have bin files in OTA section ;-) Regards Szymon

Result of my update: PS C:\AA\esp32cam-rtsp> pio pkg update Resolving esp32cam_ai_thinker dependencies... Already up-to-date. Resolving esp32cam_espressif_esp_eye dependencies... Already up-to-date. Resolving esp32cam_espressif_esp32s2_cam_board dependencies... Resolving esp32cam_espressif_esp32s2_cam_header dependencies... Already up-to-date. Resolving esp32cam_espressif_esp32s3_cam_lcd dependencies... Already up-to-date. Resolving esp32cam_espressif_esp32s3_eye dependencies... Already up-to-date. Resolving esp32cam_freenove_wrover_kit dependencies... Already up-to-date. Resolving esp32cam_m5stack_camera_psram dependencies... Already up-to-date. Resolving esp32cam_m5stack_camera dependencies... Already up-to-date. Resolving esp32cam_m5stack_esp32cam dependencies... Already up-to-date. Resolving esp32cam_m5stack_unitcam dependencies... Already up-to-date. Resolving esp32cam_m5stack_unitcams3 dependencies... Already up-to-date. Resolving esp32cam_m5stack_wide dependencies... Already up-to-date. Resolving esp32cam_seeed_xiao_esp32s3_sense dependencies... Already up-to-date. Resolving esp32cam_ttgo_t_camera dependencies... Already up-to-date. Resolving esp32cam_ttgo_t_journal dependencies... Already up-to-date.

rzeldent commented 3 months ago

Hi,

They are part of a release. Take a look at: https://github.com/rzeldent/esp32cam-rtsp/releases under the Assets!

Szymon-ek commented 3 months ago

Hello !, Yes it is but not for S3 chip ;-((((((

Unexpected chip id in image. Expected 9 but value was 0. Is this image for a different chip model? A fatal error occurred: ESP32Cam RSTP firmware.bin is not an ESP32-S3 image. Use --force to flash anyway.

Can Some one do for ESP32 unit CAMS3 ??

Regards Szymon