Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

PowerBlock will not instal on 4.5.1



  • Hi there,
    I have a fresh install of RetroPie 4.5.1 on a Pi 3, and I am trying to install PowerBlock, both with the quick installation and the manual installation, but they both are not working. I feel like pulling my hair out. I have manually updated wiringpi but that didn't help either. I have looked and looked but can't find any more info.

    This is what I get when I try and use the quick install code:

    pi@retropie:~ $ wget -O - https://raw.githubusercontent.com/petrockblog/PowerBlock/master/install.sh | sudo bash
    --2019-08-21 09:35:36-- https://raw.githubusercontent.com/petrockblog/PowerBlock/master/install.sh
    Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.28.133
    Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.28.133|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 2358 (2.3K) [text/plain]
    Saving to: ‘STDOUT’

    •                             100%[===========================================================>]   2.30K  --.-KB/s    in 0s      
      

    2019-08-21 09:35:36 (8.19 MB/s) - written to stdout [2358/2358]

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package dot is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package 'dot' has no installation candidate
    Error during installation of APT packages
    bash: line 12: pushd: /temp: No such file or directory
    --2019-08-21 09:35:44-- https://project-downloads.drogon.net/wiringpi-latest.deb
    Resolving project-downloads.drogon.net (project-downloads.drogon.net)... 188.246.205.22, 2a03:9800:10:7b::2
    Connecting to project-downloads.drogon.net (project-downloads.drogon.net)|188.246.205.22|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 52260 (51K) [application/x-debian-package]
    Saving to: ‘wiringpi-latest.deb’

    wiringpi-latest.deb 100%[===========================================================>] 51.04K 82.7KB/s in 0.6s

    2019-08-21 09:35:46 (82.7 KB/s) - ‘wiringpi-latest.deb’ saved [52260/52260]

    (Reading database ... 85810 files and directories currently installed.)
    Preparing to unpack wiringpi-latest.deb ...
    Unpacking wiringpi (2.52) over (2.52) ...
    Setting up wiringpi (2.52) ...
    Processing triggers for man-db (2.7.6.1-2) ...
    bash: line 15: popd: directory stack empty
    Cloning into 'PowerBlock'...
    remote: Enumerating objects: 49, done.
    remote: Counting objects: 100% (49/49), done.
    remote: Compressing objects: 100% (38/38), done.
    remote: Total 853 (delta 19), reused 29 (delta 11), pack-reused 804
    Receiving objects: 100% (853/853), 2.51 MiB | 1.02 MiB/s, done.
    Resolving deltas: 100% (287/287), done.
    Submodule 'src/lib/plog' (https://github.com/SergiusTheBest/plog.git) registered for path 'src/lib/plog'
    Cloning into '/home/pi/PowerBlock/src/lib/plog'...
    remote: Enumerating objects: 36, done.
    remote: Counting objects: 100% (36/36), done.
    remote: Compressing objects: 100% (21/21), done.
    remote: Total 2366 (delta 13), reused 24 (delta 9), pack-reused 2330
    Receiving objects: 100% (2366/2366), 359.00 KiB | 335.00 KiB/s, done.
    Resolving deltas: 100% (1356/1356), done.
    Submodule path 'src/lib/plog': checked out 'a248b2f9cb0755d6912a5b5e4e402a4921b3e978'
    /home/pi/PowerBlock/build /home/pi/PowerBlock
    -- The C compiler identification is GNU 6.3.0
    -- The CXX compiler identification is GNU 6.3.0
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- JsonCpp Version: 1.7.7
    -- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.13", minimum required is "2.6")
    -- Found Doxygen: /usr/bin/doxygen (found version "1.8.13")
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/pi/PowerBlock/build
    Scanning dependencies of target jsoncpp_lib_static
    [ 5%] Building CXX object src/lib/jsoncpp/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_reader.cpp.o
    [ 11%] Building CXX object src/lib/jsoncpp/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_value.cpp.o
    In file included from /usr/include/c++/6/map:60:0,
    from /home/pi/PowerBlock/src/lib/jsoncpp/include/json/value.h:17,
    from /home/pi/PowerBlock/src/lib/jsoncpp/src/lib_json/json_value.cpp:8:
    /usr/include/c++/6/bits/stl_tree.h: In member function ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::_M_emplace_hint_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Args&& ...) [with _Args = {const std::piecewise_construct_t&, std::tuple<const Json::Value::CZString&>, std::tuple<>}; _Key = Json::Value::CZString; _Val = std::pair<const Json::Value::CZString, Json::Value>; _KeyOfValue = std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >; _Compare = std::lessJson::Value::CZString; _Alloc = std::allocator<std::pair<const Json::Value::CZString, Json::Value> >]’:
    /usr/include/c++/6/bits/stl_tree.h:2193:7: note: parameter passing for argument of type ‘std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::lessJson::Value::CZString, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const Json::Value::CZString, Json::Value> >}’ will change in GCC 7.1
    _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/include/c++/6/bits/stl_tree.h:2193:7: note: parameter passing for argument of type ‘std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::lessJson::Value::CZString, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const Json::Value::CZString, Json::Value> >}’ will change in GCC 7.1
    /usr/include/c++/6/bits/stl_tree.h: In function ‘std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::iterator std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::M_insert_unique(std::_Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::const_iterator, _Arg&&, _NodeGen&) [with _Arg = std::pair<const Json::Value::CZString, Json::Value>&; _NodeGen = std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::lessJson::Value::CZString, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::_Alloc_node; _Key = Json::Value::CZString; _Val = std::pair<const Json::Value::CZString, Json::Value>; _KeyOfValue = std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >; _Compare = std::lessJson::Value::CZString; _Alloc = std::allocator<std::pair<const Json::Value::CZString, Json::Value> >]’:
    /usr/include/c++/6/bits/stl_tree.h:1989:7: note: parameter passing for argument of type ‘std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::lessJson::Value::CZString, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const Json::Value::CZString, Json::Value> >}’ will change in GCC 7.1
    _Rb_tree<_Key, _Val, _KeyOfValue, _Compare, _Alloc>::
    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/include/c++/6/bits/stl_tree.h: In member function ‘Json::Value& Json::Value::operator’:
    /usr/include/c++/6/bits/stl_tree.h:950:65: note: parameter passing for argument of type ‘std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::lessJson::Value::CZString, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const Json::Value::CZString, Json::Value> >}’ will change in GCC 7.1
    return M_insert_unique(__pos, std::forward<_Arg>(__x), __an);
    ^
    In file included from /usr/include/c++/6/map:61:0,
    from /home/pi/PowerBlock/src/lib/jsoncpp/include/json/value.h:17,
    from /home/pi/PowerBlock/src/lib/jsoncpp/src/lib_json/json_value.cpp:8:
    /usr/include/c++/6/bits/stl_map.h: In member function ‘bool Json::Value::removeIndex(Json::Value::ArrayIndex, Json::Value*)’:
    /usr/include/c++/6/bits/stl_map.h:483:4: note: parameter passing for argument of type ‘std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::lessJson::Value::CZString, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const Json::Value::CZString, Json::Value> >}’ will change in GCC 7.1
    __i = _M_t._M_emplace_hint_unique(__i, std::piecewise_construct,
    ^~~
    In file included from /usr/include/c++/6/map:60:0,
    from /home/pi/PowerBlock/src/lib/jsoncpp/include/json/value.h:17,
    from /home/pi/PowerBlock/src/lib/jsoncpp/src/lib_json/json_value.cpp:8:
    /usr/include/c++/6/bits/stl_tree.h: In member function ‘Json::Value& Json::Value::resolveReference(const char*)’:
    /usr/include/c++/6/bits/stl_tree.h:950:65: note: parameter passing for argument of type ‘std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::lessJson::Value::CZString, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const Json::Value::CZString, Json::Value> >}’ will change in GCC 7.1
    return M_insert_unique(__pos, std::forward<_Arg>(__x), __an);
    ^
    /usr/include/c++/6/bits/stl_tree.h: In member function ‘Json::Value& Json::Value::resolveReference(const char*, const char*)’:
    /usr/include/c++/6/bits/stl_tree.h:950:65: note: parameter passing for argument of type ‘std::_Rb_tree<Json::Value::CZString, std::pair<const Json::Value::CZString, Json::Value>, std::_Select1st<std::pair<const Json::Value::CZString, Json::Value> >, std::lessJson::Value::CZString, std::allocator<std::pair<const Json::Value::CZString, Json::Value> > >::const_iterator {aka std::_Rb_tree_const_iterator<std::pair<const Json::Value::CZString, Json::Value> >}’ will change in GCC 7.1
    return M_insert_unique(__pos, std::forward<_Arg>(__x), __an);
    ^
    [ 17%] Building CXX object src/lib/jsoncpp/src/lib_json/CMakeFiles/jsoncpp_lib_static.dir/json_writer.cpp.o
    [ 23%] Linking CXX static library libjsoncpp.a
    [ 23%] Built target jsoncpp_lib_static
    Scanning dependencies of target powerblock-app
    [ 29%] Building CXX object src/powerblock/CMakeFiles/powerblock-app.dir/PowerBlock.cpp.o
    [ 35%] Building CXX object src/powerblock/CMakeFiles/powerblock-app.dir/PowerSwitch.cpp.o
    [ 41%] Building CXX object src/powerblock/CMakeFiles/powerblock-app.dir/GPIO.cpp.o
    [ 47%] Building CXX object src/powerblock/CMakeFiles/powerblock-app.dir/PowerBlockConfiguration.cpp.o
    [ 52%] Linking CXX static library libpowerblock-app.a
    [ 52%] Built target powerblock-app
    Scanning dependencies of target powerblock
    [ 58%] Building CXX object CMakeFiles/powerblock.dir/src/powerblock/main.cpp.o
    [ 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: recipe for target 'powerblock' failed make[2]: *** [powerblock] Error 1 CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/powerblock.dir/all' failed make[1]: *** [CMakeFiles/powerblock.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 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 tofcntl@GLIBC_2.28'
    collect2: error: ld returned 1 exit status
    CMakeFiles/powerblock.dir/build.make:97: recipe for target 'powerblock' failed
    make[2]: *** [powerblock] Error 1
    CMakeFiles/Makefile2:68: recipe for target 'CMakeFiles/powerblock.dir/all' failed
    make[1]: *** [CMakeFiles/powerblock.dir/all] Error 2
    Makefile:127: recipe for target 'all' failed
    make: *** [all] Error 2
    Error during installation of binary
    Scanning dependencies of target installservice
    [100%] Installing service.
    [100%] Built target installservice
    /home/pi/PowerBlock
    [ERROR] The PowerBlock driver binary is not installed
    [ERROR] The PowerBlock service is not running
    You can find the configuration file at /etc/powerblockconfig.cfg.

    Any help would be greatly appreciated.


  • Global Moderator


Log in to reply
 

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.