OpenSprinkler Forums OpenSprinkler Unified Firmware Trouble Compiling 2.2.1(1)

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #82044

    slick
    Participant

    Hi all,
    I have been able to download and compile 2.1.9 in the past.
    I’m having trouble with 2.2.1(1).

    First questions: Is there a min version required for vscode and platformio?

    I’m using a Linux VM,
    VS code 1.74.2
    Platformio v3.3.3

    2nd question: (Assuming the above versions should be OK)
    I’ve downloaded the code opened VSCode, waited for platformio to do its thing, and hit the checkmark at the bottom of the vscode window to do a build.
    I get several warnings and finally an error.
    Below are some of them:

  • OpenSprinkler.cpp: In static member function ‘static void OpenSprinkler::switch_remotestation(RemoteOTCStationData*, bool, uint16_t)’:
    OpenSprinkler.cpp:2136:6: warning: unused variable ‘x’ [-Wunused-variable]
    2136 | int x = send_http_request(DEFAULT_OTC_SERVER_APP, DEFAULT_OTC_PORT_APP, p, remote_http_callback, true);
    | ^
    OpenSprinkler.cpp: In static member function ‘static void OpenSprinkler::detect_expanders()’:
    OpenSprinkler.cpp:3157:26: warning: deleting object of polymorphic class type ‘IOEXP’ which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor]
    3157 | if(expanders[i]!=NULL) delete expanders[i];
  • mqtt.cpp: In static member function ‘static int OSMqtt::_init()’:
    mqtt.cpp:474:21: warning: deleting object of polymorphic class type ‘PubSubClient’ which has non-virtual destructor might cause undefined behavior [-Wdelete-non-virtual-dtor]
    474 | if (mqtt_client) { delete mqtt_client; mqtt_client = 0; }…
  • opensprinkler_server.cpp:519:27: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=]
    519 | snprintf(tbuf2+1, 3, “%d”, bid);
  • In file included from .pio/libdeps/sanguino_atmega1284p/UIPEthernet/utility/mempool_conf.h:5:0,
    from .pio/libdeps/sanguino_atmega1284p/UIPEthernet/utility/mempool.h:28,
    from .pio/libdeps/sanguino_atmega1284p/UIPEthernet/utility/Enc28J60Network.h:28,
    from .pio/libdeps/sanguino_atmega1284p/UIPEthernet/UIPEthernet.h:35,
    from .pio/libdeps/sanguino_atmega1284p/UIPEthernet/UIPUdp.cpp:20:
    .pio/libdeps/sanguino_atmega1284p/UIPEthernet/utility/uipopt.h:97:4: warning: #warning “Endianness configured automaticaly.” [-Wcpp]
    #warning “Endianness configured automatically.”
  • Compiling .pio/build/linux/src/I2CRTC.o
    In file included from EMailSender.cpp:35:
    EMailSender.h:43:10: fatal error: WProgram.h: No such file or directory
  • Compiling .pio/build/linux/src/I2CRTC.o
    In file included from EMailSender.cpp:35:
    EMailSender.h:43:10: fatal error: WProgram.h: No such file or directory
  • Any suggestions on what I’m doing wrong?
    I’ve tried with the zip file of the code and also cloned the repo directly (master)

    Thanks for your help, I appreciate it.
    Brian

#82045

slick
Participant

Wait, It may have actually worked. I see a .elf file and .bin file gets created, despite the warnings.
The errors occur after the bin file is created.

I’m assuming everything is actually working; if not, I’ll post back later, but thought leaving this post may be helpful to others.

*** [.pio/build/demo/src/EMailSender.o] Error 1
Linking .pio/build/d1_mini/firmware.elf
Retrieving maximum program size .pio/build/d1_mini/firmware.elf
Checking size .pio/build/d1_mini/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM:   [=====     ]  49.0% (used 40116 bytes from 81920 bytes)
Flash: [=====     ]  54.6% (used 569785 bytes from 1044464 bytes)
Building .pio/build/d1_mini/firmware.bin
Creating BIN file ".pio/build/d1_mini/firmware.bin" using "/home/linuxlite/.platformio/packages/framework-arduinoespressif8266/bootloaders/eboot/eboot.elf" and ".pio/build/d1_mini/firmware.elf"
===================================================== [SUCCESS] Took 89.34 seconds =====================================================

====================================================== [FAILED] Took 0.67 seconds ======================================================

Environment           Status    Duration
--------------------  --------  ------------
d1_mini               SUCCESS   00:01:29.338
sanguino_atmega1284p  SUCCESS   00:00:14.022
linux                 FAILED    00:00:00.946
demo                  FAILED    00:00:00.668
================================================= 2 failed, 2 succeeded in 00:01:44.974 =================================================
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums OpenSprinkler Unified Firmware Trouble Compiling 2.2.1(1)