libtorrent + boost:未定义的符号:_ZN5boost6random13random_deviceD1Ev

时间:2014-10-08 19:56:38

标签: python ubuntu boost libtorrent libtorrent-rasterbar

我尝试在py3.4 virtualenv中安装libtorrent和Python绑定:

./configure --enable-python-binding \  
--with-boost-libdir=/usr/lib/x86_64-linux-gnu/ \  
LDFLAGS="-L/usr/lib/python3.4/config-3.4m-x86_64-linux-gnu/" \ 
--with-boost-python=boost_python-py34 \  
--prefix=/pyenvs/p3 \  
--with-boost-random=libboost_random

但是有这个错误

In [1]: import libtorrent
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-ce6253f809d8> in <module>()
----> 1 import libtorrent

ImportError: /usr/lib/x86_64-linux-gnu/libtorrent-rasterbar.so.9: undefined symbol: _ZN5boost6random13random_deviceD1Ev

我在Ubuntu 14.04上安装了libboost1.55-all-dev 什么(确切地)会导致此错误?

0 个答案:

没有答案