Page 1 of 1
the compilation on windows
Posted: Sun Mar 24, 2013 2:46 pm
by yanmingwang
I have just begun to touch qbtorrent and want to further study its source code on windows base on VC2008. Have downloaded qbittorrent-3.0.9.tar.gz package. A necessary condition was configured like Boost and QT library to ensure correct compilation. There are some errors occur when having built makefile was made using command nmake such as libtorrent/session.hpp:"condition" is not boost member. In my opinion it might be a version problem. if that's so, where to download libtorrent v0.16.9 or offering a solution. looking forwards you reply. I come from china. Thanks.
Re: the compilation on windows
Posted: Sun Mar 24, 2013 3:05 pm
by yanmingwang
in addition to question : fatal error U1077: ..../cl.exe and /nmake.exe result code "0x2" how to solve?
Re: the compilation on windows
Posted: Sun Mar 24, 2013 3:49 pm
by sledgehammer_999
Did you follow the instructions on the wiki? ->
https://github.com/qbittorrent/qBittorr ... linkage%29
I recently updated them to work with 3.0.9.
Re: the compilation on windows
Posted: Tue Mar 26, 2013 6:18 am
by yanmingwang
occur error when last nmake command
libeay32.lib(e_capi.obj) : error LNK2019: Unresolved external symbol __imp__CertFreeCert
ificateContext@4?The symbol in function _capi_free_key is referenced
libeay32.lib(e_capi.obj) : error LNK2019: Unresolved external symbol __imp__CertGetCerti
ficateContextProperty@16?The symbol in function _capi_get_prov_info is referenced
libeay32.lib(e_capi.obj) : error LNK2019: Unresolved external symbol __imp__CertOpenStor
e@20?The symbol in function _capi_open_store is referenced
libeay32.lib(e_capi.obj) : error LNK2019: Unresolved external symbol __imp__CertFindCert
ificateInStore@24?The symbol in function _capi_find_cert is referenced
libeay32.lib(e_capi.obj) : error LNK2019: Unresolved external symbol __imp__CertEnumCert
ificatesInStore@8?The symbol in function _capi_find_cert is referenced
libeay32.lib(e_capi.obj) : error LNK2019: Unresolved external symbol __imp__CertCloseSto
re@8?The symbol in function _capi_find_key is referenced
libeay32.lib(e_capi.obj) : error LNK2019: Unresolved external symbol __imp__CertDuplicat
eCertificateContext@4?The symbol in function _capi_load_ssl_client_cert is referenced
..\..\..\..\bin\assistant.exe : fatal error LNK1120: 7 Unresolved external command
how to solve,Thanks.
Re: the compilation on windows
Posted: Tue Mar 26, 2013 12:08 pm
by Dayman
Add
Code: Select all
INCLUDEPATH += $$quote(T:/install/OpenSSL/include)
and
Code: Select all
LIBS += $$quote(-LT:/install/OpenSSL/lib)
in winconf.pri, replacing paths with your own.
Re: the compilation on windows
Posted: Wed Mar 27, 2013 3:35 am
by yanmingwang
LNK:1104 can not open file "libtorrentd.lib".
Re: the compilation on windows
Posted: Wed Mar 27, 2013 2:23 pm
by sledgehammer_999
You didn't follow the wiki instructions correctly. When opening the qbittorrent.pro file in QtCreator you are supposed to choose the "qt release version" from the pop up window.
This is easily fixed. Delete the "qbittorrent.pro.user" file and reopen qbittorrent.pro. Then choose the Qt version that has "release" at the end and not "debug"