libtorrent version (or branch): libtorrent-1.0.10
boost : 1.6.2
platform/architecture: Linux Centos7 x86_64
compiler and compiler version: gcc-4.8.5
hi,
my question is how to built for python3.5.2 ?
bjam -j4 libtorrent-link=static boost-link=static python=3.5 stage_module unusefull
could you write a tutorial for it please? thanks a lot~
that command line is exactly how you would build for python. you run that out of the bindings/python directory, and since you link statically against boost you may need to have the boost (source) package available at BOOST_ROOT, and you may have to add boost=source
you may also need to add a using python statement in your user-config.jam for boost-build to know where to pick up the python headers and libraries. As an example, this is what I have in my user-config.jam on macOS
using python : 3.5 : /usr/local/bin/python3 : /usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/include/python3.5m : /usr/local/Cellar/python3/3.5.1/Frameworks/Python.framework/Versions/3.5/lib/python3.5/config-3.5m ;
as well as the system python
using python : 2.7 : /usr/bin/python : /usr/include/python2.7 : /usr/lib ;
thank you for your help And i finish build libtorrent.so by command "bjam -j4 dht=on iconv=on libtorrent-link=static boost-link=static python=3.5 stage_module boost=source"
note: i update my boost to 1.6.3 so everthing is fine!
however , i got a new problem :(
` >>import libtorrent
_frozen_importlib:222: RuntimeWarning: to-Python converter for boost::shared_ptr
mybe it's because of boost version.
try building with "deprecated-functions=off". I have that problem on mac too, and I don't fully understand it
@donitry does deprecated-functions=off solve your issue?
RuntimeWarning issue: #1217
Then we could close this as dublicate
Most helpful comment
Then we could close this as dublicate