Do I need a seperate boost_python lib for python 3?
If I already built against python2.7, do I need to build again against python 3? This is on Fedora 19 linux.
On 23.8.2013. 14:01, Neal Becker wrote:
If I already built against python2.7, do I need to build again against python 3? This is on Fedora 19 linux.
Yes. IIRC, the resulting library will be named (boost_)python3.
We do the following:
PREFIX=/usr/local
BOOST_LIBRARIES=python
PYTHON_MAJOR_VER=2.7
PYTHON_LOC=$PREFIX/python-2.7.3
./bootstrap.sh --prefix=${PREFIX} --with-libraries=${BOOST_LIBRARIES}
--with-python-version=${PYTHON_MAJOR_VER} --with-python-root=${PYTHON_LOC}
--with-python=${PYTHON_LOC}/bin/python
PREFIX=/usr/local
BOOST_LIBRARIES=python
PYTHON_MAJOR_VER=3.2
PYTHON_LOC=$PREFIX/python-3.2.3
./bootstrap.sh --prefix=${PREFIX} --with-libraries=${BOOST_LIBRARIES}
--with-python-version=${PYTHON_MAJOR_VER} --with-python-root=${PYTHON_LOC}
--with-python=${PYTHON_LOC}/bin/python
On 24 August 2013 03:26, Juraj Ivančić
On 23.8.2013. 14:01, Neal Becker wrote:
If I already built against python2.7, do I need to build again against python 3? This is on Fedora 19 linux.
Yes. IIRC, the resulting library will be named (boost_)python3.
______________________________**_________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/**mailman/listinfo.cgi/boost-**usershttp://lists.boost.org/mailman/listinfo.cgi/boost-users
Steve Lorimer wrote:
We do the following:
PREFIX=/usr/local BOOST_LIBRARIES=python PYTHON_MAJOR_VER=2.7 PYTHON_LOC=$PREFIX/python-2.7.3
./bootstrap.sh --prefix=${PREFIX} --with-libraries=${BOOST_LIBRARIES} --with-python-version=${PYTHON_MAJOR_VER} --with-python-root=${PYTHON_LOC} --with-python=${PYTHON_LOC}/bin/python
PREFIX=/usr/local BOOST_LIBRARIES=python PYTHON_MAJOR_VER=3.2 PYTHON_LOC=$PREFIX/python-3.2.3
./bootstrap.sh --prefix=${PREFIX} --with-libraries=${BOOST_LIBRARIES} --with-python-version=${PYTHON_MAJOR_VER} --with-python-root=${PYTHON_LOC} --with-python=${PYTHON_LOC}/bin/python
Do you put the resulting shared libs in 2 different locations?
On Sat, Aug 24, 2013 at 07:21:06AM -0400, Neal Becker wrote:
Steve Lorimer wrote:
We do the following:
PREFIX=/usr/local BOOST_LIBRARIES=python PYTHON_MAJOR_VER=2.7 PYTHON_LOC=$PREFIX/python-2.7.3
./bootstrap.sh --prefix=${PREFIX} --with-libraries=${BOOST_LIBRARIES} --with-python-version=${PYTHON_MAJOR_VER} --with-python-root=${PYTHON_LOC} --with-python=${PYTHON_LOC}/bin/python
PREFIX=/usr/local BOOST_LIBRARIES=python PYTHON_MAJOR_VER=3.2 PYTHON_LOC=$PREFIX/python-3.2.3
./bootstrap.sh --prefix=${PREFIX} --with-libraries=${BOOST_LIBRARIES} --with-python-version=${PYTHON_MAJOR_VER} --with-python-root=${PYTHON_LOC} --with-python=${PYTHON_LOC}/bin/python
Do you put the resulting shared libs in 2 different locations?
His prefix is the same, so they end up in the same tree. This is perfectly sane, as they have disjoint names: libboost_python3.a libboost_python3.so libboost_python3.so.1.54.0 libboost_python.a libboost_python.so libboost_python.so.1.54.0 -- Lars Viklund | zao@acc.umu.se
participants (4)
-
Juraj Ivančić
-
Lars Viklund
-
Neal Becker
-
Steve Lorimer