cmake error during installation on Linux
antonsurv opened this issue ยท 7 comments
I try to install xc
on Linux Manjaro and I got this error. I'm confused with what packages that needed on arch based linux. Thank you.
[anton@anton-pc build-xc]$ cmake ../xc/src
CMake version is greater than 2.8.4
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.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
CMake Error at CMakeLists.txt:19 (INCLUDE):
INCLUDE could not find load file:
/home/anton/.xc_build/lcmd_dirs.cmake
-- lcmd project dir: /..
-- lcmd include dir:
-- lcmd lib dir:
-- xc project dir: /home/anton/build_xc/xc/
-- xc include dir: /home/anton/build_xc/xc/src/
-- xc lib dir: /home/anton/build_xc/xc/lib
-- The Fortran compiler identification is GNU 9.3.0
-- Check for working Fortran compiler: /usr/bin/gfortran
-- Check for working Fortran compiler: /usr/bin/gfortran - works
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Checking whether /usr/bin/gfortran supports Fortran 90
-- Checking whether /usr/bin/gfortran supports Fortran 90 - yes
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.so
-- Looking for XOpenDisplay in /usr/lib/libX11.so;/usr/lib/libXext.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
CMake Warning (dev) at /usr/share/cmake-3.17/Modules/FindOpenGL.cmake:305 (message):
Policy CMP0072 is not set: FindOpenGL prefers GLVND by default when
available. Run "cmake --help-policy CMP0072" for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
FindOpenGL found both a legacy GL library:
OPENGL_gl_LIBRARY: /usr/lib/libGL.so
and GLVND libraries for OpenGL and GLX:
OPENGL_opengl_LIBRARY: /usr/lib/libOpenGL.so
OPENGL_glx_LIBRARY: /usr/lib/libGLX.so
OpenGL_GL_PREFERENCE has not been set to "GLVND" or "LEGACY", so for
compatibility with CMake 3.10 and below the legacy GL library will be used.
Call Stack (most recent call first):
/home/anton/build_xc/xc/CMake/find_packages.cmake:2 (find_package)
CMakeLists.txt:62 (INCLUDE)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found OpenGL: /usr/lib/libOpenGL.so
-- Found GTK2_GTK: /usr/lib/libgtk-x11-2.0.so
CMake Error at /home/anton/build_xc/xc/CMake/find_packages.cmake:5 (find_package):
By not providing "FindCGAL.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "CGAL", but
CMake did not find one.
Could not find a package configuration file provided by "CGAL" with any of
the following names:
CGALConfig.cmake
cgal-config.cmake
Add the installation prefix of "CGAL" to CMAKE_PREFIX_PATH or set
"CGAL_DIR" to a directory containing one of the above files. If "CGAL"
provides a separate development package or SDK, be sure it has been
installed.
Call Stack (most recent call first):
CMakeLists.txt:62 (INCLUDE)
-- Configuring incomplete, errors occurred!
See also "/home/anton/build_xc/build-xc/CMakeFiles/CMakeOutput.log".
Hi.
It seems that you have not installed xc_utils yet.
The needed packages for Debian are here: packages_install_debian_stretch and for Ubuntu here: packages_install_ubuntu_bionic. Maybe you can figure out the package names for your distribution.
If you have still problems please let me know.
On the other hand we'll probably integrate the xc_utils package into XC in a near future. It doesn't make sense to have as separate repository anymore.
Sorry for the late reply Sir, I have been compiling XC
on Manjaro
, Ubuntu 19.04
and Lubuntu 18.04 LTS 32 bit VirtualBox
for this couple day ago, and it does not work. Thus, I try installing on Ubuntu 18.04 LTS
like the link your give to me (for Debian
and Ubuntu Bionic
) and I got no issue on it. It works like a charm. Thank you so much. You can close this issue.
I think my homework now is to find the dependencies compatibility on Archlinux
system based.
And sorry for my broken English.
Thank you. Don't hesitate to ask.
Hello Sir,
I manage to build Docker Image for my Linux Manjaro and other Linux system. I made docker images for xcfem at https://hub.docker.com/repository/docker/antonsurv/xcfem.
the source code of Dockerfile in my github (https://github.com/antonsurv/docker-antonsurv-xcfem).
Regards.
Wonderful! Thanks a lot!
Do you mind if I share those links in some social media (Twitter and LinkedIn)?
Yes Sir, sure.