配置:错误:找不到CGAL库 [英] configure: error: CGAL library not found

查看:490
本文介绍了配置:错误:找不到CGAL库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的最终目标是让python软件包graph_tool在我的系统上运行,如果可能的话,还可以在ipynb上运行.我已经brew install graph-tool如此处所示,但这还不够.

My ultimate goal is to get python package graph_tool working on my system and also on ipynb if possible. I have already brew install graph-tool, as indicated here, but that's still insufficient.

因此,我遵循 Anaconda说明,并且我取得了不错的进展,直到找不到库.

So I follow Anaconda instructions here, and I make decent progress, until the CGAL Library could not be found.

注意:为了遵守Anaconda的说明,我安装了anaconda3并创建了一个新的conda环境(名为py36env)来conda安装所有必需的软件包(必须与python 3.6匹配的软件包)

Note: to comply with the Anaconda instructions, I installed anaconda3 and created a new conda environment (named py36env) to conda install all the required packages (packages that must also match with python 3.6)

整个./configure输出.下面是一个代码段:

The entire ./configure output. Below is a snippet:

(py36env) $ ./configure --prefix=/Users/tamtran/anaconda3/envs/py36env/ --with-python-module-path=/Users/tamtran/anaconda3/envs/py36env/lib/python3.6/site-packages --with-cgal=/Users/tamtran/anaconda3/envs/py36env/
.
.
checking whether CGAL is available in /Users/tamtran/anaconda3/envs/py36env/... no
configure: error: CGAL library not found.

整个config.log .下面是一个代码段:

The entire config.log. Below is a snippet:

configure:21200: checking whether CGAL is available in /Users/tamtran/anaconda3/envs/py36env/
configure:21236: g++ -std=gnu++14 -o conftest -fopenmp -O3 -fvisibility=default -fvisibility-inlines-hidden -Wno-deprecated -Wall -Wextra -ftemplate-backtrace-limit=0  -DNDEBUG  -I/Users/tamtran/anaconda3/envs/py36env//include -pthread -I/usr/local/include  -L/Users/tamtran/anaconda3/envs/py36env//lib -lCGAL -lCGAL_Core -lgmp -lboost_thread-mt -lpthread conftest.cpp -lgmp -lgmp  >&5
|       #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
|       #include <CGAL/convex_hull_2.h>
|       typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
|       CGAL::convex_hull_2(points.begin(),points.end(),std::back_inserter(result));
configure:21278: error: CGAL library not found.
CGAL_CPPFLAGS='-I/Users/tamtran/anaconda3/envs/py36env//include'
CGAL_FLAGS=''
CGAL_LDFLAGS='-L/Users/tamtran/anaconda3/envs/py36env//lib -lCGAL -lCGAL_Core -lgmp -lboost_thread-mt -lpthread'

注意:即使没有--with-cgal标记,也会发生相同的问题.同样重要的是(我认为)CGAL搜索目录位于py36env之内,因为其中存在与python3.6匹配的CGAL,而CGAL-python3.5位于conda根环境中.没有CGAL目录的./configure输出的唯一区别是:

Note: Even without the --with-cgal tag, the same issue occurs. It's also important (I think) that the CGAL search directory is within py36env because CGAL matching with python3.6 is in there, whereas CGAL-python3.5 is in conda root environment. The only differences of ./configure output without the CGAL directory are:

checking whether CGAL is available in /usr... no
checking whether CGAL is available in /usr/local... no
checking whether CGAL is available in /opt... no
checking whether CGAL is available in /opt/local... no

推荐答案

在Mac OS X上,您必须使用-lcgal(正在使用brew)

on mac os x You must use -lcgal (is using brew)

例如在fedora linux -lCGAL上

for example on fedora linux -lCGAL

这篇关于配置:错误:找不到CGAL库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆