Windows 10 Qt Installation Issues



  • Not sure if this is the right "Installation and Deployment" thread, but I am having issues running and compiling projects on my Windows 10 x64 computer using mingw492_32.

    I have been trying to compile and test several demos, and on average, I get 10,000 to 15,000 compile errors. Everything from invalid variable declaration to invalid command usage. Clocks gives me 15079 issues alone.

    Has anyone had any success/tips/issues for installing and compiling on Windows 10 x64?

    Thanks in advance.


  • Moderators

    Hi, and welcome to the Qt Dev Net!

    Please post your first few error messages. Without them, we can't tell what's wrong.

    I've been using Qt for MinGW 4.9.2 (32-bit) on Windows 10 x64 for 2 months now with no problems.



  • @JKSH

    There are 15000+ messages from the compile, but here's the gist...

    Using the available demo Clocks
    Qt installation Path: C:\Qt
    Work path: C:\Qt\WORKSPACE\build-Quick_HelloWorld-Desktop_Qt_5_5_0_MinGW_32bit-Debug

    Excerpt from Compile Output

    22:03:38: Running steps for project clocks...
    22:03:38: Configuration unchanged, skipping qmake step.
    22:03:39: Starting: "C:\Qt\Tools\mingw492_32\bin\mingw32-make.exe"
    C:/Qt/Tools/mingw492_32/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory 'C:/Qt/Examples/Qt-5.5/quick/demos/build-clocks-Desktop_Qt_5_5_0_MinGW_32bit-Debug'
    g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\clocks -I. -IC:\Qt\5.5\mingw492_32\include -IC:\Qt\5.5\mingw492_32\include\QtQuick -IC:\Qt\5.5\mingw492_32\include\QtGui -IC:\Qt\5.5\mingw492_32\include\QtANGLE -IC:\Qt\5.5\mingw492_32\include\QtQml -IC:\Qt\5.5\mingw492_32\include\QtNetwork -IC:\Qt\5.5\mingw492_32\include\QtCore -Idebug -IC:\Qt\5.5\mingw492_32\mkspecs\win32-g++ -o debug\main.o ..\clocks\main.cpp
    In file included from C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/string:53:0,
    from C:\Qt\5.5\mingw492_32\include/QtCore/qbytearray.h:45,
    from C:\Qt\5.5\mingw492_32\include/QtCore/qstring.h:42,
    from C:\Qt\5.5\mingw492_32\include\QtCore/qdir.h:37,
    from C:\Qt\5.5\mingw492_32\include\QtCore/QDir:1,
    from ..\clocks../../shared/shared.h:40,
    from ..\clocks\main.cpp:40:
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:50:5: error: 'std::basic_string<_CharT, _Traits, _Alloc>::_Rep' is not a type
    basic_string<_CharT, _Traits, _Alloc>::
    ^
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:51:11: error: invalid use of dependent type 'typename std::basic_string<_CharT, _Traits, _Alloc>::_Rep'
    _Rep::_S_max_size = (((npos - sizeof(_Rep_base))/sizeof(_CharT)) - 1) / 4;
    ^
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:51:28: error: 'npos' was not declared in this scope
    _Rep::_S_max_size = (((npos - sizeof(_Rep_base))/sizeof(_CharT)) - 1) / 4;
    ^
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:51:42: error: '_Rep_base' was not declared in this scope
    _Rep::_S_max_size = (((npos - sizeof(_Rep_base))/sizeof(_CharT)) - 1) / 4;
    ^
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:55:5: error: 'std::basic_string<_CharT, _Traits, _Alloc>::_Rep' is not a type
    basic_string<_CharT, _Traits, _Alloc>::
    ^
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:56:11: error: invalid use of dependent type 'typename std::basic_string<_CharT, _Traits, _Alloc>::_Rep'
    _Rep::_S_terminal = _CharT();
    ^
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:60:44: error: template definition of non-template 'const typename std::basic_string<_CharT, _Traits, _Alloc>::size_type std::basic_string<_CharT, _Traits, _Alloc>::npos'
    basic_string<_CharT, _Traits, _Alloc>::npos;
    ^
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:66:5: error: 'std::basic_string<_CharT, _Traits, _Alloc>::_Rep' is not a type
    basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_empty_rep_storage[
    ^
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:67:13: error: '_Rep_base' was not declared in this scope
    (sizeof(_Rep_base) + sizeof(_CharT) + sizeof(size_type) - 1) /
    ^
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:67:50: error: 'size_type' was not declared in this scope
    (sizeof(_Rep_base) + sizeof(_CharT) + sizeof(size_type) - 1) /
    ^
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:68:14: error: 'size_type' was not declared in this scope
    sizeof(size_type)];
    ^
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:79:24: error: invalid use of incomplete type 'class std::basic_string<_CharT, _Traits, _Alloc>'
    input_iterator_tag)
    ^
    In file included from C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/string:39:0,
    from C:\Qt\5.5\mingw492_32\include/QtCore/qbytearray.h:45,
    from C:\Qt\5.5\mingw492_32\include/QtCore/qstring.h:42,
    from C:\Qt\5.5\mingw492_32\include\QtCore/qdir.h:37,
    from C:\Qt\5.5\mingw492_32\include\QtCore/QDir:1,
    from ..\clocks../../shared/shared.h:40,
    from ..\clocks\main.cpp:40:
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/stringfwd.h:57:11: error: declaration of 'class std::basic_string<_CharT, _Traits, _Alloc>'
    class basic_string;
    ^
    In file included from C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/string:53:0,
    from C:\Qt\5.5\mingw492_32\include/QtCore/qbytearray.h:45,
    from C:\Qt\5.5\mingw492_32\include/QtCore/qstring.h:42,
    from C:\Qt\5.5\mingw492_32\include\QtCore/qdir.h:37,
    from C:\Qt\5.5\mingw492_32\include\QtCore/QDir:1,
    from ..\clocks../../shared/shared.h:40,
    from ..\clocks\main.cpp:40:
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:125:26: error: invalid use of incomplete type 'class std::basic_string<_CharT, _Traits, _Alloc>'
    forward_iterator_tag)
    ^
    In file included from C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/string:39:0,
    from C:\Qt\5.5\mingw492_32\include/QtCore/qbytearray.h:45,
    from C:\Qt\5.5\mingw492_32\include/QtCore/qstring.h:42,
    from C:\Qt\5.5\mingw492_32\include\QtCore/qdir.h:37,
    from C:\Qt\5.5\mingw492_32\include\QtCore/QDir:1,
    from ..\clocks../../shared/shared.h:40,
    from ..\clocks\main.cpp:40:
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/stringfwd.h:57:11: error: declaration of 'class std::basic_string<_CharT, _Traits, _Alloc>'
    class basic_string;
    ^
    In file included from C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/string:53:0,
    from C:\Qt\5.5\mingw492_32\include/QtCore/qbytearray.h:45,
    from C:\Qt\5.5\mingw492_32\include/QtCore/qstring.h:42,
    from C:\Qt\5.5\mingw492_32\include\QtCore/qdir.h:37,
    from C:\Qt\5.5\mingw492_32\include\QtCore/QDir:1,
    from ..\clocks../../shared/shared.h:40,
    from ..\clocks\main.cpp:40:
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:153:18: error: template definition of non-template '_CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct'
    _S_construct(size_type __n, _CharT __c, const _Alloc& __a)
    ^
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:153:18: error: 'size_type' was not declared in this scope
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:153:40: error: expected primary-expression before '__c'
    _S_construct(size_type __n, _CharT __c, const _Alloc& __a)
    ^
    C:/Qt/Tools/mingw492_32/i686-w64-mingw32/include/c++/bits/basic_string.tcc:153:45: error: expected primary-expression before 'const'
    _S_construct(size_type __n, _CharT __c, const _Alloc& __a)
    ^



  • Hi, I also have Qt with mingw492_32 installed on my Windows 10, just tested and the clocks example compiled fine, no problems (i.e. same as for JKSH).

    That first error message,
    'std::basic_string<_CharT, _Traits, _Alloc>::_Rep' is not a type

    does it reappear as the first one for others of your projects/examples?
    Also have you tried to update to 5.5.1?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.