hmmmm...having problems completeting this, when I get to having to put:
cmake -G "Unix Makefiles"
I end up with the following error list:
-- The C compiler identification is GNU 7.5.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /home/david/Downloads/glfwsource/glfw/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_52099/fast"
/usr/bin/make -f CMakeFiles/cmTC_52099.dir/build.make CMakeFiles/cmTC_52099.dir/build
make[1]: Entering directory '/home/david/Downloads/glfwsource/glfw/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_52099.dir/testCCompiler.c.o
/usr/bin/cc -o CMakeFiles/cmTC_52099.dir/testCCompiler.c.o -c /home/david/Downloads/glfwsource/glfw/CMakeFiles/CMakeTmp/testCCompiler.c
Linking C executable cmTC_52099
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_52099.dir/link.txt --verbose=1
/usr/bin/cc -rdynamic CMakeFiles/cmTC_52099.dir/testCCompiler.c.o -o cmTC_52099
/usr/bin/ld: cannot find Scrt1.o: No such file or directory
/usr/bin/ld: cannot find crti.o: No such file or directory
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_52099.dir/build.make:97: recipe for target 'cmTC_52099' failed
make[1]: *** [cmTC_52099] Error 1
make[1]: Leaving directory '/home/david/Downloads/glfwsource/glfw/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_52099/fast' failed
make: *** [cmTC_52099/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "/home/david/Downloads/glfwsource/glfw/CMakeFiles/CMakeOutput.log".
See also "/home/david/Downloads/glfwsource/glfw/CMakeFiles/CMakeError.log".
even though I followed every step!
Dont know if that means i dont have a compiler or what, will it help if i type the old ...
sudo apt-get install build-essential
??
EDIT** tried that and it did get further,but still errored with:
david@david-Latitude-E6230:~/Downloads/glfwsource/glfw$ cmake -G "Unix Makefiles"
-- The C compiler identification is GNU 7.5.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
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Using X11 for window creation
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/x86_64-linux-gnu/libX11.so
CMake Error at CMakeLists.txt:157 (message):
RandR headers not found; install libxrandr development package
-- Configuring incomplete, errors occurred!
See also "/home/david/Downloads/glfwsource/glfw/CMakeFiles/CMakeOutput.log".
See also "/home/david/Downloads/glfwsource/glfw/CMakeFiles/CMakeError.log".
Edit** ok solved that with:
sudo apt-get install xorg-dev libglu1-mesa-dev
This is being a pain as I thought ,might aswell keep posting progress for others to benefit..hopefully this is the last problem!
Right, got things up to changing the paths to the libs in the makefile within Kdevelop, obviously I have done it wrong: here is a screenshot
I had created a folder in my home directory called App_Game_Kit_Libs...
Hail to the king, baby!