mickelson / sfml-pi

SFML on Linux without X11 using DRM/KMS (or dispmanx on RPi0-3)
Other
62 stars 26 forks source link

lots of errors for cmake ... libGLESv1_CM.so #2

Closed shiftleftplusone closed 4 years ago

shiftleftplusone commented 7 years ago

hello,

I am using g++ (GCC) 6.3.0, C++(14), on my Raspberry Pi 2 Raspbian GNU/Linux 8 (jessie) Linux RPi 4.4.38-v7+ #938 SMP Thu Dec 15

I followed your instructions and installed cmake: sudo apt-get install cmake libflac-dev libogg-dev libvorbis-dev libopenal-dev libjpeg8-dev libfreetype6-dev libudev-dev libraspberrypi-dev

and sfml-pi: sudo git clone https://github.com/mickelson/sfml-pi.git

but for the cmake cmd to build the sfml-library there are lots of errors:

cmake .. -DSFML_RPI=1 -DEGL_INCLUDE_DIR=/opt/vc/include -DEGL_LIBRARY=/opt/vc/lib/libEGL.so -DGLES_INCLUDE_DIR=/opt/vc/include -DGLES_LIBRARY=/opt/vc/lib/libGLESv1_CM.so . . .


cmake .. -DSFML_RPI=1 -DEGL_INCLUDE_DIR=/opt/vc/include -DEGL_LIBRARY=/opt/vc/lib/libEGL.so -DGLES_INCLUDE_DIR=/opt/vc/include -DGLES_LIBRARY=/opt/vc/lib/libGLESv1_CM.so
CMake Error at /usr/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:177 (file):
  file failed to open for writing (No such file or directory):

    /home/pi/sfml-pi/build/CMakeFiles/CMakeOutput.log
Call Stack (most recent call first):
  CMakeLists.txt:35 (project)

CMake Error: Could not open file for write in copy operation /home/pi/sfml-pi/build/CMakeFiles/3.6.2/CMakeSystem.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /usr/share/cmake-3.6/Modules/CMakeDetermineSystem.cmake:189 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:35 (project)

CMake Error at /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:141 (file):
  file problem creating directory:
  /home/pi/sfml-pi/build/CMakeFiles/3.6.2/CompilerIdC
Call Stack (most recent call first):
  /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:40 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/share/cmake-3.6/Modules/CMakeDetermineCCompiler.cmake:121 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:35 (project)

CMake Error at /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:141 (file):
  file problem creating directory:
  /home/pi/sfml-pi/build/CMakeFiles/3.6.2/CompilerIdC
Call Stack (most recent call first):
  /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:40 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/share/cmake-3.6/Modules/CMakeDetermineCCompiler.cmake:121 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:35 (project)

CMake Error at /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:141 (file):
  file problem creating directory:
  /home/pi/sfml-pi/build/CMakeFiles/3.6.2/CompilerIdC
Call Stack (most recent call first):
  /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:40 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/share/cmake-3.6/Modules/CMakeDetermineCCompiler.cmake:121 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:35 (project)

CMake Error at /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:141 (file):
  file problem creating directory:
  /home/pi/sfml-pi/build/CMakeFiles/3.6.2/CompilerIdC
Call Stack (most recent call first):
  /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:40 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/share/cmake-3.6/Modules/CMakeDetermineCCompiler.cmake:121 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:35 (project)

CMake Error at /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:642 (file):
  file failed to open for writing (No such file or directory):

    /home/pi/sfml-pi/build/CMakeFiles/CMakeError.log
Call Stack (most recent call first):
  /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:55 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  /usr/share/cmake-3.6/Modules/CMakeDetermineCCompiler.cmake:121 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:35 (project)

-- The C compiler identification is unknown
CMake Error: Could not open file for write in copy operation /home/pi/sfml-pi/build/CMakeFiles/3.6.2/CMakeCCompiler.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /usr/share/cmake-3.6/Modules/CMakeDetermineCCompiler.cmake:184 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:35 (project)

CMake Error: Could not find cmake module file: /home/pi/sfml-pi/build/CMakeFiles/3.6.2/CMakeCCompiler.cmake
CMake Error at /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:141 (file):
  file problem creating directory:
  /home/pi/sfml-pi/build/CMakeFiles/3.6.2/CompilerIdCXX
Call Stack (most recent call first):
  /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:40 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/share/cmake-3.6/Modules/CMakeDetermineCXXCompiler.cmake:113 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:35 (project)

CMake Error at /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:141 (file):
  file problem creating directory:
  /home/pi/sfml-pi/build/CMakeFiles/3.6.2/CompilerIdCXX
Call Stack (most recent call first):
  /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:40 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
  /usr/share/cmake-3.6/Modules/CMakeDetermineCXXCompiler.cmake:113 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:35 (project)

CMake Error at /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:642 (file):
  file failed to open for writing (No such file or directory):

    /home/pi/sfml-pi/build/CMakeFiles/CMakeError.log
Call Stack (most recent call first):
  /usr/share/cmake-3.6/Modules/CMakeDetermineCompilerId.cmake:55 (CMAKE_DETERMINE_COMPILER_ID_VENDOR)
  /usr/share/cmake-3.6/Modules/CMakeDetermineCXXCompiler.cmake:113 (CMAKE_DETERMINE_COMPILER_ID)
  CMakeLists.txt:35 (project)

-- The CXX compiler identification is unknown
CMake Error: Could not open file for write in copy operation /home/pi/sfml-pi/build/CMakeFiles/3.6.2/CMakeCXXCompiler.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /usr/share/cmake-3.6/Modules/CMakeDetermineCXXCompiler.cmake:179 (configure_file):
  configure_file Problem configuring file
Call Stack (most recent call first):
  CMakeLists.txt:35 (project)

CMake Error: Could not find cmake module file: /home/pi/sfml-pi/build/CMakeFiles/3.6.2/CMakeCXXCompiler.cmake
-- Check for working C compiler: /usr/bin/cc
CMake Error at /usr/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:35 (file):
  file failed to open for writing (No such file or directory):

    /home/pi/sfml-pi/build/CMakeFiles/CMakeTmp/testCCompiler.c
Call Stack (most recent call first):
  CMakeLists.txt:35 (project)

CMake Error at /usr/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:47 (try_compile):
  Unknown extension ".c" for file

    /home/pi/sfml-pi/build/CMakeFiles/CMakeTmp/testCCompiler.c

  try_compile() works only for enabled languages.  Currently these are:

    C CXX

  See project() command to enable other languages.
Call Stack (most recent call first):
  CMakeLists.txt:35 (project)

-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:58 (file):
  file failed to open for writing (No such file or directory):

    /home/pi/sfml-pi/build/CMakeFiles/CMakeError.log
Call Stack (most recent call first):
  CMakeLists.txt:35 (project)

CMake Error at /usr/share/cmake-3.6/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "/usr/bin/cc" is not able to compile a simple test program.

  It fails with the following output:

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:35 (project)

-- Configuring incomplete, errors occurred!
CMake Error: Cannot open file for write: /home/pi/sfml-pi/build/CMakeCache.txt.tmp
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. /home/pi/sfml-pi/build/CMakeCache.txt
CMake Error: : System Error: Permission denied
Merlinstail commented 7 years ago

@shiftleftplusone did you create build directory and cd into it?

I realize this issue is old, but did you resolve it?

shiftleftplusone commented 7 years ago

hello, thanks for your interest, but I dropped that a long time ago. Actually I still needed a simple lib to #include just for basic things like playwav(filename) and recwav(soundcardpath, filename). tbh, I also never used cmake before, not even makefile, just the Geany IDE with a couple of compile and build flags. I uninstalled cmake meanwhile completely, it's too weird to me. So I woud prefer something where cmake will not be needed at all.