Page 1 of 1

Error compiling libtorrent (MSVC10)

Posted: Fri Nov 01, 2013 1:30 pm
by estux
Hi!

I am trying to compile qbittorrent in windows following this link :
The only difference is that I am using MSVC10.

But I am getting this error while trying to compile libtorrent

Code: Select all

...
compile-c-c++ bin\msvc-10.0\release\boost-source\encryption-openssl\geoip-static\link-static\runtime-link-static\threading-multi\src\disk_buffer_pool.obj
disk_buffer_pool.cpp
include\libtorrent/disk_buffer_pool.hpp(52) : error C2039: 'noncopyable' : is not a member of 'boost'
include\libtorrent/disk_buffer_pool.hpp(52) : error C2504: 'noncopyable' : base class undefined
...
Any idea?

Re: Error compiling libtorrent (MSVC10)

Posted: Fri Nov 01, 2013 1:48 pm
by sledgehammer_999
Yes 0.16.12 is broken but already fixed in svn.

Re: Error compiling libtorrent (MSVC10)

Posted: Fri Nov 01, 2013 4:30 pm
by estux
Thank you! Using the latest code solved the problem.

Now I am getting linker errors in qBittorrent:

Code: Select all


libtorrent.lib(http_stream.obj):-1: error: LNK2001: unresolved external symbol "void * __cdecl boost::asio::asio_handler_allocate(unsigned int,...)" (?asio_handler_allocate@asio@boost@@YAPAXIZZ)
libtorrent.lib(http_stream.obj):-1: error: LNK2001: unresolved external symbol "void __cdecl boost::asio::asio_handler_deallocate(void *,unsigned int,...)" (?asio_handler_deallocate@asio@boost@@YAXPAXIZZ)

Maybe libtorrent.lib has not been compiled in the right way. I am using boost 1.54.

Re: Error compiling libtorrent (MSVC10)

Posted: Fri Nov 01, 2013 4:41 pm
by sledgehammer_999
Did you chagne the lib names in winconf-msvc.pri to match boost 1.54?

Re: Error compiling libtorrent (MSVC10)

Posted: Fri Nov 01, 2013 4:47 pm
by estux
Yes, I have checked it and I have the right name: libboost_system-vc100-mt-s-1_54.lib

EDIT: I have fixed it using this patch