Installation Problem

288 views
Skip to first unread message

Qing Zhang

unread,
Apr 29, 2016, 6:06:10 AM4/29/16
to gerardu...@googlegroups.com
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

Ramón Casero Cañas

unread,
Apr 29, 2016, 6:09:12 AM4/29/16
to Gerardus Users Mailing List
Hi Chloe,

Thanks for reporting this. First of all, what do you need from Gerardus? If you just need Matlab functions, you don't need to build the project.

Best regards,

Ramon.

--
--
To post: gerardu...@googlegroups.com
To unsubscribe: gerardus-user...@googlegroups.com
More options: http://groups.google.com/group/gerardus-users?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups "gerardus-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gerardus-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Dr. Ramón Casero Cañas

Institute of Biomedical Engineering
Department of Engineering Science, University of Oxford
Old Road Campus Research Building, Headington 
Oxford 
OX3 7DQ
UK

tlf         +44 (0) 1865 617716
twitter   @Ramon_Casero
web      http://www.cs.ox.ac.uk/people/Ramon.CaseroCanas/

Chloe

unread,
Apr 29, 2016, 8:19:52 AM4/29/16
to gerardus-users
Hi Ramon,

Thank you for your reply. Actually, I was going to use the Matlab functions labmathmorph and mm_opening at first, but it turns out that they need the itk_imfilter function, which is required to be built. So I'd like to build the project. Am I missing some steps?

Thanks,
Chloe

Ramón Casero Cañas

unread,
May 26, 2016, 9:20:53 PM5/26/16
to Gerardus Users Mailing List
Sorry for the slow reply. I have pushed an update to CMakeLists.txt, and have updated the build instructions here:


Did you get all the dependencies and followed the build instructions?

It builds for me on ubuntu trusty if I clone the project and then configure, build and install. Try with a fresh start.

Best regards,

Ramon.

Reply all
Reply to author
Forward
0 new messages