libboost_python.so链接错误(ONIPY)

时间:2011-10-15 00:32:59

标签: python boost wrapper kinect openni

我正在尝试在ubuntu 11.10上安装ONIPY。我正在使用python 2.7。修改后(我用python2.7替换python2.6)makefile并安装它我无法导入包装器库。

ERROR:

>>> import OpenNIPythonWrapper

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib/pymodules/python2.7/OpenNIPythonWrapper.so: undefined symbol: _ZNK5boost6python7objects21py_function_impl_base9max_arityEv

1 个答案:

答案 0 :(得分:0)

我在makefile上尝试修改后修复了它。所以变化如下......

之前:

$(TARGET): $(OBJ)
    $(CXX) -fPIC -shared -Wl,--export-dynamic $(LIBS) -o $@ $^ 

在:

$(TARGET): $(OBJ)
    $(CXX) -fPIC -shared -Wl,-soname,OpenNIPythonWrapper.so -o $@ $^ $(LIBS)