在Mac OS X 10.10优胜美地上使用Dionysus构建/制作问题

时间:2015-06-18 22:36:42

标签: python c++ macos serialization boost

我遵循了从http://www.mrzv.org/software/dionysus/get-build-install.html

制作/建立Dionysus的说明

从没有任何东西的全新电脑, 我使用port来安装python27,cmake,boost,mercurial和其他一些软件包。 在终端我然后做了

hg clone http://hg.mrzv.org/Dionysus/
cd Dionysus
hg up tip
mkdir build
cd build
cmake ..
make

当终端正在运行make时,它有以下错误:

  [  1%] Built target bottleneck-distance
  [  3%] Building CXX object  
 examples/alphashapes/CMakeFiles/alphashapes2d.dir/alphashapes2d.o
 In file included from   
/Users/pavan/Desktop/Dionysus/examples/alphashapes/alphashapes2d.cpp:3:
In file included from   
/Users/pavan/Desktop/Dionysus/examples/alphashapes/alphashapes2d.h:12:
In file included from   
/Users/pavan/Desktop/Dionysus/include/topology/simplex.h:221:

In file included from   
/Users/pavan/Desktop/Dionysus/include/topology/simplex.hpp:2:

In file included from /opt/local/include/boost/serialization/set.hpp:26: 

/opt/local/include/boost/serialization/detail/stack_constructor.hpp:54:31:     error: 
  no member named 'load_construct_data_adl' in namespace
  'boost::serialization'
    boost::serialization::load_construct_data_adl(
    ~~~~~~~~~~~~~~~~~~~~~~^
1 error generated.
make[2]: ***         [examples/alphashapes/CMakeFiles/alphashapes2d.dir/alphashapes2d.o] 
Error 1
make[1]: *** [examples/alphashapes/CMakeFiles/alphashapes2d.dir/all] 
Error 2
make: *** [all] Error 2

到目前为止,我已经尝试了所有我能想到的,重新安装所有boost和python依赖项(从全新的工厂重置计算机启动)。当涉及到C相关的任何内容时,我都是一个完整的菜鸟,所以任何指针都会非常受欢迎。

另外,我在我的ubuntu加载的电脑上尝试了相同的安装并且它有效,所以我想知道端口安装功能是否会产生一些问题?

2 个答案:

答案 0 :(得分:1)

偶然发现了同样的问题。也使用OSX 10.10。几天在macports和brew之间切换和操作库没有成功......

今天我终于用这种方式编译了Dionysus:

brew unlink boost
brew tap homebrew/versions
brew install boost155
brew link boost155

然而,不得不看看整个库树(boost,cgal,swig,cgal-swig-bindings,dionysus)是否构建良好..

答案 1 :(得分:1)

我有类似的问题。我只是删除了显式命名空间(在stack_constructor.hpp中):

load_construct_data_adl

而不是

boost::serialization::load_construct_data_adl

这解决了我的错误。