Had a brief power flicker today and suddenly my setup no longer worked. Spent a couple of hours working on it and finally just gave up and decided to wipe/reinstall. Ran the install script several times with the same compile error on gpio.cpp as follows:
I made a couple of changes by hand and so far I'm 12:53 into the build without errors (it usually threw and error at about 3 mins before).
First I had to remove libgpiod-dev and download/build/install it manually. The version that is currently installed just doesn't work.
Second, the wiring-pi library is no longer downloading and installing, so I had to download/build/install it manually as well.
I'm currently 14:29 into the build and will update if it fails again.
Code:
[INFO] Using forced low-memory build profile for Raspberry Pi Zero 2 W Rev 1.0 (JOBS=1, UNITY disabled).
[ERROR] Building Robo-Tank apps failed. (04:07)
Recent details:
cpp/gpio.cpp:126:25: error: ‘struct gpio::{anonymous}::LineHandle’ has no member named ‘req’
126 | if (!it->second.req) return false;
| ^~~
cpp/gpio.cpp:127:9: error: ‘gpiod_line_value’ was not declared in this scope; did you mean ‘gpiod_line_name’?
127 | gpiod_line_value v = value ? GPIOD_LINE_VALUE_ACTIVE : GPIOD_LINE_VALUE_INACTIVE;
| ^~~~~~~~~~~~~~~~
| gpiod_line_name
cpp/gpio.cpp:128:56: error: ‘struct gpio::{anonymous}::LineHandle’ has no member named ‘req’
128 | return gpiod_line_request_set_value(it->second.req, static_cast<unsigned int>(lineOffset), v) == 0;
| ^~~
cpp/gpio.cpp:128:100: error: ‘v’ was not declared in this scope
128 | return gpiod_line_request_set_value(it->second.req, static_cast<unsigned int>(lineOffset), v) == 0;
| ^
cpp/gpio.cpp:128:16: error: ‘gpiod_line_request_set_value’ was not declared in this scope; did you mean ‘gpiod_line_request_output’?
128 | return gpiod_line_request_set_value(it->second.req, static_cast<unsigned int>(lineOffset), v) == 0;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| gpiod_line_request_output
make[1]: *** [Makefile:167: cpp/gpio.o] Error 1
make[1]: Leaving directory '/var/www/html'
make: *** [Makefile:108: build-clean] Error 2
[ERROR] Full log: /tmp/robotank_install.log
I made a couple of changes by hand and so far I'm 12:53 into the build without errors (it usually threw and error at about 3 mins before).
First I had to remove libgpiod-dev and download/build/install it manually. The version that is currently installed just doesn't work.
Second, the wiring-pi library is no longer downloading and installing, so I had to download/build/install it manually as well.
I'm currently 14:29 into the build and will update if it fails again.