the compilation on windows

Windows specific questions, problems.
Post Reply
yanmingwang

the compilation on windows

Post 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.
yanmingwang

Re: the compilation on windows

Post by yanmingwang »

in addition to question : fatal error U1077: ..../cl.exe and /nmake.exe result code "0x2" how to solve?
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: the compilation on windows

Post 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.
yanmingwang

Re: the compilation on windows

Post 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.
Dayman

Re: the compilation on windows

Post 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.
yanmingwang

Re: the compilation on windows

Post by yanmingwang »

LNK:1104 can not open file "libtorrentd.lib".
Last edited by yanmingwang on Wed Mar 27, 2013 4:05 am, edited 1 time in total.
sledgehammer_999
Administrator
Administrator
Posts: 2443
Joined: Sun Jan 23, 2011 1:17 pm

Re: the compilation on windows

Post 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"
Post Reply