LubosD / fatrat

FatRat Download/Upload Manager - http://fatrat.dolezel.info
GNU General Public License v3.0
49 stars 20 forks source link

Incompatibility with libtorrent-rasterbar 2.0 #50

Closed xiota closed 1 year ago

xiota commented 1 year ago

Trying to build the "feature/poconet_migration" branch on Arch. libtorrent-rasterbar version is 1:2.0.8-3. PKGBUILD contains the following build function:

build() {
  mkdir -p build
  cd build
  cmake "$srcdir/$_pkgname/" \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DCMAKE_CXX_STANDARD=14 \
        -DCMAKE_CXX_STANDARD_REQUIRED=ON \
        -DCMAKE_CXX_EXTENSIONS=OFF \
        -DWITH_DOCUMENTATION=ON \
        -DWITH_NLS=ON \
        -DWITH_CURL=ON \
        -DWITH_BITTORRENT=ON \
        -DWITH_WEBINTERFACE=ON
  make
}

Results in the following error:

[ 52%] Building CXX object CMakeFiles/fatrat.dir/src/Transfer.cpp.o
In file included from /build/fatrat-git/src/fatrat/src/Transfer.cpp:33:
/build/fatrat-git/src/fatrat/src/engines/TorrentDownload.h:82:53: error: ‘libtorrent::lazy_entry’ has not been declared
   82 |         static void lazy_bdecode_simple(libtorrent::lazy_entry& e, QByteArray array);
      |                                                     ^~~~~~~~~~
/build/fatrat-git/src/fatrat/src/Transfer.cpp: In member function ‘void Transfer::fireCompleted()’:
/build/fatrat-git/src/fatrat/src/Transfer.cpp:493:32: warning: ‘static bool QProcess::startDetached(const QString&)’ is deprecated: Use QProcess::startDetached(const QString &program, const QStringList &arguments) instead [-Wdeprecated-declarations]
  493 |         QProcess::startDetached(exec);
      |         ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/qt/QtCore/QProcess:1,
                 from /build/fatrat-git/src/fatrat/src/Transfer.cpp:50:
/usr/include/qt/QtCore/qprocess.h:280:17: note: declared here
  280 |     static bool startDetached(const QString &command);
      |                 ^~~~~~~~~~~~~
make[2]: *** [CMakeFiles/fatrat.dir/build.make:1303: CMakeFiles/fatrat.dir/src/Transfer.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:112: CMakeFiles/fatrat.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
LubosD commented 1 year ago

Check the develop branch, that one works with recent libtorrent releases.