Closed yuhas closed 8 years ago
with librorren-rastebar 1.0.9 - no problem)
Please take a look at #5265.
Short story: Libtorrent is being built without c++11 and uses boost::chrono while qbittorrent is being built as c++11 and sees the c++11 version of the libtorrent functions in the libtorrent headers which use std::chrono (aka a different signature). So the linker can't find the c++11 function in the libtorrent lib which contains the non-c++11 ones. So just rebuild 1.1.0 and enable c++11 too.
I'm trying to build qbittorrent-nox (with --disable-gui
option) on Mac, currently with no success. Would you please explain what should I change to enable c++11
for libtorrent?
The error is following:
linking qbittorrent-nox.app/Contents/MacOS/qbittorrent-nox
Undefined symbols for architecture x86_64:
"libtorrent::session_handle::wait_for_alert(std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> >)", referenced from:
BitTorrent::Session::saveResumeData() in session.o
BitTorrent::Session::getPendingAlerts(std::__1::vector<libtorrent::alert*,
std::__1::allocator<libtorrent::alert*> >&, unsigned long) in session.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [qbittorrent-nox.app/Contents/MacOS/qbittorrent-nox] Error 1
make: *** [sub-src-make_first] Error 2
Don't build(compiling) with librorren-rastebar 1.1.0 !!!!