Building on Windows 10


#1

I’m getting a ton of errors when trying to build on Windows 10 on the Surface Pro 3. I’ve pasted below. I’ve tried extending the PATH environment variable as recommended by the wiki build guide with no luck. Is there something else I’m missing? qmake seemed to have run fine.

C:\Code\valentina>mingw32-make cd src\ && ( if not exist Makefile C:\Qt\5.8\mingw53_32\bin\qmake.exe -o Makefile C:\Code\valentina\src\src.pro “CONFIG += noTests noRunPath no_ccache noDebugSymbols” ) && mingw32-make -f Makefile mingw32-make[1]: Entering directory ‘C:/Code/valentina/src’ cd libs\ && ( if not exist Makefile C:\Qt\5.8\mingw53_32\bin\qmake.exe -o Makefile C:\Code\valentina\src\libs\libs.pro “CONFIG += noTests noRunPath no_ccache noDebugSymbols” ) && mingw32-make -f Makefile mingw32-make[2]: Entering directory ‘C:/Code/valentina/src/libs’ cd qmuparser\ && ( if not exist Makefile C:\Qt\5.8\mingw53_32\bin\qmake.exe -o Makefile C:\Code\valentina\src\libs\qmuparser\qmuparser.pro “CONFIG += noTests noRunPath no_ccache noDebugSymbols” ) && mingw32-make -f Makefile mingw32-make[3]: Entering directory ‘C:/Code/valentina/src/libs/qmuparser’ compiling qmuparsertokenreader.cpp qmuparsertokenreader.cpp: In member function ‘qmu::QmuParserTokenReader::token_type qmu::QmuParserTokenReader::ReadNextToken(const std::locale&)’: qmuparsertokenreader.cpp:213:41: error: ambiguous overload for ‘operator>’ (operand types are ‘QChar’ and ‘int’) while ( m_strFormula.data()[m_iPos] > 0 && m_strFormula.data()[m_iPos] <= 0x20 ) ^ In file included from C:\Qt\5.8\mingw53_32\include/QtCore/qobject.h:47:0, from C:\Qt\5.8\mingw53_32\include\QtCore/qabstractanimation.h:43, from C:\Qt\5.8\mingw53_32\include\QtCore/QtCore:5, from stable.h:38: C:\Qt\5.8\mingw53_32\include/QtCore/qstring.h:1627:13: note: candidate: bool operator>(const QString&, QChar) inline bool operator> (const QString &lhs, QChar rhs) Q_DECL_NOTHROW { return rhs < lhs; } ^ C:\Qt\5.8\mingw53_32\include/QtCore/qstring.h:1569:13: note: candidate: bool operator>(const QString&, const QStringRef&) inline bool operator> (const QString &lhs, const QStringRef &rhs) Q_DECL_NOTHROW { return lhs.compare(rhs) > 0; } ^ C:\Qt\5.8\mingw53_32\include/QtCore/qstring.h:1636:13: note: candidate: bool operator>(QChar, const QStringRef&) inline bool operator> (QChar lhs, const QStringRef &rhs) Q_DECL_NOTHROW ^ C:\Qt\5.8\mingw53_32\include/QtCore/qstring.h:1617:13: note: candidate: bool operator>(QChar, const QString&) inline bool operator> (QChar lhs, const QString &rhs) Q_DECL_NOTHROW ^ In file included from C:\Qt\5.8\mingw53_32\include/QtCore/qstring.h:48:0, from C:\Qt\5.8\mingw53_32\include/QtCore/qobject.h:47, from C:\Qt\5.8\mingw53_32\include\QtCore/qabstractanimation.h:43, from C:\Qt\5.8\mingw53_32\include\QtCore/QtCore:5, from stable.h:38: C:\Qt\5.8\mingw53_32\include/QtCore/qchar.h:578:30: note: candidate: constexpr bool operator>(QChar, QChar) Q_DECL_CONSTEXPR inline bool operator> (QChar c1, QChar c2) Q_DECL_NOTHROW { return operator< (c2, c1); } ^ qmuparsertokenreader.cpp: In member function ‘bool qmu::QmuParserTokenReader::IsEOF(qmu::QmuParserTokenReader::token_type&)’: qmuparsertokenreader.cpp:517:38: error: ambiguous overload for ‘operator==’ (operand types are ‘QChar’ and ‘bool’) if ( m_strFormula.data()[m_iPos] == false /|| szFormula[m_iPos] == ‘\n’/ ) ^ In file included from C:\Qt\5.8\mingw53_32\include/QtCore/qobject.h:47:0, from C:\Qt\5.8\mingw53_32\include\QtCore/qabstractanimation.h:43, from C:\Qt\5.8\mingw53_32\include\QtCore/QtCore:5, from stable.h:38: C:\Qt\5.8\mingw53_32\include/QtCore/qstring.h:1624:13: note: candidate: bool operator==(const QString&, QChar) inline bool operator==(const QString &lhs, QChar rhs) Q_DECL_NOTHROW { return rhs == lhs; } ^ C:\Qt\5.8\mingw53_32\include/QtCore/qstring.h:1566:20: note: candidate: bool operator==(const QString&, const QStringRef&) Q_CORE_EXPORT bool operator==(const QString &lhs, const QStringRef &rhs) Q_DECL_NOTHROW; ^ C:\Qt\5.8\mingw53_32\include/QtCore/qstring.h:1632:13: note: candidate: bool operator==(QChar, const QStringRef&) inline bool operator==(QChar lhs, const QStringRef &rhs) Q_DECL_NOTHROW ^ C:\Qt\5.8\mingw53_32\include/QtCore/qstring.h:1613:13: note: candidate: bool operator==(QChar, const QString&) inline bool operator==(QChar lhs, const QString &rhs) Q_DECL_NOTHROW ^ In file included from C:\Qt\5.8\mingw53_32\include/QtCore/qstring.h:48:0, from C:\Qt\5.8\mingw53_32\include/QtCore/qobject.h:47, from C:\Qt\5.8\mingw53_32\include\QtCore/qabstractanimation.h:43, from C:\Qt\5.8\mingw53_32\include\QtCore/QtCore:5, from stable.h:38: C:\Qt\5.8\mingw53_32\include/QtCore/qchar.h:573:30: note: candidate: constexpr bool operator==(QChar, QChar) Q_DECL_CONSTEXPR inline bool operator==(QChar c1, QChar c2) Q_DECL_NOTHROW { return c1.ucs == c2.ucs; } ^ Makefile:1089: recipe for target ‘obj/qmuparsertokenreader.o’ failed mingw32-make[3]: *** [obj/qmuparsertokenreader.o] Error 1 mingw32-make[3]: Leaving directory ‘C:/Code/valentina/src/libs/qmuparser’ Makefile:49: recipe for target ‘sub-qmuparser-make_first’ failed mingw32-make[2]: *** [sub-qmuparser-make_first] Error 2 mingw32-make[2]: Leaving directory ‘C:/Code/valentina/src/libs’ Makefile:40: recipe for target ‘sub-libs-make_first’ failed mingw32-make[1]: *** [sub-libs-make_first] Error 2 mingw32-make[1]: Leaving directory ‘C:/Code/valentina/src’ Makefile:38: recipe for target ‘sub-src-make_first’ failed mingw32-make: *** [sub-src-make_first] Error 2`


#2

Hi,

Did you read page Qt for WinRT? According to this document you need MSVC compiler. Also there are other restrictions that make porting Valentina very nontrivial task.

Also this. Very weird. According to official web site the last release is Qt 5.7.1.


#3

Interesting. I’ll take a look at that page and switch to 5.7.1. Thanks for the help!

EDIT: I may just try to build this on a different machine.


closed #4

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.