Could not successfully build powerblock - PowerBlock Driver (opt/retropie.../build/powerblock not found)
-
I installed wiringpi from here:
http://wiringpi.com/download-and-install/
I installed it this way:
To update or install on a Raspbian-Lite system:
sudo apt-get install wiringpi
-
@mikealves
wiringpi
is already installed on a RetroPie system, however installing it throughapt-get
is also ok - but you didn't answer my other question: did you add extra-repositories to yourapt
sources ? -
@mitu said in Could not successfully build powerblock - PowerBlock Driver (opt/retropie.../build/powerblock not found):
Raspbian Buster
Hey. I just followed the instructions on the WiringPi site and wound up with this.
100%] Installing service.
[....] Starting powerblock (via systemctl): powerblock.service.
[100%] Built target installservice
/home/pi/PowerBlock
[SUCCESS] The PowerBlock driver binary is installed
[SUCCESS] The PowerBlock service is running
You can find the configuration file at /etc/powerblockconfig.cfg.Now it works fine. Thank you for your help. This noob wouldn't have figured without your help. Thanks so much for everything!
-
Glad to hear that!
Just in case, I have just updated the ControlBlock and PowerBlock modules such that wiringpi gets installed as APT packages as part go the module installation process. -
I had to reinstall RetroPie (long story). Now I am getting this error when I try to reinstall PowerBlockService.
/home/pi/PowerBlock/src/powerblock/PowerBlock.cpp:24:22: fatal error: plog/Log.h: No such file or directory
#include <plog/Log.h>
^
compilation terminated.
src/powerblock/CMakeFiles/powerblock-app.dir/build.make:62: recipe for target 'src/powerblock/CMakeFiles/powerblock-app.dir/PowerBlock.cpp.o' failed
make[2]: *** [src/powerblock/CMakeFiles/powerblock-app.dir/PowerBlock.cpp.o] Error 1
CMakeFiles/Makefile2:514: recipe for target 'src/powerblock/CMakeFiles/powerblock-app.dir/all' failed
make[1]: *** [src/powerblock/CMakeFiles/powerblock-app.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
pi@retropie:~/PowerBlock/build $ -
Does it work if you run the quick installation command from https://github.com/petrockblog/PowerBlock#quick-installation?
-
@petrockblog said in Could not successfully build powerblock - PowerBlock Driver (opt/retropie.../build/powerblock not found):
Does it work if you run the quick installation command from https://github.com/petrockblog/PowerBlock#quick-installation?
That one does not work for me, build stops with
[ 64%] Linking CXX executable powerblock /usr/lib/gcc/arm-linux-gnueabihf/6/../../../libwiringPi.so: undefined reference to `fcntl@GLIBC_2.28' collect2: error: ld returned 1 exit status CMakeFiles/powerblock.dir/build.make:97: die Regel für Ziel „powerblock“ scheiterte make[2]: *** [powerblock] Fehler 1 CMakeFiles/Makefile2:68: die Regel für Ziel „CMakeFiles/powerblock.dir/all“ scheiterte make[1]: *** [CMakeFiles/powerblock.dir/all] Fehler 2 Makefile:127: die Regel für Ziel „all“ scheiterte make: *** [all] Fehler 2 Error during building binary [ 23%] Built target jsoncpp_lib_static [ 52%] Built target powerblock-app [ 58%] Linking CXX executable powerblock /usr/lib/gcc/arm-linux-gnueabihf/6/../../../libwiringPi.so: undefined reference to `fcntl@GLIBC_2.28' collect2: error: ld returned 1 exit status CMakeFiles/powerblock.dir/build.make:97: die Regel für Ziel „powerblock“ scheiterte make[2]: *** [powerblock] Fehler 1 CMakeFiles/Makefile2:68: die Regel für Ziel „CMakeFiles/powerblock.dir/all“ scheiterte make[1]: *** [CMakeFiles/powerblock.dir/all] Fehler 2 Makefile:127: die Regel für Ziel „all“ scheiterte make: *** [all] Fehler 2 Error during installation of binary Scanning dependencies of target installservice [100%] Installing service. [ ok ] Starting powerblock (via systemctl): powerblock.service. [100%] Built target installservice /home/pi/PowerBlock [SUCCESS] The PowerBlock driver binary is installed [ERROR] The PowerBlock service is not running You can find the configuration file at /etc/powerblockconfig.cfg.
-
Had to install
wiringpi
manually, and to execute steps from https://github.com/petrockblog/PowerBlock manually. Seems to be a version mismatch with librarywiringpi
. -
@superpie3k Thanks for your responses. I was away on vacation and only just got back to this. I had the same experience as above. "Had to install wiringpi manually, and to execute steps from https://github.com/petrockblog/PowerBlock manually. Seems to be a version mismatch with library wiringpi." But I got it working now.
-
For future note: I removed the dependency to WiringPi now. Please see also https://retropie.org.uk/forum/topic/23328/powerblock-driver-quick-installation-fails/5.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.