Menu

#88 Boost linking issue

3.0
closed
nobody
2020-11-09
2020-04-03
Alex
No

If I compile Boost 65, 67 or 68 manually like this:

pip3 install https://files.pythonhosted.org/packages/07/08/a549ba8b061005bb629b76adc000f3caaaf881028b963c2e18f811c6edc1/numpy-1.18.2-cp36-cp36m-manylinux1_x86_64.whl
apt-get install -y build-essential python-dev python3-dev
mkdir -p ${INSTALLDIR}/Boost/build/
cd ${INSTALLDIR}/Boost/build/
wget --retry-connrefused https://dl.bintray.com/boostorg/release/${BOOST_VERSIONdots}/source/boost_${BOOST_VERSION}.tar.gz
tar xzf boost_${BOOST_VERSION}.tar.gz
rm boost_${BOOST_VERSION}.tar.gz
cd boost_${BOOST_VERSION}/

./bootstrap.sh --with-python=/usr/bin/python2 # https://stackoverflow.com/questions/28830653/build-boost-with-multiple-python-versions
./b2 install --with-python

./bootstrap.sh --with-python=/usr/bin/python3 --with-python-root=/usr
./b2 --with-python --clean
./b2 install --with-python

./bootstrap.sh --without-libraries=chrono,container,context,contract,coroutine,exception,fiber,graph,graph_parallel,locale,log,math,mpi,random,serialization,stacktrace,type_erasure,wave
./b2 --with-python --clean
./b2 install -j ${J}

AOFlagger 2.15 will not compile unless I do:
ln /usr/local/lib/libboost_python36.so.1.68.0 /usr/local/lib/libboost_python3.so
ln /usr/local/lib/libboost_numpy36.so.1.68.0 /usr/local/lib/libboost_numpy3.so

(Im not sure if this is something I should report, or usually it is user's responsibility to deal with such issues)

Discussion

  • André Offringa

    André Offringa - 2020-11-09

    This is fixed on Gitlab (by switching to Pybind11)

     
  • André Offringa

    André Offringa - 2020-11-09
    • status: open --> closed