OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) OSPi 2.1.7 build errors on CentOS 7.2.1511 for Rpi3

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #44491

    Dutchie30
    Participant

    Hi,

    I’m experiencing build errors when trying to build OSPi 2.1.7 on CentOS 7:


    [root@opensprinkler OpenSprinklerGen2]# ./build.sh ospi
    Building OpenSprinkler...
    main.cpp: In function ‘void push_message(byte, uint32_t, float, const char*)’:
    main.cpp:983:58: error: ‘dtostrf’ was not declared in this scope
    dtostrf(flow_last_gpm,5,2,postval+strlen(postval));
    ^
    main.cpp: In function ‘void write_log(byte, ulong)’:
    main.cpp:1228:60: error: ‘dtostrf’ was not declared in this scope
    dtostrf(flow_last_gpm,5,2,tmp_buffer+strlen(tmp_buffer));
    ^
    Done!

    Building 2.1.6 went without issues:


    [root@opensprinkler OpenSprinkler-Firmware-216]# ./build.sh ospi
    Building OpenSprinkler...
    Done!

    #44494

    Ray
    Keymaster

    Sorry, this was due to some last minute change that was not tested again on Linux. Please pull again from the repository and it should work now.

    #44495

    Dutchie30
    Participant

    Thanks Ray, looks to be working. Only thing is that doing git pull; ./build.sh ospi; systemctl restart opensprinkler seems to wipe out the config.

    Other than that, awesome job on OpenSprinkler, I’m really looking forward to working with it!

    #44497

    Samer
    Keymaster

    The configuration is modeled around Arduino and follows the same erase procedure on firmware change as the Arduino. This is why the configuration got cleared. Future upgrades will also perform the same reset, so please do backup your configuration before upgrading.

    #44498

    Dutchie30
    Participant

    Good to know Samer, thanks!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

OpenSprinkler Forums Hardware Questions OpenSprinkler Pi (OSPi) OSPi 2.1.7 build errors on CentOS 7.2.1511 for Rpi3