centos7.2 1511 安装CGAL4-7

版权声明:本文为博主newston原创文章,允许转载,但转载必须保留原创链接。 https://blog.csdn.net/newston/article/details/78677708

centos7.2 1511 安装CGAL4-7

CGAL(The Computational Geometry Algorithms Library)
在centos7.2安装使用CGAL4.7,最新的版本为CGAL4-11。因为4-11需要CMake3.11以上,而centos7.2里CMake的版本为2.8.x,已经是sudo yum install cmake最新的了,所以就使用了CGAL4-7(此版本可以满足项目需要~!~!)。安装时使用root权限在线。

  • 下载安装CGAL4-7过程:
    (1)下载CGAL4-7
    cgal-releases-CGAL-4.7.tar.gz(Source code (tar.gz))
    (2) 解压压缩包,进入cgal-releases-CGAL-4.7目录
    cmake .
    问题:缺少GMP
    (3)安装GMPgmp-6.1.2.tar.bz2
    cd gmp-6.1.2/
    ./configure
    make
    make install
    问题:缺少MPFR
    (4)安装MPFR
    cd mpfr-3.1.6/
    ./configure
    make
    make install
    问题:缺少BOOST环境
    (5)yum安装boost
    yum install boost
    yum install boost-devel
    yum install boost-doc

  • 安装结

         make完成后会打印出详细的版本信息,有些依赖没有安装,基本算法已可以满足需求。
    
  • 参考资料

CGAL官网

猜你喜欢

转载自blog.csdn.net/newston/article/details/78677708