I'm totally inexperienced in cmake source compiling , and in fact to c/cpp coding as well .
(I did a lot of Pascal for both win & linux and dealt with Deb packaging issues via some alternatives ).
I cloned the flightgear and simgear repos from SF by running :
git clone https://git.code.sf.net/p/flightgear/flightgear flightgear-flightgear
git clone https://git.code.sf.net/p/flightgear/simgear flightgear-simgear
and run in the simgear clone :
- Code: Select all
mkdir build-sg
cd build-sg
cmake -D CMAKE_INSTALL_PREFIX:PATH="$prefix" ~/Documents/fgsrc/flightgear-simgear
the latter command failed with the following output :
- Code: Select all
-- CMAKE Build type:
-- Setting build type to 'Debug' as none was specified.
-- The C compiler identification is GNU 5.4.0
-- The CXX compiler identification is GNU 5.4.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
-- version is 2017 dot 1 dot 0
-- Library installation directory: lib
-- 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
-- Boost version: 1.58.0
-- SimGear mode: NORMAL
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY OPENGL_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.5/Modules/FindOpenGL.cmake:172 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:206 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/x/Documents/fgsrc/CMakeFiles/CMakeOutput.log".
See also "/home/x/Documents/fgsrc/CMakeFiles/CMakeError.log".
It looks like it's searching for Open-GL symbols, lib paths or may be a someOpenGLpackage-dev (no clue!!).
So how to solve the issue?
thanks in advance ,
Yanes Bechir