Userdocs

Results 97 comments of Userdocs

I built libtorrent and qbittorrent in `CMAKE_BUILD_TYPE="Debug"` and it added lots of stuff to the backtrace.

Maybe it's this. ``` subprocess.CalledProcessError: Command '['b2', 'boost-link=static', 'libtorrent-link=static', 'crypto=openssl', 'deprecated-functions=on', 'variant=release', 'address-model=64', 'python=3.8', 'libtorrent-python=on', 'python-install-path=/wrkdirs/usr/ports/net-p2p/py-libtorrent-rasterbar/work-py38/libtorrent-1.2.16/bindings/python/build/lib.freebsd-13.0-STABLE-amd64-3.8', 'install_module']' returned non-zero exit status 1. *** Error code 1 ``` Since `fpic=on` is...

i saw this if it helps. ``` /home/spksrc/deluge-strangelovian-4/spksrc/spk/include/boost/multiprec/deluge/work-x64-6.1/install//var/packages/deluge/targetision/detail/number_base.hpp:36:2: error: #error "This library now requires a C++11 or later compiler - this message was generated as a result of BOOST_NO_CXX11_HDR_TYPE_TRAITS being...

Does this help as it has the steps to compile libtorrent. https://github.com/qbittorrent/qBittorrent/wiki/Compilation:-macOS-(x86_64,-arm64,-cross-compilation) https://github.com/qbittorrent/qBittorrent/wiki/Compilation:-macOS I think the first link might be easier to use though

The osx workflow they use does not seem that complicated https://github.com/qbittorrent/qBittorrent/blob/master/.github/workflows/ci_macos.yaml But they are using homebrew for dependencies https://github.com/qbittorrent/qBittorrent/blob/master/.github/workflows/ci_macos.yaml#L32-L37 With the core dependencies installed it should be pretty easy to...

I think this is the problem. > recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output https://www.libtorrent.org/building.html#build-features With `b2` you would use `fpic=on` when...

I don't know about that that but if you used the flag when building it's in the build path like `/cxxstd-14-iso/fpic/link-static/` Try it and see if it works.

According to the docs here https://www.libtorrent.org/python_binding.html I think it's like this, maybe @AllSeeingEyeTolledEweSew can confirm, since I only build it using b2 `python setup.py build_ext --b2-args="fpic=on"`

If the Op has already built `libtorrent.so` and installed it to a system path will it need to be rebuilt with `fpic` for this to work when creating the binding?...

Then maybe do this and use the debug to see if there is more helpful info? > > Same with `libtorrent-python-pic=on`. > > `libtorrent-python-pic=on` isn't producing `-fPIC`? That's surprising; it's...