retro-go icon indicating copy to clipboard operation
retro-go copied to clipboard

Crashing with doit esp32 devkit v1

Open SzaboPeterBence1 opened this issue 3 months ago • 4 comments

I want to install retro-go on a doit esp32 devkit v1 but it keeps crashing with errors, I already have my own target folder (maybe it's wrong), but somehow it always crashes during the build, so I'd like to ask for help.

I use 320x240 ILI9341 display.

SzaboPeterBence1 avatar Sep 06 '25 07:09 SzaboPeterBence1

The DOIT DEVIT V1 seems to use the ESP32-WROOM module which doesn't have enough RAM for retro-go. So even if you get it to build most emulators won't work.

But it should still build successfully, can you share the errors you're getting?

ducalex avatar Sep 06 '25 19:09 ducalex

[738/808] Building C object esp-idf/main/CMakeFiles/__idf_main.dir/updater.c.obj FAILED: esp-idf/main/CMakeFiles/__idf_main.dir/updater.c.obj ccache C:\Espressif\tools\xtensa-esp32-elf\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\bin\xtensa-esp32-elf-gcc.exe -DHAVE_CONFIG_H -DMBEDTLS_CONFIG_FILE="mbedtls/esp_config.h" -IC:/Users/Szabo/Desktop/Peterson/esp-gameboy/retro-go-master/launcher/build/config -IC:/Users/Szabo/Desktop/Peterson/esp-gameboy/retro-go-master/launcher/main -IC:/esp-idf-v4.4.8/components/newlib/platform_include -IC:/esp-idf-v4.4.8/components/freertos/include -IC:/esp-idf-v4.4.8/components/freertos/include/esp_additions/freertos -IC:/esp-idf-v4.4.8/components/freertos/port/xtensa/include -IC:/esp-idf-v4.4.8/components/freertos/include/esp_additions -IC:/esp-idf-v4.4.8/components/esp_hw_support/include -IC:/esp-idf-v4.4.8/components/esp_hw_support/include/soc -IC:/esp-idf-v4.4.8/components/esp_hw_support/include/soc/esp32 -IC:/esp-idf-v4.4.8/components/esp_hw_support/port/esp32/. -IC:/esp-idf-v4.4.8/components/esp_hw_support/port/esp32/private_include -IC:/esp-idf-v4.4.8/components/heap/include -IC:/esp-idf-v4.4.8/components/log/include -IC:/esp-idf-v4.4.8/components/lwip/include/apps -IC:/esp-idf-v4.4.8/components/lwip/include/apps/sntp -IC:/esp-idf-v4.4.8/components/lwip/lwip/src/include -IC:/esp-idf-v4.4.8/components/lwip/port/esp32/include -IC:/esp-idf-v4.4.8/components/lwip/port/esp32/include/arch -IC:/esp-idf-v4.4.8/components/soc/include -IC:/esp-idf-v4.4.8/components/soc/esp32/. -IC:/esp-idf-v4.4.8/components/soc/esp32/include -IC:/esp-idf-v4.4.8/components/hal/esp32/include -IC:/esp-idf-v4.4.8/components/hal/include -IC:/esp-idf-v4.4.8/components/hal/platform_port/include -IC:/esp-idf-v4.4.8/components/esp_rom/include -IC:/esp-idf-v4.4.8/components/esp_rom/include/esp32 -IC:/esp-idf-v4.4.8/components/esp_rom/esp32 -IC:/esp-idf-v4.4.8/components/esp_common/include -IC:/esp-idf-v4.4.8/components/esp_system/include -IC:/esp-idf-v4.4.8/components/esp_system/port/soc -IC:/esp-idf-v4.4.8/components/esp_system/port/public_compat -IC:/esp-idf-v4.4.8/components/esp32/include -IC:/esp-idf-v4.4.8/components/xtensa/include -IC:/esp-idf-v4.4.8/components/xtensa/esp32/include -IC:/esp-idf-v4.4.8/components/driver/include -IC:/esp-idf-v4.4.8/components/driver/esp32/include -IC:/esp-idf-v4.4.8/components/esp_pm/include -IC:/esp-idf-v4.4.8/components/esp_ringbuf/include -IC:/esp-idf-v4.4.8/components/efuse/include -IC:/esp-idf-v4.4.8/components/efuse/esp32/include -IC:/esp-idf-v4.4.8/components/vfs/include -IC:/esp-idf-v4.4.8/components/esp_wifi/include -IC:/esp-idf-v4.4.8/components/esp_event/include -IC:/esp-idf-v4.4.8/components/esp_netif/include -IC:/esp-idf-v4.4.8/components/esp_eth/include -IC:/esp-idf-v4.4.8/components/tcpip_adapter/include -IC:/esp-idf-v4.4.8/components/esp_phy/include -IC:/esp-idf-v4.4.8/components/esp_phy/esp32/include -IC:/esp-idf-v4.4.8/components/esp_ipc/include -IC:/esp-idf-v4.4.8/components/app_trace/include -IC:/esp-idf-v4.4.8/components/esp_timer/include -IC:/esp-idf-v4.4.8/components/mbedtls/port/include -IC:/esp-idf-v4.4.8/components/mbedtls/mbedtls/include -IC:/esp-idf-v4.4.8/components/mbedtls/esp_crt_bundle/include -IC:/esp-idf-v4.4.8/components/mbedtls/mbedtls/3rdparty/everest/include -IC:/esp-idf-v4.4.8/components/app_update/include -IC:/esp-idf-v4.4.8/components/spi_flash/include -IC:/esp-idf-v4.4.8/components/bootloader_support/include -IC:/esp-idf-v4.4.8/components/nvs_flash/include -IC:/esp-idf-v4.4.8/components/pthread/include -IC:/esp-idf-v4.4.8/components/esp_gdbstub/include -IC:/esp-idf-v4.4.8/components/esp_gdbstub/xtensa -IC:/esp-idf-v4.4.8/components/esp_gdbstub/esp32 -IC:/esp-idf-v4.4.8/components/espcoredump/include -IC:/esp-idf-v4.4.8/components/espcoredump/include/port/xtensa -IC:/esp-idf-v4.4.8/components/wpa_supplicant/include -IC:/esp-idf-v4.4.8/components/wpa_supplicant/port/include -IC:/esp-idf-v4.4.8/components/wpa_supplicant/esp_supplicant/include -IC:/esp-idf-v4.4.8/components/ieee802154/include -IC:/esp-idf-v4.4.8/components/console -IC:/esp-idf-v4.4.8/components/nghttp/port/include -IC:/esp-idf-v4.4.8/components/nghttp/nghttp2/lib/includes -IC:/esp-idf-v4.4.8/components/esp_http_server/include -IC:/esp-idf-v4.4.8/components/wear_levelling/include -IC:/esp-idf-v4.4.8/components/sdmmc/include -IC:/esp-idf-v4.4.8/components/fatfs/diskio -IC:/esp-idf-v4.4.8/components/fatfs/vfs -IC:/esp-idf-v4.4.8/components/fatfs/src -IC:/esp-idf-v4.4.8/components/esp_adc_cal/include -IC:/esp-idf-v4.4.8/components/json/cJSON -IC:/esp-idf-v4.4.8/components/esp-tls -IC:/esp-idf-v4.4.8/components/esp-tls/esp-tls-crypto -IC:/esp-idf-v4.4.8/components/tcp_transport/include -IC:/esp-idf-v4.4.8/components/esp_http_client/include -IC:/Users/Szabo/Desktop/Peterson/esp-gameboy/retro-go-master/components/retro-go -IC:/Users/Szabo/Desktop/Peterson/esp-gameboy/retro-go-master/components/retro-go/libs/netplay -IC:/Users/Szabo/Desktop/Peterson/esp-gameboy/retro-go-master/components/retro-go/libs/lodepng -mlongcalls -Wno-frame-address -ffunction-sections -fdata-sections -Wall -Werror=all -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wextra -Wno-unused-parameter -Wno-sign-compare -ggdb -Og -fmacro-prefix-map=C:/Users/Szabo/Desktop/Peterson/esp-gameboy/retro-go-master/launcher=. -fmacro-prefix-map=C:/esp-idf-v4.4.8=IDF -fstrict-volatile-bitfields -Wno-error=unused-but-set-variable -fno-jump-tables -fno-tree-switch-conversion -std=gnu99 -Wno-old-style-declaration -D_GNU_SOURCE -DIDF_VER="v4.4.8-dirty" -DESP_PLATFORM -D_POSIX_READER_WRITER_LOCKS -mfix-esp32-psram-cache-issue -D=1 -DRETRO_GO=1 -fjump-tables -ftree-switch-conversion -O2 -Wno-error=format -Wno-error=char-subscripts -MD -MT esp-idf/main/CMakeFiles/__idf_main.dir/updater.c.obj -MF esp-idf\main\CMakeFiles__idf_main.dir\updater.c.obj.d -o esp-idf/main/CMakeFiles/__idf_main.dir/updater.c.obj -c C:/Users/Szabo/Desktop/Peterson/esp-gameboy/retro-go-master/launcher/main/updater.c : error: macro names must be identifiers In file included from C:/Users/Szabo/Desktop/Peterson/esp-gameboy/retro-go-master/components/retro-go/rg_system.h:31, from C:/Users/Szabo/Desktop/Peterson/esp-gameboy/retro-go-master/launcher/main/updater.c:1: C:/Users/Szabo/Desktop/Peterson/esp-gameboy/retro-go-master/components/retro-go/rg_storage.h:21:15: error: 'RG_PATH_MAX' undeclared here (not in a function); did you mean 'RG_LANG_MAX'? char path[RG_PATH_MAX + 1]; ^~~~~~~~~~~ RG_LANG_MAX ninja: build stopped: subcommand failed. ninja failed with exit code 1

SzaboPeterBence1 avatar Sep 07 '25 13:09 SzaboPeterBence1

doit-esp32-devkit-v1.zip

here is the target folder I made, based on esp32s3-devkit-c

SzaboPeterBence1 avatar Sep 07 '25 13:09 SzaboPeterBence1

I don't understand how this error could occur, but you can try working around it by modifying rg_storage.h:

Change that line: char path[RG_PATH_MAX + 1]; to char path[256];

ducalex avatar Sep 13 '25 20:09 ducalex