libtorrent icon indicating copy to clipboard operation
libtorrent copied to clipboard

libtorrent 2.0.4 with mingw64

Open 3unjee opened this issue 3 years ago • 3 comments

Greetings libtorrent enthuisiasts and peer to peer advocates among the masses,

For some reason, when running the following on Windows: b2 -j4 toolset=gcc cxxstd=14 variant=release link=shared threading=multi install --prefix="$PWD/build"

I get this:

building boost from source directory:  C:\dev\workspace\libtorrent\boost
Performing configuration checks

    - default address-model    : 64-bit
    - default architecture     : x86
error: Unable to find file or target named
error:     'libtorrent-rasterbar.pc'
error: referred to from project at
error:     '.'

What's weird is when I actually call that a second thime (b2 -j4 toolset=gcc cxxstd=14 variant=release link=shared threading=multi install --prefix="$PWD/build") the compilation actually works.

EDIT: install --prefix="$PWD/build" seems to be the culprit

3unjee avatar Jun 17 '21 16:06 3unjee

yeah, the creation of the libtorrent-rasterar.pc file is a bit of a hack. I should have realized the ordering isn't guaranteed to work right.

arvidn avatar Jun 17 '21 22:06 arvidn

Works fine with CMake, btw.

cmake -G Ninja -B cmake-build-dir -D CMAKE_BUILD_TYPE=Release -D deprecated-functions=OFF -D developer-options=ON -D CMAKE_INSTALL_PREFIX="./install_dir"
cmake --build cmake-build-dir
cmake --install cmake-build-dir

FranciscoPombal avatar Jun 17 '21 23:06 FranciscoPombal

yeah, the creation of the libtorrent-rasterar.pc file is a bit of a hack. I should have realized the ordering isn't guaranteed to work right.

To be fixed with an upcoming version ?

3unjee avatar Jun 18 '21 08:06 3unjee