Ubuntu16.04搭建boost

https://blog.csdn.net/mmLxfz/article/details/88842712

https://blog.csdn.net/xuehuafeiwu123/article/details/78611203

https://blog.csdn.net/dulingwen/article/details/90693392

以上三个是正常编译boost库得到libboost_python27版本  但是仍然没有libboost_numpy.so


https://blog.csdn.net/weixin_30251829/article/details/98834836

https://blog.csdn.net/weixin_41041772/article/details/91990082

这个可以得到libboost_python36版本  但是lib里又仅仅只有libboost_python.so和libboost_numpy.so 没有其他动态链接。

于是又重新指定路径通过方法一安装了/usr/boost下的lib文件,可以把需要的链接库复制下来


eigen3安装:conda install -c omnia eigen3

通过这个命令也安装不下来,于是参考了这个博客https://www.cnblogs.com/lihanwen/p/9928063.html


cmake . -DPYTHON_LIBRARY=/home/typhoonlee/anaconda3/lib/libpython3.6m.so -DPYTHON_INCLUDE_DIR=/home/typhoonlee/anaconda3/include/python3.6m -DBOOST_INCLUDEDIR=/usr/local/include -DEIGEN3_INCLUDE_DIR=$/usr/include/eigen3

cmake .. -DPYTHON_LIBRARY=/home/typhoonlee/anaconda3/lib/libpython3.6m.so -DPYTHON_INCLUDE_DIR=/home/typhoonlee/anaconda3/include/python3.6m -DBOOST_INCLUDEDIR=/usr/local/include -DEIGEN3_INCLUDE_DIR=/usr/include/eigen3

你可能感兴趣的:(Ubuntu16.04搭建boost)