Hi all,
I am new to gerardus, and I am trying to install it on the Ubuntu 14.04. I am following the instructions and everything seems OK until I got this:
== Detect external libraries ==
-- External libraries supported: GMP;GMPXX;MPFR;ZLIB;OpenGL;LEDA;MPFI;RS;RS3;OpenNL;TAUCS;Eigen3;BLAS;LAPACK;QGLViewer;ESBTL;Coin3D;NTL;IPE
-- Preconfiguring library: GMP ...
-- GMP has been preconfigured:
-- UseGMP-file:
-- GMP include: /home/qzhangas/Documents/gerardus/cpp/src/third-party/gmp-5.1.2
-- GMP libraries: /home/qzhangas/Documents/gerardus/cpp/src/third-party/gmp-5.1.2/output/lib/libgmp.so
-- GMP definitions:
-- WARNING: GMP found but could not compile print_GMP_version.cpp:
-- GMP_INCLUDE_DIR=/home/qzhangas/Documents/gerardus/cpp/src/third-party/gmp-5.1.2
-- GMP_LIBRARIES=/home/qzhangas/Documents/gerardus/cpp/src/third-party/gmp-5.1.2/output/lib/libgmp.so
-- GMP_LIBRARIES_DIR=/home/qzhangas/Documents/gerardus/cpp/src/third-party/gmp-5.1.2/output/lib
-- Change Dir: /home/qzhangas/Documents/gerardus/bin/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_d349d/fast"
/usr/bin/make -f CMakeFiles/cmTC_d349d.dir/build.make CMakeFiles/cmTC_d349d.dir/build
make[1]: Entering directory `/home/qzhangas/Documents/gerardus/bin/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_d349d.dir/print_GMP_version.cpp.o
/usr/bin/g++-4.7 -I/home/qzhangas/Documents/gerardus/cpp/src/third-party/gmp-5.1.2 -msse2 -frounding-math -msse2 -o CMakeFiles/cmTC_d349d.dir/print_GMP_version.cpp.o -c /home/qzhangas/Documents/gerardus/cpp/src/third-party/CGAL-4.2/config/support/print_GMP_version.cpp
/home/qzhangas/Documents/gerardus/cpp/src/third-party/CGAL-4.2/config/support/print_GMP_version.cpp:28:17: fatal error: gmp.h: No such file or directory
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_d349d.dir/print_GMP_version.cpp.o] Error 1
make[1]: Leaving directory `/home/qzhangas/Documents/gerardus/bin/CMakeFiles/CMakeTmp'
make: *** [cmTC_d349d/fast] Error 2
-- USING GMP_VERSION = 'unknown'
-- Preconfiguring library: MPFR ...
-- MPFR has been preconfigured:
-- UseMPFR-file:
-- MPFR include: /home/qzhangas/Documents/gerardus/cpp/src/third-party/mpfr-3.1.2/src
-- MPFR libraries: /home/qzhangas/Documents/gerardus/cpp/src/third-party/mpfr-3.1.2/output/lib/libmpfr.so
-- MPFR definitions:
-- WARNING: MPFR found but could not compile print_MPFR_version.cpp:
-- MPFR_INCLUDE_DIR=/home/qzhangas/Documents/gerardus/cpp/src/third-party/mpfr-3.1.2/src
-- MPFR_LIBRARIES=/home/qzhangas/Documents/gerardus/cpp/src/third-party/mpfr-3.1.2/output/lib/libmpfr.so
-- MPFR_LIBRARIES_DIR=/home/qzhangas/Documents/gerardus/cpp/src/third-party/mpfr-3.1.2/output/lib
-- Change Dir: /home/qzhangas/Documents/gerardus/bin/CMakeFiles/CMakeTmp
Run Build Command:"/usr/bin/make" "cmTC_0f0e1/fast"
/usr/bin/make -f CMakeFiles/cmTC_0f0e1.dir/build.make CMakeFiles/cmTC_0f0e1.dir/build
make[1]: Entering directory `/home/qzhangas/Documents/gerardus/bin/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_0f0e1.dir/print_MPFR_version.cpp.o
/usr/bin/g++-4.7 -I/home/qzhangas/Documents/gerardus/cpp/src/third-party/mpfr-3.1.2/src -I/home/qzhangas/Documents/gerardus/cpp/src/third-party/gmp-5.1.2 -msse2 -frounding-math -msse2 -o CMakeFiles/cmTC_0f0e1.dir/print_MPFR_version.cpp.o -c /home/qzhangas/Documents/gerardus/cpp/src/third-party/CGAL-4.2/config/support/print_MPFR_version.cpp
In file included from /home/qzhangas/Documents/gerardus/cpp/src/third-party/CGAL-4.2/config/support/print_MPFR_version.cpp:28:0:
/home/qzhangas/Documents/gerardus/cpp/src/third-party/mpfr-3.1.2/src/mpfr.h:39:18: fatal error: gmp.h: No such file or directory
compilation terminated.
make[1]: *** [CMakeFiles/cmTC_0f0e1.dir/print_MPFR_version.cpp.o] Error 1
make[1]: Leaving directory `/home/qzhangas/Documents/gerardus/bin/CMakeFiles/CMakeTmp'
make: *** [cmTC_0f0e1/fast] Error 2
-- USING MPFR_VERSION = 'unknown'
-- USING BOOST_VERSION = '1.49.0'
== Detect external libraries (DONE) ==
== Write compiler_config.h ==
CMake Warning (dev) at cpp/src/third-party/CGAL-4.2/CMakeLists.txt:656 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like "CGAL_CFG_DENORMALS_COMPILE_BUG" will no longer be
dereferenced when the policy is set to NEW. Since the policy is not set
the OLD behavior will be used.
This warning is for project developers. Use -Wno-dev to suppress it.
== Write compiler_config.h (DONE) ==
== Generating build files ==
Configuring libCGAL
-- Requested component: MPFR
-- Requested component: GMP
CMake Warning (dev) at cpp/src/third-party/CGAL-4.2/src/CMakeLists.txt:51 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The LOCATION property should not be read from target "CGAL". Use the
target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.
Call Stack (most recent call first):
cpp/src/third-party/CGAL-4.2/src/CGAL/CMakeLists.txt:11 (collect_cgal_library)
This warning is for project developers. Use -Wno-dev to suppress it.
libCGAL is configured
-- Sources for CGAL component library 'CGAL_ImageIO/CMakeLists.txt' detected
CMake Error at cpp/src/third-party/CGAL-4.2/src/CMakeLists.txt:81 (add_subdirectory):
add_subdirectory given source
"/home/qzhangas/Documents/gerardus/cpp/src/third-party/CGAL-4.2/src/CGAL_ImageIO/CMakeLists.txt"
which is not an existing directory.
Call Stack (most recent call first):
cpp/src/third-party/CGAL-4.2/src/CMakeLists.txt:139 (configure_component)
-- Sources for CGAL component library 'CGAL_Qt3/CMakeLists.txt' detected
CMake Error at cpp/src/third-party/CGAL-4.2/src/CMakeLists.txt:81 (add_subdirectory):
add_subdirectory given source
"/home/qzhangas/Documents/gerardus/cpp/src/third-party/CGAL-4.2/src/CGAL_Qt3/CMakeLists.txt"
which is not an existing directory.
Call Stack (most recent call first):
cpp/src/third-party/CGAL-4.2/src/CMakeLists.txt:139 (configure_component)
-- Sources for CGAL component library 'CGAL_Core/CMakeLists.txt' detected
CMake Error at cpp/src/third-party/CGAL-4.2/src/CMakeLists.txt:81 (add_subdirectory):
add_subdirectory given source
"/home/qzhangas/Documents/gerardus/cpp/src/third-party/CGAL-4.2/src/CGAL_Core/CMakeLists.txt"
which is not an existing directory.
Call Stack (most recent call first):
cpp/src/third-party/CGAL-4.2/src/CMakeLists.txt:139 (configure_component)
-- Sources for CGAL component library 'CGAL_Qt4/CMakeLists.txt' detected
CMake Error at cpp/src/third-party/CGAL-4.2/src/CMakeLists.txt:81 (add_subdirectory):
add_subdirectory given source
"/home/qzhangas/Documents/gerardus/cpp/src/third-party/CGAL-4.2/src/CGAL_Qt4/CMakeLists.txt"
which is not an existing directory.
Call Stack (most recent call first):
cpp/src/third-party/CGAL-4.2/src/CMakeLists.txt:139 (configure_component)
-- Sources for CGAL component libraries 'CGAL_Core;CGAL_Core/CMakeLists.txt;CGAL_ImageIO;CGAL_ImageIO/CMakeLists.txt;CGAL_Qt3;CGAL_Qt3/CMakeLists.txt;CGAL_Qt4;CGAL_Qt4/CMakeLists.txt' detected
== Generating build files (DONE) ==
-- Matlab function vmu2png.m already compiled. Skipping compilation.
-- Configuring incomplete, errors occurred!
I've no idea how to solve it. Thanks a lot for your help.
Thanks,
Chloe