简体   繁体   English

使用我的Boost Python安装进行PyVlFeat

[英]Using my Installation of Boost Python for PyVlFeat

I am trying to install PyVlFeat and the installation is failing with exactly this issue mentioned here. 我正在尝试安装PyVlFeat,并且安装完全失败,出现了此处提到的此问题。 pyvlfeat error during installation: /usr/bin/ld: cannot find -lboost_python-mt-py26 安装期间pyvlfeat错误:/ usr / bin / ld:找不到-lboost_python-mt-py26

As per the answer mentioned there, I need to change the reference of "-lboost_python-mt-py26" to the correct version of Boost Python I have on my system. 按照那里提到的答案,我需要将对“ -lboost_python-mt-py26”的引用更改为系统上具有的Boost Python的正确版本。 I am on ubuntu 14.04 and I tried to detect the version of my boost python by using this command "ls /usr/lib/libboost_python*" 我在ubuntu 14.04上,尝试通过使用以下命令“ ls / usr / lib / libboost_python *”来检测boost python的版本

I don't seem to have any libraries with a similar name there. 我似乎那里没有类似名称的库。 However, I have installed Boost Python using this command "sudo apt-get install libboost-all-dev" as mentioned here. 但是,我已经使用此命令“ sudo apt-get install libboost-all-dev”安装了Boost Python,如此处所述。 https://stackoverflow.com/questions/25891667/boost-undefined-reference-ubuntu-14-04-boost-1-54 https://stackoverflow.com/questions/25891667/boost-undefined-reference-ubuntu-14-04-boost-1-54

Since Boost Python is already there, how should I use it correctly to compile PyVlFeat. 由于Boost Python已经存在,我应该如何正确使用它来编译PyVlFeat。

The -mt suffix had been removed from Boost Libraries. -mt后缀已从Boost库中删除。 The installed Boost libraries are multi-threading safe. 已安装的Boost库是多线程安全的。

Changing the reference to "-lboost_python-py27" (Removing -mt suffix and using proper version of python will solve the problem. 更改对“ -lboost_python-py27”的引用(删除-mt后缀并使用适当版本的python将解决此问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM