idolpx / meatloaf-specialty

A Commodore IEC serial multi-device emulator
GNU General Public License v3.0
27 stars 12 forks source link

Building FS image fails on Windows #19

Open d3viant opened 6 months ago

d3viant commented 6 months ago

On Windows 11, build and upload goes fine but attempting to build or upload the FS image results in this error:

Building in debug mode Building FS image from 'C:\C:\Users\User\Documents\PlatformIO\Projects\meatloaf-specialty\data\BUILD_IEC' directory to .pio\build\lolin-d32-pro\spiffs.bin error: can't read source directory *** [.pio\build\lolin-d32-pro\spiffs.bin] Error 1

Notice the "C:\C:\" part? I can't figure out where that is, but pretty sure that's it.

idolpx commented 6 months ago

Update your platformio.ini from the platformio.ini.sample file and you should be good to go. :)

d3viant commented 6 months ago

Nope. Still the same error. After I read your reply, I thought, "I did," but I followed your directions anyway: I performed a git pull from origin main today, then I deleted my platform.ini, and renamed the sample to "platform.ini" and built and uploaded again, but get exact same error as two days ago on Upload Filesystem Image: I'm on the Discord btw, should I just use the chat?

Processing lolin-d32-pro (board: esp32-16mb; platform: espressif32@6.4.0; framework: espidf)

Verbose mode can be enabled via -v, --verbose option Automatic versioning disabled CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-16mb.html PLATFORM: Espressif 32 (6.4.0) > Meatloaf v1 HARDWARE: ESP32 240MHz, 4.31MB RAM, 16MB Flash DEBUG: Current (ftdi) On-board (ftdi) External (cmsis-dap, esp-bridge, 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


lolin-d32-pro FAILED 00:00:25.802 =============================================== 1 failed, 0 succeeded in 00:00:25.802 ===============================================

mozzwald commented 6 months ago

@d3viant

the problem is related to this line in platformio.ini: https://github.com/idolpx/meatloaf-specialty/blob/915158e5870ed8bb81bb3419aff64ffc25a6484f/platformio.ini.sample#L59

try removing the beginning slash. if that doesnt work, hardcode the direct path the the data dir as it resides on your system

idolpx commented 6 months ago

Maybe try just... this works on osx. I will test on windows later today.

data_dir = data/${meatloaf.build_platform}