Closed motypas closed 6 years ago
You can do it yourself too.
Hmm, thank you.. I'll try in fresh installed windows the ALL guide step by step and in the QT creator the build does not work!!!!!!!!!!!! I try with the up to date files and I try with relased files. The build does not work. So that is why I ask the fresh guide. Maybe in your computer the build does work 100% w/o any build error because you created some fine tunning. But in a fresh installed windows does not work. win7, AMDx64, SP1, visual studio2013 (not express) please try out. not work.
Sorry, I meant that you have the ability to edit the wiki yourself too. I thought that was what you were asking.
The build does not work.
Be more specific. What does not work? Does it compile and link? Does the created binary crash? Any output of Qt Creator would be helpful.
Also which guide did you follow (there are several there)?
I try this : https://github.com/qbittorrent/qBittorrent/wiki/Compiling-with-MSVC-2013-for-x86_64-(dynamic-linkage)
and I try this: https://github.com/qbittorrent/qBittorrent/wiki/Compiling-with-MSVC-2013-(static-linkage)
and this: https://github.com/qbittorrent/qBittorrent/wiki/Compiling-with-MSVC-2008(static-linkage)
here is the dymanic linkage error message: ....\src\base\utils\fs.cpp(133) : error C2440: 'initializing' : cannot convert from 'initializer-list' to 'QStringList' No constructor could take the source type, or constructor overload resol ution was ambiguous NMAKE : fatal error U1077: 'echo' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0 \VC\BIN\amd64\nmake.exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: 'cd' : return code '0x2' Stop.
That error is because you use qt4 which isn't update to correctly configure c++11 features for msvc2013.
Open your include\QtCore\qglobal.h
file from your qt4 installation. Go to line 920 and uncomment it. You should have a code block looking like this:
#if defined(Q_CC_MSVC) && !defined(Q_CC_INTEL)
# if defined(__cplusplus)
# if _MSC_VER >= 1600
/* C++11 features supported in VC10 = VC2010: */
# define Q_COMPILER_AUTO_FUNCTION
# define Q_COMPILER_AUTO_TYPE
# define Q_COMPILER_DECLTYPE
# define Q_COMPILER_LAMBDA
# define Q_COMPILER_RVALUE_REFS
// MSVC's library has std::initializer_list, but the compiler does not support the braces initialization
# define Q_COMPILER_INITIALIZER_LISTS
# endif
# endif
#endif
Then do a clean build of qbt. It should finish now.
Please update the build guide, links are experied and file versions are out of date.
Thx