the compilation on windows
the compilation on windows
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
in addition to question : fatal error U1077: ..../cl.exe and /nmake.exe result code "0x2" how to solve?
-
- Administrator
- Posts: 2443
- Joined: Sun Jan 23, 2011 1:17 pm
Re: the compilation on windows
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.
I recently updated them to work with 3.0.9.
Re: the compilation on windows
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.
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
Add
and
in winconf.pri, replacing paths with your own.
Code: Select all
INCLUDEPATH += $$quote(T:/install/OpenSSL/include)
Code: Select all
LIBS += $$quote(-LT:/install/OpenSSL/lib)
Re: the compilation on windows
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.
-
- Administrator
- Posts: 2443
- Joined: Sun Jan 23, 2011 1:17 pm
Re: the compilation on windows
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"
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"