Homepage Forums RetroPie Project GPIO Adapter, ControlBlock etc. Unable to 'make' PowerBlock service in OSMC

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #115419
    smartroad
    Participant

    Hay :)

    I am trying to get PowerBlock to work with my installation of OSMC. Following the instructions I got to the ‘make’ command and got hit with:

    cd src/powerblock && make all
    make[1]: Entering directory '/home/osmc/PowerBlock/src/powerblock'
    cd ../lib/jsoncpp/ && mkdir -p build/release
    cd ../lib/jsoncpp/build/release && cmake -DCMAKE_BUILD_TYPE=release -DJSONCPP_LIB_BUILD_SHARED=OFF -G "Unix Makefiles" ../..
    CMake Error at /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:107 (file):
      file Internal CMake error when trying to open file:
      /home/osmc/PowerBlock/src/lib/jsoncpp/build/release/CMakeFiles/3.0.2/CompilerIdC/CMakeCCompilerId.c
      for writing.
    Call Stack (most recent call first):
      /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:117 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
      /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
      /usr/share/cmake-3.0/Modules/CMakeDetermineCCompiler.cmake:108 (CMAKE_DETERMINE_COMPILER_ID)
      CMakeLists.txt:2 (PROJECT)
    
    CMake Error at /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:107 (file):
      file Internal CMake error when trying to open file:
      /home/osmc/PowerBlock/src/lib/jsoncpp/build/release/CMakeFiles/3.0.2/CompilerIdC/CMakeCCompilerId.c
      for writing.
    Call Stack (most recent call first):
      /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:117 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
      /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
      /usr/share/cmake-3.0/Modules/CMakeDetermineCCompiler.cmake:108 (CMAKE_DETERMINE_COMPILER_ID)
      CMakeLists.txt:2 (PROJECT)
    
    CMake Error at /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:107 (file):
      file Internal CMake error when trying to open file:
      /home/osmc/PowerBlock/src/lib/jsoncpp/build/release/CMakeFiles/3.0.2/CompilerIdC/CMakeCCompilerId.c
      for writing.
    Call Stack (most recent call first):
      /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:117 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
      /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
      /usr/share/cmake-3.0/Modules/CMakeDetermineCCompiler.cmake:108 (CMAKE_DETERMINE_COMPILER_ID)
      CMakeLists.txt:2 (PROJECT)
    
    -- The C compiler identification is unknown
    CMake Error at /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:107 (file):
      file Internal CMake error when trying to open file:
      /home/osmc/PowerBlock/src/lib/jsoncpp/build/release/CMakeFiles/3.0.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
      for writing.
    Call Stack (most recent call first):
      /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:117 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
      /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
      /usr/share/cmake-3.0/Modules/CMakeDetermineCXXCompiler.cmake:103 (CMAKE_DETERMINE_COMPILER_ID)
      CMakeLists.txt:2 (PROJECT)
    
    CMake Error at /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:107 (file):
      file Internal CMake error when trying to open file:
      /home/osmc/PowerBlock/src/lib/jsoncpp/build/release/CMakeFiles/3.0.2/CompilerIdCXX/CMakeCXXCompilerId.cpp
      for writing.
    Call Stack (most recent call first):
      /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:117 (CMAKE_DETERMINE_COMPILER_ID_WRITE)
      /usr/share/cmake-3.0/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
      /usr/share/cmake-3.0/Modules/CMakeDetermineCXXCompiler.cmake:103 (CMAKE_DETERMINE_COMPILER_ID)
      CMakeLists.txt:2 (PROJECT)
    
    -- The CXX compiler identification is unknown
    CMake Error at CMakeLists.txt:2 (PROJECT):
      No CMAKE_C_COMPILER could be found.
    
      Tell CMake where to find the compiler by setting either the environment
      variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
      the compiler, or to the compiler name if it is in the PATH.
    
    CMake Error at CMakeLists.txt:2 (PROJECT):
      No CMAKE_CXX_COMPILER could be found.
    
      Tell CMake where to find the compiler by setting either the environment
      variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
      to the compiler, or to the compiler name if it is in the PATH.
    
    -- Configuring incomplete, errors occurred!
    See also "/home/osmc/PowerBlock/src/lib/jsoncpp/build/release/CMakeFiles/CMakeOutput.log".
    See also "/home/osmc/PowerBlock/src/lib/jsoncpp/build/release/CMakeFiles/CMakeError.log".
    Makefile:27: recipe for target '../lib/jsoncpp/build/release/lib/libjsoncpp.a' failed
    make[1]: *** [../lib/jsoncpp/build/release/lib/libjsoncpp.a] Error 1
    make[1]: Leaving directory '/home/osmc/PowerBlock/src/powerblock'
    Makefile:16: recipe for target 'all' failed
    make: *** [all] Error 2

    tried sudo make and got:

    cd src/powerblock && make all
    make[1]: Entering directory '/home/osmc/PowerBlock/src/powerblock'
    cd ../lib/jsoncpp/ && mkdir -p build/release
    cd ../lib/jsoncpp/build/release && cmake -DCMAKE_BUILD_TYPE=release -DJSONCPP_LIB_BUILD_SHARED=OFF -G "Unix Makefiles" ../..
    -- The C compiler identification is unknown
    -- The CXX compiler identification is unknown
    CMake Error at CMakeLists.txt:2 (PROJECT):
      No CMAKE_C_COMPILER could be found.
    
      Tell CMake where to find the compiler by setting either the environment
      variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
      the compiler, or to the compiler name if it is in the PATH.
    
    CMake Error at CMakeLists.txt:2 (PROJECT):
      No CMAKE_CXX_COMPILER could be found.
    
      Tell CMake where to find the compiler by setting either the environment
      variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
      to the compiler, or to the compiler name if it is in the PATH.
    
    -- Configuring incomplete, errors occurred!
    See also "/home/osmc/PowerBlock/src/lib/jsoncpp/build/release/CMakeFiles/CMakeOutput.log".
    See also "/home/osmc/PowerBlock/src/lib/jsoncpp/build/release/CMakeFiles/CMakeError.log".
    Makefile:27: recipe for target '../lib/jsoncpp/build/release/lib/libjsoncpp.a' failed
    make[1]: *** [../lib/jsoncpp/build/release/lib/libjsoncpp.a] Error 1
    make[1]: Leaving directory '/home/osmc/PowerBlock/src/powerblock'
    Makefile:16: recipe for target 'all' failed
    make: *** [all] Error 2

    any idea what I have got wrong?

    #115659
    smartroad
    Participant

    Still can’t get it to make :( followed instructions to the letter but just fails each time :(

    #115710
    petrockblog
    Keymaster

    sounds like you downloaded the files as root or something first – should do it without sudo. make sure you have gcc/g++ installed

    #116094
    smartroad
    Participant

    So I deleted the powerblock directory totally and went back through the instructions. Still had the same issue :( Noticed it mentioned an error log file so have attached that. Seems like it is missing something, but I have done “sudo apt-get install -y cmake g++-4.9” which is what it asked for and it installed g++, said that cmake was already the up to date version.

    /PowerBlock$ make
    cd src/powerblock && make all
    make[1]: Entering directory '/home/osmc/PowerBlock/src/powerblock'
    cd ../lib/jsoncpp/ && mkdir -p build/release
    cd ../lib/jsoncpp/build/release && cmake -DCMAKE_BUILD_TYPE=release -DJSONCPP_LIB_BUILD_SHARED=OFF -G "Unix Makefiles" ../..
    -- The C compiler identification is unknown
    -- The CXX compiler identification is unknown
    CMake Error at CMakeLists.txt:2 (PROJECT):
      No CMAKE_C_COMPILER could be found.
    
      Tell CMake where to find the compiler by setting either the environment
      variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
      the compiler, or to the compiler name if it is in the PATH.
    
    CMake Error at CMakeLists.txt:2 (PROJECT):
      No CMAKE_CXX_COMPILER could be found.
    
      Tell CMake where to find the compiler by setting either the environment
      variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
      to the compiler, or to the compiler name if it is in the PATH.
    
    -- Configuring incomplete, errors occurred!
    See also "/home/osmc/PowerBlock/src/lib/jsoncpp/build/release/CMakeFiles/CMakeOutput.log".
    See also "/home/osmc/PowerBlock/src/lib/jsoncpp/build/release/CMakeFiles/CMakeError.log".
    Makefile:27: recipe for target '../lib/jsoncpp/build/release/lib/libjsoncpp.a' failed
    make[1]: *** [../lib/jsoncpp/build/release/lib/libjsoncpp.a] Error 1
    make[1]: Leaving directory '/home/osmc/PowerBlock/src/powerblock'
    Makefile:16: recipe for target 'all' failed
    make: *** [all] Error 2
    
    Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
    Compiler: CMAKE_C_COMPILER-NOTFOUND
    Build flags:
    Id flags:
    
    The output was:
    No such file or directory
    
    Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
    Compiler: CMAKE_C_COMPILER-NOTFOUND
    Build flags:
    Id flags: -c
    
    The output was:
    No such file or directory
    
    Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
    Compiler: CMAKE_C_COMPILER-NOTFOUND
    Build flags:
    Id flags: -Aa
    
    The output was:
    No such file or directory
    
    Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
    Compiler: CMAKE_CXX_COMPILER-NOTFOUND
    Build flags:
    Id flags:
    
    The output was:
    No such file or directory
    
    Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
    Compiler: CMAKE_CXX_COMPILER-NOTFOUND
    Build flags:
    Id flags: -c
    
    The output was:
    No such file or directory
    
    Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
    Compiler: CMAKE_C_COMPILER-NOTFOUND
    Build flags:
    Id flags:
    
    The output was:
    No such file or directory
    
    Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
    Compiler: CMAKE_C_COMPILER-NOTFOUND
    Build flags:
    Id flags: -c
    
    The output was:
    No such file or directory
    
    Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
    Compiler: CMAKE_C_COMPILER-NOTFOUND
    Build flags:
    Id flags: -Aa
    
    The output was:
    No such file or directory
    
    Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
    Compiler: CMAKE_CXX_COMPILER-NOTFOUND
    Build flags:
    Id flags:
    
    The output was:
    No such file or directory
    
    Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
    Compiler: CMAKE_CXX_COMPILER-NOTFOUND
    Build flags:
    Id flags: -c
    
    The output was:
    No such file or directory
    
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘GPIO Adapter, ControlBlock etc.’ is closed to new topics and replies.