OpenSprinkler › Forums › OpenSprinkler Unified Firmware › OSPi 2.1.9 build errors › Reply To: OSPi 2.1.9 build errors
October 5, 2019 at 7:50 pm
#62829
Dutchie30
Participant
It’s the option to do a “quiet” build:
# head -n 11 build.sh
#!/bin/bash
while getopts ":s" opt; do
case $opt in
s)
SILENT=true
command shift
;;
esac
done
echo "Building OpenSprinkler..."
It fails without -s too:
# ./build.sh ospi
Building OpenSprinkler...
weather.cpp: In function ‘void getweather_callback(char*)’:
weather.cpp:55:31: error: ‘atoi’ was not declared in this scope
wt_errCode = atoi(tmp_buffer);
^
weather.cpp:61:22: error: ‘atoi’ was not declared in this scope
v = atoi(tmp_buffer);
^
weather.cpp:71:22: error: ‘atoi’ was not declared in this scope
v = atoi(tmp_buffer);
^
weather.cpp:80:22: error: ‘atoi’ was not declared in this scope
v = atoi(tmp_buffer);
^
weather.cpp:89:31: error: ‘atol’ was not declared in this scope
uint32_t l = atol(tmp_buffer);
^
weather.cpp:98:22: error: ‘atoi’ was not declared in this scope
v = atoi(tmp_buffer);
^
weather.cpp:110:22: error: ‘atoi’ was not declared in this scope
v = atoi(tmp_buffer);
^
Done!