RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Could not successfully build powerblock - PowerBlock Driver (opt/retropie.../build/powerblock not found)

    Scheduled Pinned Locked Moved ControlBlock, PowerBlock & Co.
    powerblockretropie 4.4
    15 Posts 4 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • mituM
      mitu Global Moderator
      last edited by mitu

      The error

      [ 88%] 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
      
      

      indicates you have a wiringpi library compiled agains another system (Raspbian Buster ?). Did you install it manually or you modified your apt sources to include something else than the Raspbian Stretch repositories ?

      I've run the compilation on a RetroPie 4.4.x system and I didn't get the error you have during compilation of controlblock.

      1 Reply Last reply Reply Quote 0
      • M
        mikealves
        last edited by mikealves

        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

        mituM 1 Reply Last reply Reply Quote 0
        • mituM
          mitu Global Moderator @mikealves
          last edited by mitu

          @mikealves wiringpi is already installed on a RetroPie system, however installing it through apt-get is also ok - but you didn't answer my other question: did you add extra-repositories to your apt sources ?

          1 Reply Last reply Reply Quote 0
          • M
            mikealves
            last edited by mikealves

            @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!

            1 Reply Last reply Reply Quote 0
            • P
              petrockblog Global Moderator
              last edited by

              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.

              M 1 Reply Last reply Reply Quote 1
              • M
                mikealves @petrockblog
                last edited by

                @petrockblog

                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 $

                1 Reply Last reply Reply Quote 0
                • P
                  petrockblog Global Moderator
                  last edited by

                  Does it work if you run the quick installation command from https://github.com/petrockblog/PowerBlock#quick-installation?

                  S 1 Reply Last reply Reply Quote 0
                  • S
                    superpie3k @petrockblog
                    last edited by

                    @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.
                    
                    1 Reply Last reply Reply Quote 0
                    • S
                      superpie3k
                      last edited by

                      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.

                      M 1 Reply Last reply Reply Quote 0
                      • M
                        mikealves @superpie3k
                        last edited by

                        @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.

                        1 Reply Last reply Reply Quote 0
                        • P
                          petrockblog Global Moderator
                          last edited by

                          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.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post

                          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.