Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. General talk
  3. Qt 6
  4. Some problem make Qt 6.5.1 from sources
Forum Updated to NodeBB v4.3 + New Features

Some problem make Qt 6.5.1 from sources

Scheduled Pinned Locked Moved Unsolved Qt 6
19 Posts 2 Posters 3.8k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Navadvipa Chandra das

    Hello, Christian and All!
    I look set command. No include fonder.
    CMake does this focus when it is added to the Path variable:
    set Path=%Path%;C:\PostgreSQL\15\bin

    I realized that this is a problem of the PostgreSQL distribution from this site - https://postgrespro.ru/windows ! I will download from another site - https://postgrespro.ru/windows and try install Qt!

    What about the "file too big" error?

    Thank You!
    With best regards, Navadvipa Chandra das.

    Christian EhrlicherC Offline
    Christian EhrlicherC Offline
    Christian Ehrlicher
    Lifetime Qt Champion
    wrote on last edited by Christian Ehrlicher
    #4

    @Navadvipa-Chandra-das said in Some problem make Qt 6.5.1 from sources:

    I realized that this is a problem of the PostgreSQL distribution from this site - https://postgrespro.ru/windows ! I will download from another site - https://postgrespro.ru/windows and try install Qt!

    You should really use the official downloads instead a server from russia...

    @Navadvipa-Chandra-das said in Some problem make Qt 6.5.1 from sources:

    What about the "file too big" error?

    See e.g. https://stackoverflow.com/questions/14125007/gcc-string-table-overflow-error-during-compilation
    I would say - don't build the tests at all, you don't need them

    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
    Visit the Qt Academy at https://academy.qt.io/catalog

    N 1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher

      @Navadvipa-Chandra-das said in Some problem make Qt 6.5.1 from sources:

      I realized that this is a problem of the PostgreSQL distribution from this site - https://postgrespro.ru/windows ! I will download from another site - https://postgrespro.ru/windows and try install Qt!

      You should really use the official downloads instead a server from russia...

      @Navadvipa-Chandra-das said in Some problem make Qt 6.5.1 from sources:

      What about the "file too big" error?

      See e.g. https://stackoverflow.com/questions/14125007/gcc-string-table-overflow-error-during-compilation
      I would say - don't build the tests at all, you don't need them

      N Offline
      N Offline
      Navadvipa Chandra das
      wrote on last edited by
      #5

      Hello, Christian-Ehrlicher and All!

      new configure file:

      set Path=%Path%;C:\PostgreSQL\15\bin
      set BUILD_DIR=C:/QtSource
      cd %BUILD_DIR%/Developer/Build
      %BUILD_DIR%/QtSource651/configure -prefix %BUILD_DIR%/Developer/Lib ^
      -developer-build -nomake tests -sql-psql
      

      make bat file:

      cd %BUILD_DIR%/Developer/Build
      cmake --build . --parallel
      cd %BUILD_DIR%/Developer/Build
      cmake --install .
      

      New problem with
      C:/PostgreSQL/15/include/pthread.h

      [983/11548] Building CXX object qtbase/src/3rdparty/harfbuzz-ng/CMakeFiles/BundledHarfbuzz.dir/src/hb-set.cc.obj
      [984/11548] Building CXX object qtbase/src/tools/moc/CMakeFiles/moc.dir/token.cpp.obj
      [985/11548] Building RC object qtbase/src/tools/moc/CMakeFiles/moc.dir/moc_longpath.rc.obj
      [986/11548] Building RC object qtbase/src/tools/tracepointgen/CMakeFiles/tracepointgen.dir/tracepointgen_resource.rc.obj
      [987/11548] Building CXX object qtbase/src/tools/moc/CMakeFiles/moc.dir/collectjson.cpp.obj
      [988/11548] Building CXX object qtbase/src/tools/moc/CMakeFiles/moc.dir/main.cpp.obj
      FAILED: qtbase/src/tools/moc/CMakeFiles/moc.dir/main.cpp.obj 
      C:\mingw64\bin\c++.exe -DMINGW_HAS_SECURE_API=1 -DPCRE2_STATIC -DQT_BOOTSTRAPPED -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC -DQT_NO_AS_CONST=1 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_VERSION_MAJOR=6 -DQT_VERSION_MINOR=5 -DQT_VERSION_PATCH=1 -DQT_VERSION_STR=\"6.5.1\" -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/QtSource/QtSource651/qtbase/src/tools/moc -IC:/QtSource/Developer/Build/qtbase/src/tools/moc -IC:/QtSource/QtSource651/qtbase/src/tools/moc/../../3rdparty/tinycbor/src -IC:/QtSource/QtSource651/qtbase/src/tools/moc/../shared -IC:/QtSource/QtSource651/qtbase/mkspecs/win32-g++ -IC:/QtSource/Developer/Build/qtbase/include -IC:/QtSource/Developer/Build/qtbase/src/corelib/Core_autogen/include -IC:/QtSource/Developer/Build/qtbase/include/QtCore -IC:/QtSource/QtSource651/qtbase/src/corelib -IC:/QtSource/Developer/Build/qtbase/src/corelib -IC:/QtSource/Developer/Build/qtbase/src/corelib/global -IC:/QtSource/Developer/Build/qtbase/src/corelib/kernel -IC:/QtSource/QtSource651/qtbase/src/corelib/../3rdparty/tinycbor/src -IC:/QtSource/Developer/Build/qtbase/include/QtCore/6.5.1 -IC:/QtSource/Developer/Build/qtbase/include/QtCore/6.5.1/QtCore -IC:/QtSource/QtSource651/qtbase/src/corelib/../3rdparty/double-conversion/double-conversion -IC:/QtSource/QtSource651/qtbase/src/corelib/../3rdparty/double-conversion -IC:/QtSource/Developer/Build/qtbase/src/corelib/.rcc -IC:/PostgreSQL/15/include -IC:/QtSource/QtSource651/qtbase/src/3rdparty/pcre2/src -IC:/QtSource/QtSource651/qtbase/src/tools/bootstrap/../../corelib/global -IC:/QtSource/QtSource651/qtbase/src/tools/bootstrap/../../3rdparty/pcre2/src -g -fvisibility=hidden -fno-keep-inline-dllexport -Wall -Wextra -fno-exceptions -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -Wno-error=implicit-fallthrough -Wno-error=deprecated-copy -Wno-error=redundant-move -Wno-error=init-list-lifetime -Wno-error=format-overflow -Wno-error=stringop-overflow -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-enum-float-conversion -Wno-error=stringop-overread -Wa,-mbig-obj -Wsuggest-override -ffunction-sections -fdata-sections -std=c++17 -MD -MT qtbase/src/tools/moc/CMakeFiles/moc.dir/main.cpp.obj -MF qtbase\src\tools\moc\CMakeFiles\moc.dir\main.cpp.obj.d -o qtbase/src/tools/moc/CMakeFiles/moc.dir/main.cpp.obj -c C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp
      In file included from C:/QtSource/QtSource651/qtbase/src/tools/moc/symbols.h:8,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/parser.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/preprocessor.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:6:
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:40:7: error: expected identifier before 'void'
         40 |     F(THIS) \
            |       ^~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:194:33: note: in definition of macro 'CREATE_ENUM_VALUE'
        194 | #define CREATE_ENUM_VALUE(Name) Name,
            |                                 ^~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:195:5: note: in expansion of macro 'FOR_ALL_TOKENS'
        195 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
            |     ^~~~~~~~~~~~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:40:7: error: expected '}' before 'void'
         40 |     F(THIS) \
            |       ^~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:194:33: note: in definition of macro 'CREATE_ENUM_VALUE'
        194 | #define CREATE_ENUM_VALUE(Name) Name,
            |                                 ^~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:195:5: note: in expansion of macro 'FOR_ALL_TOKENS'
        195 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
            |     ^~~~~~~~~~~~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:12: note: to match this '{'
        192 | enum Token {
            |            ^
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:194:37: error: expected unqualified-id before ',' token
        194 | #define CREATE_ENUM_VALUE(Name) Name,
            |                                     ^
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:40:5: note: in expansion of macro 'CREATE_ENUM_VALUE'
         40 |     F(THIS) \
            |     ^
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:195:5: note: in expansion of macro 'FOR_ALL_TOKENS'
        195 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
            |     ^~~~~~~~~~~~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'TEMPLATE'
        192 | enum Token {
            | ^~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'THROW'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'TRY'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'CATCH'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'TYPEDEF'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'FRIEND'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'CLASS'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'NAMESPACE'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'ENUM'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'STRUCT'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'UNION'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'VIRTUAL'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'PRIVATE'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'PROTECTED'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'PUBLIC'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'EXPORT'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'AUTO'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'REGISTER'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'EXTERN'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'MUTABLE'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'ASM'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'USING'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'INLINE'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'EXPLICIT'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'STATIC'
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:66:7: error: expected unqualified-id before 'const'
         66 |     F(CONST) \
            |       ^~~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:194:33: note: in definition of macro 'CREATE_ENUM_VALUE'
        194 | #define CREATE_ENUM_VALUE(Name) Name,
            |                                 ^~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:195:5: note: in expansion of macro 'FOR_ALL_TOKENS'
        195 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
            |     ^~~~~~~~~~~~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:241:1: error: expected declaration before '}' token
        241 | };
            | ^
      C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp: In function 'QByteArray composePreprocessorOutput(const Symbols&)':
      C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:76:18: error: 'PP_NOTOKEN' was not declared in this scope; did you mean 'NOTOKEN'?
         76 |     Token last = PP_NOTOKEN;
            |                  ^~~~~~~~~~
            |                  NOTOKEN
      C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:82:14: error: 'PP_NEWLINE' was not declared in this scope
         82 |         case PP_NEWLINE:
            |              ^~~~~~~~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:83:14: error: 'PP_WHITESPACE' was not declared in this scope; did you mean 'C2_WHITESPACE'?
         83 |         case PP_WHITESPACE:
            |              ^~~~~~~~~~~~~
            |              C2_WHITESPACE
      C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:90:14: error: 'PP_STRING_LITERAL' was not declared in this scope; did you mean 'STRING_LITERAL'?
         90 |         case PP_STRING_LITERAL:
            |              ^~~~~~~~~~~~~~~~~
            |              STRING_LITERAL
      C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:101:14: error: 'MOC_INCLUDE_BEGIN' was not declared in this scope
        101 |         case MOC_INCLUDE_BEGIN:
            |              ^~~~~~~~~~~~~~~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:104:14: error: 'MOC_INCLUDE_END' was not declared in this scope; did you mean 'QDC_INCLUDE_HMD'?
        104 |         case MOC_INCLUDE_END:
            |              ^~~~~~~~~~~~~~~
            |              QDC_INCLUDE_HMD
      C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp: In function 'int runMoc(int, char**)':
      C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:174:55: error: 'PP_IDENTIFIER' was not declared in this scope; did you mean 'IDENTIFIER'?
        174 |     dummyVariadicFunctionMacro.arguments += Symbol(0, PP_IDENTIFIER, "__VA_ARGS__");
            |                                                       ^~~~~~~~~~~~~
            |                                                       IDENTIFIER
      C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:507:42: error: 'MOC_INCLUDE_BEGIN' was not declared in this scope
        507 |                 moc.symbols += Symbol(0, MOC_INCLUDE_BEGIN, rawName);
            |                                          ^~~~~~~~~~~~~~~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:509:42: error: 'MOC_INCLUDE_END' was not declared in this scope; did you mean 'QDC_INCLUDE_HMD'?
        509 |                 moc.symbols += Symbol(0, MOC_INCLUDE_END, rawName);
            |                                          ^~~~~~~~~~~~~~~
            |                                          QDC_INCLUDE_HMD
      [989/11548] Building RC object qtbase/src/tools/tracepointgen/CMakeFiles/tracepointgen.dir/tracepointgen_longpath.rc.obj
      [990/11548] Building CXX object qtbase/src/tools/tracepointgen/CMakeFiles/tracepointgen.dir/tracepointgen.cpp.obj
      [991/11548] Building CXX object qtbase/src/tools/tracepointgen/CMakeFiles/tracepointgen.dir/parser.cpp.obj
      [992/11548] Building CXX object qtbase/src/tools/moc/CMakeFiles/moc.dir/generator.cpp.obj
      FAILED: qtbase/src/tools/moc/CMakeFiles/moc.dir/generator.cpp.obj 
      C:\mingw64\bin\c++.exe -DMINGW_HAS_SECURE_API=1 -DPCRE2_STATIC -DQT_BOOTSTRAPPED -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC -DQT_NO_AS_CONST=1 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_VERSION_MAJOR=6 -DQT_VERSION_MINOR=5 -DQT_VERSION_PATCH=1 -DQT_VERSION_STR=\"6.5.1\" -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/QtSource/QtSource651/qtbase/src/tools/moc -IC:/QtSource/Developer/Build/qtbase/src/tools/moc -IC:/QtSource/QtSource651/qtbase/src/tools/moc/../../3rdparty/tinycbor/src -IC:/QtSource/QtSource651/qtbase/src/tools/moc/../shared -IC:/QtSource/QtSource651/qtbase/mkspecs/win32-g++ -IC:/QtSource/Developer/Build/qtbase/include -IC:/QtSource/Developer/Build/qtbase/src/corelib/Core_autogen/include -IC:/QtSource/Developer/Build/qtbase/include/QtCore -IC:/QtSource/QtSource651/qtbase/src/corelib -IC:/QtSource/Developer/Build/qtbase/src/corelib -IC:/QtSource/Developer/Build/qtbase/src/corelib/global -IC:/QtSource/Developer/Build/qtbase/src/corelib/kernel -IC:/QtSource/QtSource651/qtbase/src/corelib/../3rdparty/tinycbor/src -IC:/QtSource/Developer/Build/qtbase/include/QtCore/6.5.1 -IC:/QtSource/Developer/Build/qtbase/include/QtCore/6.5.1/QtCore -IC:/QtSource/QtSource651/qtbase/src/corelib/../3rdparty/double-conversion/double-conversion -IC:/QtSource/QtSource651/qtbase/src/corelib/../3rdparty/double-conversion -IC:/QtSource/Developer/Build/qtbase/src/corelib/.rcc -IC:/PostgreSQL/15/include -IC:/QtSource/QtSource651/qtbase/src/3rdparty/pcre2/src -IC:/QtSource/QtSource651/qtbase/src/tools/bootstrap/../../corelib/global -IC:/QtSource/QtSource651/qtbase/src/tools/bootstrap/../../3rdparty/pcre2/src -g -fvisibility=hidden -fno-keep-inline-dllexport -Wall -Wextra -fno-exceptions -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -Wno-error=implicit-fallthrough -Wno-error=deprecated-copy -Wno-error=redundant-move -Wno-error=init-list-lifetime -Wno-error=format-overflow -Wno-error=stringop-overflow -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-enum-float-conversion -Wno-error=stringop-overread -Wa,-mbig-obj -Wsuggest-override -ffunction-sections -fdata-sections -std=c++17 -MD -MT qtbase/src/tools/moc/CMakeFiles/moc.dir/generator.cpp.obj -MF qtbase\src\tools\moc\CMakeFiles\moc.dir\generator.cpp.obj.d -o qtbase/src/tools/moc/CMakeFiles/moc.dir/generator.cpp.obj -c C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.cpp
      In file included from C:/mingw64/x86_64-w64-mingw32/include/windef.h:9,
                       from C:/mingw64/x86_64-w64-mingw32/include/windows.h:69,
                       from C:/PostgreSQL/15/include/pthread.h:198,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/ext/atomicity.h:35,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/ios_base.h:39,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/streambuf:41,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/streambuf_iterator.h:35,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/iterator:66,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qcontainertools_impl.h:20,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qcontainertools_impl.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qarraydataops.h:9,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qarraydataops.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qarraydatapointer.h:7,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qarraydatapointer.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/text/qbytearray.h:11,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qbytearray.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/text/qstringview.h:8,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qstringview.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/text/qchar.h:656,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qchar.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/serialization/qtextstream.h:8,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qtextstream.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/io/qdebug.h:13,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qdebug.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/symbols.h:9,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/parser.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/moc.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.cpp:6:
      C:/mingw64/x86_64-w64-mingw32/include/minwindef.h:131:15: error: 'typedef int BOOL' redeclared as different kind of entity
        131 |   typedef int BOOL;
            |               ^~~~
      In file included from C:/QtSource/QtSource651/qtbase/src/tools/moc/symbols.h:8,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/parser.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/moc.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.cpp:6:
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:107:7: note: previous declaration 'Token BOOL'
        107 |     F(BOOL) \
            |       ^~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:194:33: note: in definition of macro 'CREATE_ENUM_VALUE'
        194 | #define CREATE_ENUM_VALUE(Name) Name,
            |                                 ^~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:195:5: note: in expansion of macro 'FOR_ALL_TOKENS'
        195 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
            |     ^~~~~~~~~~~~~~
      In file included from C:/mingw64/x86_64-w64-mingw32/include/windef.h:9,
                       from C:/mingw64/x86_64-w64-mingw32/include/windows.h:69,
                       from C:/PostgreSQL/15/include/pthread.h:198,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/ext/atomicity.h:35,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/ios_base.h:39,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/streambuf:41,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/streambuf_iterator.h:35,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/iterator:66,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qcontainertools_impl.h:20,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qcontainertools_impl.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qarraydataops.h:9,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qarraydataops.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qarraydatapointer.h:7,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qarraydatapointer.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/text/qbytearray.h:11,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qbytearray.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/text/qstringview.h:8,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qstringview.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/text/qchar.h:656,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qchar.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/serialization/qtextstream.h:8,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qtextstream.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/io/qdebug.h:13,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qdebug.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/symbols.h:9,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/parser.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/moc.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.cpp:6:
      C:/mingw64/x86_64-w64-mingw32/include/minwindef.h:142:17: error: 'typedef float FLOAT' redeclared as different kind of entity
        142 |   typedef float FLOAT;
            |                 ^~~~~
      In file included from C:/QtSource/QtSource651/qtbase/src/tools/moc/symbols.h:8,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/parser.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/moc.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.cpp:6:
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:113:7: note: previous declaration 'Token FLOAT'
        113 |     F(FLOAT) \
            |       ^~~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:194:33: note: in definition of macro 'CREATE_ENUM_VALUE'
        194 | #define CREATE_ENUM_VALUE(Name) Name,
            |                                 ^~~~
      C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:195:5: note: in expansion of macro 'FOR_ALL_TOKENS'
        195 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
            |     ^~~~~~~~~~~~~~
      In file included from C:/mingw64/x86_64-w64-mingw32/include/windef.h:9,
                       from C:/mingw64/x86_64-w64-mingw32/include/windows.h:69,
                       from C:/PostgreSQL/15/include/pthread.h:198,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/ext/atomicity.h:35,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/ios_base.h:39,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/streambuf:41,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/streambuf_iterator.h:35,
                       from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/iterator:66,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qcontainertools_impl.h:20,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qcontainertools_impl.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qarraydataops.h:9,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qarraydataops.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qarraydatapointer.h:7,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qarraydatapointer.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/text/qbytearray.h:11,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qbytearray.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/text/qstringview.h:8,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qstringview.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/text/qchar.h:656,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qchar.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/serialization/qtextstream.h:8,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qtextstream.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/corelib/io/qdebug.h:13,
                       from C:/QtSource/Developer/Build/qtbase/include/QtCore/qdebug.h:1,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/symbols.h:9,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/parser.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/moc.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.h:7,
                       from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.cpp:6:
      C:/mingw64/x86_64-w64-mingw32/include/minwindef.h:143:11: error: 'FLOAT' does not name a type
        143 |   typedef FLOAT *PFLOAT;
            |           ^~~~~
      C:/mingw64/x86_64-w64-mingw32/include/minwindef.h:158:15: error: 'typedef int INT' redeclared as different kind of entity
        158 |   typedef int INT;
            |               ^~~
      In file included from C:/QtSource/QtSource651/qtbase/src/tools/moc/symbols.h:8,
      
      

      With best regards, Navadvipa Chandra das.

      Christian EhrlicherC 1 Reply Last reply
      0
      • N Navadvipa Chandra das

        Hello, Christian-Ehrlicher and All!

        new configure file:

        set Path=%Path%;C:\PostgreSQL\15\bin
        set BUILD_DIR=C:/QtSource
        cd %BUILD_DIR%/Developer/Build
        %BUILD_DIR%/QtSource651/configure -prefix %BUILD_DIR%/Developer/Lib ^
        -developer-build -nomake tests -sql-psql
        

        make bat file:

        cd %BUILD_DIR%/Developer/Build
        cmake --build . --parallel
        cd %BUILD_DIR%/Developer/Build
        cmake --install .
        

        New problem with
        C:/PostgreSQL/15/include/pthread.h

        [983/11548] Building CXX object qtbase/src/3rdparty/harfbuzz-ng/CMakeFiles/BundledHarfbuzz.dir/src/hb-set.cc.obj
        [984/11548] Building CXX object qtbase/src/tools/moc/CMakeFiles/moc.dir/token.cpp.obj
        [985/11548] Building RC object qtbase/src/tools/moc/CMakeFiles/moc.dir/moc_longpath.rc.obj
        [986/11548] Building RC object qtbase/src/tools/tracepointgen/CMakeFiles/tracepointgen.dir/tracepointgen_resource.rc.obj
        [987/11548] Building CXX object qtbase/src/tools/moc/CMakeFiles/moc.dir/collectjson.cpp.obj
        [988/11548] Building CXX object qtbase/src/tools/moc/CMakeFiles/moc.dir/main.cpp.obj
        FAILED: qtbase/src/tools/moc/CMakeFiles/moc.dir/main.cpp.obj 
        C:\mingw64\bin\c++.exe -DMINGW_HAS_SECURE_API=1 -DPCRE2_STATIC -DQT_BOOTSTRAPPED -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC -DQT_NO_AS_CONST=1 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_VERSION_MAJOR=6 -DQT_VERSION_MINOR=5 -DQT_VERSION_PATCH=1 -DQT_VERSION_STR=\"6.5.1\" -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/QtSource/QtSource651/qtbase/src/tools/moc -IC:/QtSource/Developer/Build/qtbase/src/tools/moc -IC:/QtSource/QtSource651/qtbase/src/tools/moc/../../3rdparty/tinycbor/src -IC:/QtSource/QtSource651/qtbase/src/tools/moc/../shared -IC:/QtSource/QtSource651/qtbase/mkspecs/win32-g++ -IC:/QtSource/Developer/Build/qtbase/include -IC:/QtSource/Developer/Build/qtbase/src/corelib/Core_autogen/include -IC:/QtSource/Developer/Build/qtbase/include/QtCore -IC:/QtSource/QtSource651/qtbase/src/corelib -IC:/QtSource/Developer/Build/qtbase/src/corelib -IC:/QtSource/Developer/Build/qtbase/src/corelib/global -IC:/QtSource/Developer/Build/qtbase/src/corelib/kernel -IC:/QtSource/QtSource651/qtbase/src/corelib/../3rdparty/tinycbor/src -IC:/QtSource/Developer/Build/qtbase/include/QtCore/6.5.1 -IC:/QtSource/Developer/Build/qtbase/include/QtCore/6.5.1/QtCore -IC:/QtSource/QtSource651/qtbase/src/corelib/../3rdparty/double-conversion/double-conversion -IC:/QtSource/QtSource651/qtbase/src/corelib/../3rdparty/double-conversion -IC:/QtSource/Developer/Build/qtbase/src/corelib/.rcc -IC:/PostgreSQL/15/include -IC:/QtSource/QtSource651/qtbase/src/3rdparty/pcre2/src -IC:/QtSource/QtSource651/qtbase/src/tools/bootstrap/../../corelib/global -IC:/QtSource/QtSource651/qtbase/src/tools/bootstrap/../../3rdparty/pcre2/src -g -fvisibility=hidden -fno-keep-inline-dllexport -Wall -Wextra -fno-exceptions -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -Wno-error=implicit-fallthrough -Wno-error=deprecated-copy -Wno-error=redundant-move -Wno-error=init-list-lifetime -Wno-error=format-overflow -Wno-error=stringop-overflow -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-enum-float-conversion -Wno-error=stringop-overread -Wa,-mbig-obj -Wsuggest-override -ffunction-sections -fdata-sections -std=c++17 -MD -MT qtbase/src/tools/moc/CMakeFiles/moc.dir/main.cpp.obj -MF qtbase\src\tools\moc\CMakeFiles\moc.dir\main.cpp.obj.d -o qtbase/src/tools/moc/CMakeFiles/moc.dir/main.cpp.obj -c C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp
        In file included from C:/QtSource/QtSource651/qtbase/src/tools/moc/symbols.h:8,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/parser.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/preprocessor.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:6:
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:40:7: error: expected identifier before 'void'
           40 |     F(THIS) \
              |       ^~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:194:33: note: in definition of macro 'CREATE_ENUM_VALUE'
          194 | #define CREATE_ENUM_VALUE(Name) Name,
              |                                 ^~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:195:5: note: in expansion of macro 'FOR_ALL_TOKENS'
          195 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
              |     ^~~~~~~~~~~~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:40:7: error: expected '}' before 'void'
           40 |     F(THIS) \
              |       ^~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:194:33: note: in definition of macro 'CREATE_ENUM_VALUE'
          194 | #define CREATE_ENUM_VALUE(Name) Name,
              |                                 ^~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:195:5: note: in expansion of macro 'FOR_ALL_TOKENS'
          195 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
              |     ^~~~~~~~~~~~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:12: note: to match this '{'
          192 | enum Token {
              |            ^
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:194:37: error: expected unqualified-id before ',' token
          194 | #define CREATE_ENUM_VALUE(Name) Name,
              |                                     ^
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:40:5: note: in expansion of macro 'CREATE_ENUM_VALUE'
           40 |     F(THIS) \
              |     ^
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:195:5: note: in expansion of macro 'FOR_ALL_TOKENS'
          195 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
              |     ^~~~~~~~~~~~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'TEMPLATE'
          192 | enum Token {
              | ^~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'THROW'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'TRY'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'CATCH'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'TYPEDEF'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'FRIEND'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'CLASS'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'NAMESPACE'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'ENUM'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'STRUCT'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'UNION'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'VIRTUAL'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'PRIVATE'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'PROTECTED'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'PUBLIC'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'EXPORT'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'AUTO'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'REGISTER'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'EXTERN'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'MUTABLE'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'ASM'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'USING'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'INLINE'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'EXPLICIT'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:192:1: error: two or more data types in declaration of 'STATIC'
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:66:7: error: expected unqualified-id before 'const'
           66 |     F(CONST) \
              |       ^~~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:194:33: note: in definition of macro 'CREATE_ENUM_VALUE'
          194 | #define CREATE_ENUM_VALUE(Name) Name,
              |                                 ^~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:195:5: note: in expansion of macro 'FOR_ALL_TOKENS'
          195 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
              |     ^~~~~~~~~~~~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:241:1: error: expected declaration before '}' token
          241 | };
              | ^
        C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp: In function 'QByteArray composePreprocessorOutput(const Symbols&)':
        C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:76:18: error: 'PP_NOTOKEN' was not declared in this scope; did you mean 'NOTOKEN'?
           76 |     Token last = PP_NOTOKEN;
              |                  ^~~~~~~~~~
              |                  NOTOKEN
        C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:82:14: error: 'PP_NEWLINE' was not declared in this scope
           82 |         case PP_NEWLINE:
              |              ^~~~~~~~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:83:14: error: 'PP_WHITESPACE' was not declared in this scope; did you mean 'C2_WHITESPACE'?
           83 |         case PP_WHITESPACE:
              |              ^~~~~~~~~~~~~
              |              C2_WHITESPACE
        C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:90:14: error: 'PP_STRING_LITERAL' was not declared in this scope; did you mean 'STRING_LITERAL'?
           90 |         case PP_STRING_LITERAL:
              |              ^~~~~~~~~~~~~~~~~
              |              STRING_LITERAL
        C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:101:14: error: 'MOC_INCLUDE_BEGIN' was not declared in this scope
          101 |         case MOC_INCLUDE_BEGIN:
              |              ^~~~~~~~~~~~~~~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:104:14: error: 'MOC_INCLUDE_END' was not declared in this scope; did you mean 'QDC_INCLUDE_HMD'?
          104 |         case MOC_INCLUDE_END:
              |              ^~~~~~~~~~~~~~~
              |              QDC_INCLUDE_HMD
        C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp: In function 'int runMoc(int, char**)':
        C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:174:55: error: 'PP_IDENTIFIER' was not declared in this scope; did you mean 'IDENTIFIER'?
          174 |     dummyVariadicFunctionMacro.arguments += Symbol(0, PP_IDENTIFIER, "__VA_ARGS__");
              |                                                       ^~~~~~~~~~~~~
              |                                                       IDENTIFIER
        C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:507:42: error: 'MOC_INCLUDE_BEGIN' was not declared in this scope
          507 |                 moc.symbols += Symbol(0, MOC_INCLUDE_BEGIN, rawName);
              |                                          ^~~~~~~~~~~~~~~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/main.cpp:509:42: error: 'MOC_INCLUDE_END' was not declared in this scope; did you mean 'QDC_INCLUDE_HMD'?
          509 |                 moc.symbols += Symbol(0, MOC_INCLUDE_END, rawName);
              |                                          ^~~~~~~~~~~~~~~
              |                                          QDC_INCLUDE_HMD
        [989/11548] Building RC object qtbase/src/tools/tracepointgen/CMakeFiles/tracepointgen.dir/tracepointgen_longpath.rc.obj
        [990/11548] Building CXX object qtbase/src/tools/tracepointgen/CMakeFiles/tracepointgen.dir/tracepointgen.cpp.obj
        [991/11548] Building CXX object qtbase/src/tools/tracepointgen/CMakeFiles/tracepointgen.dir/parser.cpp.obj
        [992/11548] Building CXX object qtbase/src/tools/moc/CMakeFiles/moc.dir/generator.cpp.obj
        FAILED: qtbase/src/tools/moc/CMakeFiles/moc.dir/generator.cpp.obj 
        C:\mingw64\bin\c++.exe -DMINGW_HAS_SECURE_API=1 -DPCRE2_STATIC -DQT_BOOTSTRAPPED -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_LEAN_HEADERS=1 -DQT_MOC -DQT_NO_AS_CONST=1 -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_VERSION_MAJOR=6 -DQT_VERSION_MINOR=5 -DQT_VERSION_PATCH=1 -DQT_VERSION_STR=\"6.5.1\" -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_WIN64 -IC:/QtSource/QtSource651/qtbase/src/tools/moc -IC:/QtSource/Developer/Build/qtbase/src/tools/moc -IC:/QtSource/QtSource651/qtbase/src/tools/moc/../../3rdparty/tinycbor/src -IC:/QtSource/QtSource651/qtbase/src/tools/moc/../shared -IC:/QtSource/QtSource651/qtbase/mkspecs/win32-g++ -IC:/QtSource/Developer/Build/qtbase/include -IC:/QtSource/Developer/Build/qtbase/src/corelib/Core_autogen/include -IC:/QtSource/Developer/Build/qtbase/include/QtCore -IC:/QtSource/QtSource651/qtbase/src/corelib -IC:/QtSource/Developer/Build/qtbase/src/corelib -IC:/QtSource/Developer/Build/qtbase/src/corelib/global -IC:/QtSource/Developer/Build/qtbase/src/corelib/kernel -IC:/QtSource/QtSource651/qtbase/src/corelib/../3rdparty/tinycbor/src -IC:/QtSource/Developer/Build/qtbase/include/QtCore/6.5.1 -IC:/QtSource/Developer/Build/qtbase/include/QtCore/6.5.1/QtCore -IC:/QtSource/QtSource651/qtbase/src/corelib/../3rdparty/double-conversion/double-conversion -IC:/QtSource/QtSource651/qtbase/src/corelib/../3rdparty/double-conversion -IC:/QtSource/Developer/Build/qtbase/src/corelib/.rcc -IC:/PostgreSQL/15/include -IC:/QtSource/QtSource651/qtbase/src/3rdparty/pcre2/src -IC:/QtSource/QtSource651/qtbase/src/tools/bootstrap/../../corelib/global -IC:/QtSource/QtSource651/qtbase/src/tools/bootstrap/../../3rdparty/pcre2/src -g -fvisibility=hidden -fno-keep-inline-dllexport -Wall -Wextra -fno-exceptions -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -Wno-error=implicit-fallthrough -Wno-error=deprecated-copy -Wno-error=redundant-move -Wno-error=init-list-lifetime -Wno-error=format-overflow -Wno-error=stringop-overflow -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-enum-float-conversion -Wno-error=stringop-overread -Wa,-mbig-obj -Wsuggest-override -ffunction-sections -fdata-sections -std=c++17 -MD -MT qtbase/src/tools/moc/CMakeFiles/moc.dir/generator.cpp.obj -MF qtbase\src\tools\moc\CMakeFiles\moc.dir\generator.cpp.obj.d -o qtbase/src/tools/moc/CMakeFiles/moc.dir/generator.cpp.obj -c C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.cpp
        In file included from C:/mingw64/x86_64-w64-mingw32/include/windef.h:9,
                         from C:/mingw64/x86_64-w64-mingw32/include/windows.h:69,
                         from C:/PostgreSQL/15/include/pthread.h:198,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/ext/atomicity.h:35,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/ios_base.h:39,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/streambuf:41,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/streambuf_iterator.h:35,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/iterator:66,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qcontainertools_impl.h:20,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qcontainertools_impl.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qarraydataops.h:9,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qarraydataops.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qarraydatapointer.h:7,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qarraydatapointer.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/text/qbytearray.h:11,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qbytearray.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/text/qstringview.h:8,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qstringview.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/text/qchar.h:656,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qchar.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/serialization/qtextstream.h:8,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qtextstream.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/io/qdebug.h:13,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qdebug.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/symbols.h:9,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/parser.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/moc.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.cpp:6:
        C:/mingw64/x86_64-w64-mingw32/include/minwindef.h:131:15: error: 'typedef int BOOL' redeclared as different kind of entity
          131 |   typedef int BOOL;
              |               ^~~~
        In file included from C:/QtSource/QtSource651/qtbase/src/tools/moc/symbols.h:8,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/parser.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/moc.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.cpp:6:
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:107:7: note: previous declaration 'Token BOOL'
          107 |     F(BOOL) \
              |       ^~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:194:33: note: in definition of macro 'CREATE_ENUM_VALUE'
          194 | #define CREATE_ENUM_VALUE(Name) Name,
              |                                 ^~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:195:5: note: in expansion of macro 'FOR_ALL_TOKENS'
          195 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
              |     ^~~~~~~~~~~~~~
        In file included from C:/mingw64/x86_64-w64-mingw32/include/windef.h:9,
                         from C:/mingw64/x86_64-w64-mingw32/include/windows.h:69,
                         from C:/PostgreSQL/15/include/pthread.h:198,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/ext/atomicity.h:35,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/ios_base.h:39,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/streambuf:41,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/streambuf_iterator.h:35,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/iterator:66,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qcontainertools_impl.h:20,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qcontainertools_impl.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qarraydataops.h:9,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qarraydataops.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qarraydatapointer.h:7,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qarraydatapointer.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/text/qbytearray.h:11,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qbytearray.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/text/qstringview.h:8,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qstringview.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/text/qchar.h:656,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qchar.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/serialization/qtextstream.h:8,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qtextstream.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/io/qdebug.h:13,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qdebug.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/symbols.h:9,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/parser.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/moc.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.cpp:6:
        C:/mingw64/x86_64-w64-mingw32/include/minwindef.h:142:17: error: 'typedef float FLOAT' redeclared as different kind of entity
          142 |   typedef float FLOAT;
              |                 ^~~~~
        In file included from C:/QtSource/QtSource651/qtbase/src/tools/moc/symbols.h:8,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/parser.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/moc.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.cpp:6:
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:113:7: note: previous declaration 'Token FLOAT'
          113 |     F(FLOAT) \
              |       ^~~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:194:33: note: in definition of macro 'CREATE_ENUM_VALUE'
          194 | #define CREATE_ENUM_VALUE(Name) Name,
              |                                 ^~~~
        C:/QtSource/QtSource651/qtbase/src/tools/moc/token.h:195:5: note: in expansion of macro 'FOR_ALL_TOKENS'
          195 |     FOR_ALL_TOKENS(CREATE_ENUM_VALUE)
              |     ^~~~~~~~~~~~~~
        In file included from C:/mingw64/x86_64-w64-mingw32/include/windef.h:9,
                         from C:/mingw64/x86_64-w64-mingw32/include/windows.h:69,
                         from C:/PostgreSQL/15/include/pthread.h:198,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr-default.h:35,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/x86_64-w64-mingw32/bits/gthr.h:148,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/ext/atomicity.h:35,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/ios_base.h:39,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/streambuf:41,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/bits/streambuf_iterator.h:35,
                         from C:/mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/include/c++/iterator:66,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qcontainertools_impl.h:20,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qcontainertools_impl.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qarraydataops.h:9,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qarraydataops.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/tools/qarraydatapointer.h:7,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qarraydatapointer.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/text/qbytearray.h:11,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qbytearray.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/text/qstringview.h:8,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qstringview.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/text/qchar.h:656,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qchar.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/serialization/qtextstream.h:8,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qtextstream.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/corelib/io/qdebug.h:13,
                         from C:/QtSource/Developer/Build/qtbase/include/QtCore/qdebug.h:1,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/symbols.h:9,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/parser.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/moc.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.h:7,
                         from C:/QtSource/QtSource651/qtbase/src/tools/moc/generator.cpp:6:
        C:/mingw64/x86_64-w64-mingw32/include/minwindef.h:143:11: error: 'FLOAT' does not name a type
          143 |   typedef FLOAT *PFLOAT;
              |           ^~~~~
        C:/mingw64/x86_64-w64-mingw32/include/minwindef.h:158:15: error: 'typedef int INT' redeclared as different kind of entity
          158 |   typedef int INT;
              |               ^~~
        In file included from C:/QtSource/QtSource651/qtbase/src/tools/moc/symbols.h:8,
        
        

        With best regards, Navadvipa Chandra das.

        Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote on last edited by
        #6

        @Navadvipa-Chandra-das said in Some problem make Qt 6.5.1 from sources:

        C:\mingw64\bin\c++.exe

        Are you sure that's the correct compiler (must be at least gcc 11.2) - see https://doc.qt.io/qt-6/supported-platforms.html

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        N 1 Reply Last reply
        0
        • Christian EhrlicherC Christian Ehrlicher

          @Navadvipa-Chandra-das said in Some problem make Qt 6.5.1 from sources:

          C:\mingw64\bin\c++.exe

          Are you sure that's the correct compiler (must be at least gcc 11.2) - see https://doc.qt.io/qt-6/supported-platforms.html

          N Offline
          N Offline
          Navadvipa Chandra das
          wrote on last edited by
          #7

          Christian, yes! Compiler from Qt web suite.

          
          # **************************************************************************
          
          version : MinGW-W64-builds-5.0.0
          user    : runneradmin
          date    : 11.15.2021- 6:22:58 PM
          args    : --mode=gcc-11.2.0 --buildroot=buildroot --jobs=4 --rev=1 --rt-version=trunk --threads=posix --exceptions=seh --arch=x86_64 --bin-compress --enable-languages=c,c++
          PATH    : /mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
          CFLAGS  : -O2 -pipe -fno-ident
          CXXFLAGS: -O2 -pipe -fno-ident
          CPPFLAGS: 
          LDFLAGS : -pipe -fno-ident
          
          # **************************************************************************
          
          host gcc 64-bit:
          Using built-in specs.
          COLLECT_GCC=D:\a\mingw-builds\mingw-builds\toolchains\mingw64\bin\gcc.exe
          COLLECT_LTO_WRAPPER=D:/a/mingw-builds/mingw-builds/toolchains/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe
          Target: x86_64-w64-mingw32
          Configured with: ../../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/lib -L/c/mingw810/prerequisites/x86_64-zlib-static/lib -L/c/mingw810/prerequisites/x86_64-w64-mingw32-static/lib '
          Thread model: posix
          gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 
          
          # **************************************************************************
          
          host ld 64-bit:
          GNU ld (GNU Binutils) 2.30
            Supported emulations:
             i386pep
             i386pe
          
          
          
          Christian EhrlicherC 1 Reply Last reply
          0
          • N Navadvipa Chandra das

            Christian, yes! Compiler from Qt web suite.

            
            # **************************************************************************
            
            version : MinGW-W64-builds-5.0.0
            user    : runneradmin
            date    : 11.15.2021- 6:22:58 PM
            args    : --mode=gcc-11.2.0 --buildroot=buildroot --jobs=4 --rev=1 --rt-version=trunk --threads=posix --exceptions=seh --arch=x86_64 --bin-compress --enable-languages=c,c++
            PATH    : /mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/System32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0/:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
            CFLAGS  : -O2 -pipe -fno-ident
            CXXFLAGS: -O2 -pipe -fno-ident
            CPPFLAGS: 
            LDFLAGS : -pipe -fno-ident
            
            # **************************************************************************
            
            host gcc 64-bit:
            Using built-in specs.
            COLLECT_GCC=D:\a\mingw-builds\mingw-builds\toolchains\mingw64\bin\gcc.exe
            COLLECT_LTO_WRAPPER=D:/a/mingw-builds/mingw-builds/toolchains/mingw64/bin/../libexec/gcc/x86_64-w64-mingw32/8.1.0/lto-wrapper.exe
            Target: x86_64-w64-mingw32
            Configured with: ../../../src/gcc-8.1.0/configure --host=x86_64-w64-mingw32 --build=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --prefix=/mingw64 --with-sysroot=/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64 --enable-shared --enable-static --disable-multilib --enable-languages=c,c++,fortran,lto --enable-libstdcxx-time=yes --enable-threads=posix --enable-libgomp --enable-libatomic --enable-lto --enable-graphite --enable-checking=release --enable-fully-dynamic-string --enable-version-specific-runtime-libs --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-bootstrap --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-gnu-as --with-gnu-ld --with-arch=nocona --with-tune=core2 --with-libiconv --with-system-zlib --with-gmp=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpfr=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-mpc=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-isl=/c/mingw810/prerequisites/x86_64-w64-mingw32-static --with-pkgversion='x86_64-posix-seh-rev0, Built by MinGW-W64 project' --with-bugurl=https://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -fno-ident -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' CPPFLAGS=' -I/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/include -I/c/mingw810/prerequisites/x86_64-zlib-static/include -I/c/mingw810/prerequisites/x86_64-w64-mingw32-static/include' LDFLAGS='-pipe -fno-ident -L/c/mingw810/x86_64-810-posix-seh-rt_v6-rev0/mingw64/opt/lib -L/c/mingw810/prerequisites/x86_64-zlib-static/lib -L/c/mingw810/prerequisites/x86_64-w64-mingw32-static/lib '
            Thread model: posix
            gcc version 8.1.0 (x86_64-posix-seh-rev0, Built by MinGW-W64 project) 
            
            # **************************************************************************
            
            host ld 64-bit:
            GNU ld (GNU Binutils) 2.30
              Supported emulations:
               i386pep
               i386pe
            
            
            
            Christian EhrlicherC Offline
            Christian EhrlicherC Offline
            Christian Ehrlicher
            Lifetime Qt Champion
            wrote on last edited by Christian Ehrlicher
            #8

            Please print the output of C:\mingw64\bin\c++.exe --version

            Also this file was not modified for ages so I doubt it has something to do with the Qt source.

            /edit:
            And you still have this postgres path in your compiler line: C:/PostgreSQL/15/include/pthread.h:198, - remove it.

            Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
            Visit the Qt Academy at https://academy.qt.io/catalog

            N 1 Reply Last reply
            0
            • Christian EhrlicherC Christian Ehrlicher

              Please print the output of C:\mingw64\bin\c++.exe --version

              Also this file was not modified for ages so I doubt it has something to do with the Qt source.

              /edit:
              And you still have this postgres path in your compiler line: C:/PostgreSQL/15/include/pthread.h:198, - remove it.

              N Offline
              N Offline
              Navadvipa Chandra das
              wrote on last edited by
              #9

              @Christian-Ehrlicher I need 600 seconds wait for post message!

              C:\INSTALL\Qt>C:\mingw64\bin\c++.exe --version                                                                                              c++.exe (x86_64-posix-seh-rev1, Built by MinGW-W64 project) 11.2.0
              Copyright (C) 2021 Free Software Foundation, Inc.
              This is free software; see the source for copying conditions.  There is NO
              warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
              
              
              N 1 Reply Last reply
              0
              • N Navadvipa Chandra das

                @Christian-Ehrlicher I need 600 seconds wait for post message!

                C:\INSTALL\Qt>C:\mingw64\bin\c++.exe --version                                                                                              c++.exe (x86_64-posix-seh-rev1, Built by MinGW-W64 project) 11.2.0
                Copyright (C) 2021 Free Software Foundation, Inc.
                This is free software; see the source for copying conditions.  There is NO
                warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
                
                
                N Offline
                N Offline
                Navadvipa Chandra das
                wrote on last edited by
                #10

                I'll try to delete or rename C:/PostgreSQL/15/include/pthread.h .
                C:\INSTALL\Qt>C:\mingw64\bin\c++.exe --version c++.exe (x86_64-posix-seh-rev1, Built by MinGW-W64 project) 11.2.0
                Copyright (C) 2021 Free Software Foundation, Inc.
                This is free software; see the source for copying conditions. There is NO
                warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

                N 1 Reply Last reply
                0
                • N Navadvipa Chandra das

                  I'll try to delete or rename C:/PostgreSQL/15/include/pthread.h .
                  C:\INSTALL\Qt>C:\mingw64\bin\c++.exe --version c++.exe (x86_64-posix-seh-rev1, Built by MinGW-W64 project) 11.2.0
                  Copyright (C) 2021 Free Software Foundation, Inc.
                  This is free software; see the source for copying conditions. There is NO
                  warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

                  N Offline
                  N Offline
                  Navadvipa Chandra das
                  wrote on last edited by
                  #11

                  @Navadvipa-Chandra-das
                  Now problem with C:/PostgreSQL/15/lib/zlib.lib may be

                  [1506/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_sah.cpp.obj
                  [1507/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_morton.cpp.obj
                  [1508/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder.cpp.obj
                  [1509/11548] Generating version linker script for target Quick3DRuntimeRender
                  [1510/11548] Generating version linker script for target Quick3D
                  [1511/11548] Running syncqt.cpp for module: QtQuick3DParticles
                  [1512/11548] Generating version linker script for target Quick3DParticles
                  [1513/11548] Running syncqt.cpp for module: QtQuick3DAssetUtils
                  [1514/11548] Generating version linker script for target Quick3DAssetUtils
                  [1515/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_sah_spatial.cpp.obj
                  [1516/11548] Linking CXX static library qtbase\lib\libQt6BundledHarfbuzz.a
                  [1517/11548] Running syncqt.cpp for module: QtQuick3DHelpers
                  [1518/11548] Running syncqt.cpp for module: QtQuick3DHelpersImpl
                  [1519/11548] Linking CXX shared library qtbase\bin\Qt6Core.dll
                  FAILED: qtbase/bin/Qt6Core.dll qtbase/lib/libQt6Core.a 
                  cmd.exe /C "cd . && C:\mingw64\bin\c++.exe -g  -Wl,--no-undefined -Wl,--version-script,C:/QtSource/Developer/Build/qtbase/src/corelib/Core.version -shared -o qtbase\bin\Qt6Core.dll -Wl,--out-implib,qtbase\lib\libQt6Core.a -Wl,--major-image-version,6,--minor-image-version,5 @CMakeFiles\Core.rsp  && cd ."
                  Warning: corrupt .drectve at end of def file
                  Warning: corrupt .drectve at end of def file
                  Warning: corrupt .drectve at end of def file
                  Warning: corrupt .drectve at end of def file
                  Warning: corrupt .drectve at end of def file
                  Warning: corrupt .drectve at end of def file
                  Warning: corrupt .drectve at end of def file
                  Warning: corrupt .drectve at end of def file
                  Warning: corrupt .drectve at end of def file
                  Warning: corrupt .drectve at end of def file
                  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(trees.obj):(.text$mn+0x7): undefined reference to `__security_cookie'
                  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(trees.obj):(.text$mn+0x13e): undefined reference to `__security_check_cookie'
                  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(trees.obj):(.xdata[$unwind$gen_codes]+0x8): undefined reference to `__GSHandlerCheck'
                  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(inftrees.obj):(.text$mn+0x1a): undefined reference to `__security_cookie'
                  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(inftrees.obj):(.text$mn+0x161): undefined reference to `__security_check_cookie'
                  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(inftrees.obj):(.text$mn+0x50b): undefined reference to `__report_rangecheckfailure'
                  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(inftrees.obj):(.xdata[$unwind$inflate_table]+0x18): undefined reference to `__GSHandlerCheck'
                  
                  collect2.exe: error: ld returned 1 exit status
                  [1520/11548] Running syncqt.cpp for module: QtQuick3DIblBaker
                  [1521/11548] Generating version linker script for target Quick3DHelpers
                  [1522/11548] Generating version linker script for target Quick3DHelpersImpl
                  [1523/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_sah_mb.cpp.obj
                  [1524/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_twolevel.cpp.obj
                  [1525/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_intersector1_bvh4.cpp.obj
                  [1526/11548] Linking CXX static library qtbase\lib\libQt6BundledSpirv_Cross.a
                  ninja: build stopped: subcommand failed.
                  
                  
                  Christian EhrlicherC 1 Reply Last reply
                  0
                  • N Navadvipa Chandra das

                    @Navadvipa-Chandra-das
                    Now problem with C:/PostgreSQL/15/lib/zlib.lib may be

                    [1506/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_sah.cpp.obj
                    [1507/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_morton.cpp.obj
                    [1508/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder.cpp.obj
                    [1509/11548] Generating version linker script for target Quick3DRuntimeRender
                    [1510/11548] Generating version linker script for target Quick3D
                    [1511/11548] Running syncqt.cpp for module: QtQuick3DParticles
                    [1512/11548] Generating version linker script for target Quick3DParticles
                    [1513/11548] Running syncqt.cpp for module: QtQuick3DAssetUtils
                    [1514/11548] Generating version linker script for target Quick3DAssetUtils
                    [1515/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_sah_spatial.cpp.obj
                    [1516/11548] Linking CXX static library qtbase\lib\libQt6BundledHarfbuzz.a
                    [1517/11548] Running syncqt.cpp for module: QtQuick3DHelpers
                    [1518/11548] Running syncqt.cpp for module: QtQuick3DHelpersImpl
                    [1519/11548] Linking CXX shared library qtbase\bin\Qt6Core.dll
                    FAILED: qtbase/bin/Qt6Core.dll qtbase/lib/libQt6Core.a 
                    cmd.exe /C "cd . && C:\mingw64\bin\c++.exe -g  -Wl,--no-undefined -Wl,--version-script,C:/QtSource/Developer/Build/qtbase/src/corelib/Core.version -shared -o qtbase\bin\Qt6Core.dll -Wl,--out-implib,qtbase\lib\libQt6Core.a -Wl,--major-image-version,6,--minor-image-version,5 @CMakeFiles\Core.rsp  && cd ."
                    Warning: corrupt .drectve at end of def file
                    Warning: corrupt .drectve at end of def file
                    Warning: corrupt .drectve at end of def file
                    Warning: corrupt .drectve at end of def file
                    Warning: corrupt .drectve at end of def file
                    Warning: corrupt .drectve at end of def file
                    Warning: corrupt .drectve at end of def file
                    Warning: corrupt .drectve at end of def file
                    Warning: corrupt .drectve at end of def file
                    Warning: corrupt .drectve at end of def file
                    C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(trees.obj):(.text$mn+0x7): undefined reference to `__security_cookie'
                    C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(trees.obj):(.text$mn+0x13e): undefined reference to `__security_check_cookie'
                    C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(trees.obj):(.xdata[$unwind$gen_codes]+0x8): undefined reference to `__GSHandlerCheck'
                    C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(inftrees.obj):(.text$mn+0x1a): undefined reference to `__security_cookie'
                    C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(inftrees.obj):(.text$mn+0x161): undefined reference to `__security_check_cookie'
                    C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(inftrees.obj):(.text$mn+0x50b): undefined reference to `__report_rangecheckfailure'
                    C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:/PostgreSQL/15/lib/zlib.lib(inftrees.obj):(.xdata[$unwind$inflate_table]+0x18): undefined reference to `__GSHandlerCheck'
                    
                    collect2.exe: error: ld returned 1 exit status
                    [1520/11548] Running syncqt.cpp for module: QtQuick3DIblBaker
                    [1521/11548] Generating version linker script for target Quick3DHelpers
                    [1522/11548] Generating version linker script for target Quick3DHelpersImpl
                    [1523/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_sah_mb.cpp.obj
                    [1524/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_builder_twolevel.cpp.obj
                    [1525/11548] Building CXX object qtquick3d/src/3rdparty/embree/CMakeFiles/BundledEmbree.dir/kernels/bvh/bvh_intersector1_bvh4.cpp.obj
                    [1526/11548] Linking CXX static library qtbase\lib\libQt6BundledSpirv_Cross.a
                    ninja: build stopped: subcommand failed.
                    
                    
                    Christian EhrlicherC Offline
                    Christian EhrlicherC Offline
                    Christian Ehrlicher
                    Lifetime Qt Champion
                    wrote on last edited by
                    #12

                    @Navadvipa-Chandra-das As I said - remove the postgres stuff - it's wrong and as it looks the main culprit. Use the official stuff and nothing from a dubious server somewhere in the net...

                    Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                    Visit the Qt Academy at https://academy.qt.io/catalog

                    N 1 Reply Last reply
                    0
                    • Christian EhrlicherC Christian Ehrlicher

                      @Navadvipa-Chandra-das As I said - remove the postgres stuff - it's wrong and as it looks the main culprit. Use the official stuff and nothing from a dubious server somewhere in the net...

                      N Offline
                      N Offline
                      Navadvipa Chandra das
                      wrote on last edited by
                      #13

                      Christian, I have already deleted that old Postgres and installed a new one from the official website! There is no config.h. File pthread.h I rename to AAApthread.h and more steps of successful compilation have already been completed!
                      [1519/11548] Linking CXX shared library qtbase\bin\Qt6Core.dll
                      FAILED: qtbase/bin/Qt6Core.dll qtbase/lib/libQt6Core.a

                      Christian EhrlicherC 1 Reply Last reply
                      0
                      • N Navadvipa Chandra das

                        Christian, I have already deleted that old Postgres and installed a new one from the official website! There is no config.h. File pthread.h I rename to AAApthread.h and more steps of successful compilation have already been completed!
                        [1519/11548] Linking CXX shared library qtbase\bin\Qt6Core.dll
                        FAILED: qtbase/bin/Qt6Core.dll qtbase/lib/libQt6Core.a

                        Christian EhrlicherC Offline
                        Christian EhrlicherC Offline
                        Christian Ehrlicher
                        Lifetime Qt Champion
                        wrote on last edited by
                        #14

                        Please do not add the postgres stuff - compile it later as standalone.
                        Don't know what you mixed up so that those directories are fetched by cmake or whomever but as you can see they screw up your compilation.

                        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                        Visit the Qt Academy at https://academy.qt.io/catalog

                        N 1 Reply Last reply
                        0
                        • Christian EhrlicherC Christian Ehrlicher

                          Please do not add the postgres stuff - compile it later as standalone.
                          Don't know what you mixed up so that those directories are fetched by cmake or whomever but as you can see they screw up your compilation.

                          N Offline
                          N Offline
                          Navadvipa Chandra das
                          wrote on last edited by
                          #15

                          @Christian-Ehrlicher
                          I comment this
                          rem set Path=%Path%;C:\PostgreSQL\15\bin
                          and again
                          "file too big"

                          [2525/11557] Running AUTOMOC file extraction for target FbSupportPrivate
                          [2526/11557] Building CXX object qtdeclarative/src/qml/CMakeFiles/Qml.dir/qml/qqmldatablob.cpp.obj
                          [2527/11557] Running moc --collect-json for target FbSupportPrivate
                          [2528/11557] Building CXX object qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj
                          FAILED: qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj 
                          C:\mingw64\bin\c++.exe -DLanguageServerPrivate_EXPORTS -DMINGW_HAS_SECURE_API=1 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_LANGUAGESERVER_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_JSONRPC_LIB -DQT_MOC_COMPAT -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -IC:/QtSource/Developer/Build/qtlanguageserver/src/languageserver/LanguageServerPrivate_autogen/include -IC:/QtSource/Developer/Build/qtbase/include -IC:/QtSource/Developer/Build/qtbase/include/QtLanguageServer -IC:/QtSource/QtSource651/qtlanguageserver/src/languageserver -IC:/QtSource/Developer/Build/qtlanguageserver/src/languageserver -IC:/QtSource/Developer/Build/qtbase/include/QtLanguageServer/6.5.1 -IC:/QtSource/Developer/Build/qtbase/include/QtLanguageServer/6.5.1/QtLanguageServer -IC:/QtSource/Developer/Build/qtbase/src/corelib -IC:/QtSource/Developer/Build/qtbase/include/QtCore/6.5.1 -IC:/QtSource/Developer/Build/qtbase/include/QtCore/6.5.1/QtCore -IC:/QtSource/Developer/Build/qtbase/include/QtCore -IC:/QtSource/QtSource651/qtbase/mkspecs/win32-g++ -IC:/QtSource/Developer/Build/qtbase/include/QtJsonRpc -IC:/QtSource/Developer/Build/qtlanguageserver/src/jsonrpc -IC:/QtSource/Developer/Build/qtbase/include/QtJsonRpc/6.5.1 -IC:/QtSource/Developer/Build/qtbase/include/QtJsonRpc/6.5.1/QtJsonRpc -Wa,-mbig-obj -g -fvisibility=hidden -fno-keep-inline-dllexport -Wall -Wextra -fno-exceptions -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -Wno-error=implicit-fallthrough -Wno-error=deprecated-copy -Wno-error=redundant-move -Wno-error=init-list-lifetime -Wno-error=format-overflow -Wno-error=stringop-overflow -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-enum-float-conversion -Wno-error=stringop-overread -Wa,-mbig-obj -Wsuggest-override -std=c++17 -Winvalid-pch -include C:/QtSource/Developer/Build/qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/cmake_pch.hxx -MD -MT qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj -MF qtlanguageserver\src\languageserver\CMakeFiles\LanguageServerPrivate.dir\qlanguageservergen.cpp.obj.d -o qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj -c C:/QtSource/QtSource651/qtlanguageserver/src/languageserver/qlanguageservergen.cpp
                          C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/as.exe: qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj: section .pdata$_ZNSt8__detail9__variant5__getINS0_15_Variadic_unionIJN17QLspSpecification16TextDocumentEditENS3_10CreateFileENS3_10RenameFileENS3_10DeleteFileEEEEEEDcSt16in_place_index_tILy0EEOT_: string table overflow at offset 10000051
                          C:\Users\navad\AppData\Local\Temp\ccq698mY.s: Assembler messages:
                          C:\Users\navad\AppData\Local\Temp\ccq698mY.s: Fatal error: qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj: file too big
                          
                          
                          
                          N 1 Reply Last reply
                          0
                          • N Navadvipa Chandra das

                            @Christian-Ehrlicher
                            I comment this
                            rem set Path=%Path%;C:\PostgreSQL\15\bin
                            and again
                            "file too big"

                            [2525/11557] Running AUTOMOC file extraction for target FbSupportPrivate
                            [2526/11557] Building CXX object qtdeclarative/src/qml/CMakeFiles/Qml.dir/qml/qqmldatablob.cpp.obj
                            [2527/11557] Running moc --collect-json for target FbSupportPrivate
                            [2528/11557] Building CXX object qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj
                            FAILED: qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj 
                            C:\mingw64\bin\c++.exe -DLanguageServerPrivate_EXPORTS -DMINGW_HAS_SECURE_API=1 -DQT_ASCII_CAST_WARNINGS -DQT_BUILDING_QT -DQT_BUILD_LANGUAGESERVER_LIB -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_UP_TO=0x040800 -DQT_EXPLICIT_QFILE_CONSTRUCTION_FROM_PATH -DQT_JSONRPC_LIB -DQT_MOC_COMPAT -DQT_NO_AS_CONST=1 -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_STRICT_QLIST_ITERATORS -DQT_USE_QSTRINGBUILDER -DQT_WARN_DEPRECATED_UP_TO=0x070000 -DUNICODE -DWIN32 -DWIN64 -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_UNICODE -D_USE_MATH_DEFINES -D_WIN64 -IC:/QtSource/Developer/Build/qtlanguageserver/src/languageserver/LanguageServerPrivate_autogen/include -IC:/QtSource/Developer/Build/qtbase/include -IC:/QtSource/Developer/Build/qtbase/include/QtLanguageServer -IC:/QtSource/QtSource651/qtlanguageserver/src/languageserver -IC:/QtSource/Developer/Build/qtlanguageserver/src/languageserver -IC:/QtSource/Developer/Build/qtbase/include/QtLanguageServer/6.5.1 -IC:/QtSource/Developer/Build/qtbase/include/QtLanguageServer/6.5.1/QtLanguageServer -IC:/QtSource/Developer/Build/qtbase/src/corelib -IC:/QtSource/Developer/Build/qtbase/include/QtCore/6.5.1 -IC:/QtSource/Developer/Build/qtbase/include/QtCore/6.5.1/QtCore -IC:/QtSource/Developer/Build/qtbase/include/QtCore -IC:/QtSource/QtSource651/qtbase/mkspecs/win32-g++ -IC:/QtSource/Developer/Build/qtbase/include/QtJsonRpc -IC:/QtSource/Developer/Build/qtlanguageserver/src/jsonrpc -IC:/QtSource/Developer/Build/qtbase/include/QtJsonRpc/6.5.1 -IC:/QtSource/Developer/Build/qtbase/include/QtJsonRpc/6.5.1/QtJsonRpc -Wa,-mbig-obj -g -fvisibility=hidden -fno-keep-inline-dllexport -Wall -Wextra -fno-exceptions -Werror -Wno-error=cpp -Wno-error=deprecated-declarations -Wno-error=strict-overflow -Wno-error=implicit-fallthrough -Wno-error=deprecated-copy -Wno-error=redundant-move -Wno-error=init-list-lifetime -Wno-error=format-overflow -Wno-error=stringop-overflow -Wno-error=deprecated-enum-enum-conversion -Wno-error=deprecated-enum-float-conversion -Wno-error=stringop-overread -Wa,-mbig-obj -Wsuggest-override -std=c++17 -Winvalid-pch -include C:/QtSource/Developer/Build/qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/cmake_pch.hxx -MD -MT qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj -MF qtlanguageserver\src\languageserver\CMakeFiles\LanguageServerPrivate.dir\qlanguageservergen.cpp.obj.d -o qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj -c C:/QtSource/QtSource651/qtlanguageserver/src/languageserver/qlanguageservergen.cpp
                            C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/as.exe: qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj: section .pdata$_ZNSt8__detail9__variant5__getINS0_15_Variadic_unionIJN17QLspSpecification16TextDocumentEditENS3_10CreateFileENS3_10RenameFileENS3_10DeleteFileEEEEEEDcSt16in_place_index_tILy0EEOT_: string table overflow at offset 10000051
                            C:\Users\navad\AppData\Local\Temp\ccq698mY.s: Assembler messages:
                            C:\Users\navad\AppData\Local\Temp\ccq698mY.s: Fatal error: qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj: file too big
                            
                            
                            
                            N Offline
                            N Offline
                            Navadvipa Chandra das
                            wrote on last edited by Navadvipa Chandra das
                            #16

                            Hello, Christian Ehrlicher and All!

                            Christian, where have you disappeared to?
                            I have taken the following steps.
                            Delete the source texts about which I downloaded as a file qt-everywhere-src-6.5.1.zip and I used the git command that I took on this page - https://wiki.qt.io/Building_Qt_6_from_Git#Running_Tests .

                            For perl init commands, Strawberry Perl (64-bit) 5.32.1.1-64-bit was installed.
                            And continued various experiments.
                            Installed version 2.5.25 of WinFlexBison. Installed html5lib for Python 3.
                            I installed Visual Studio 2019 and Visual Studio 2022 and installed the necessary package for developing classic C++ applications in each of them.
                            There is nothing surprising in the fact that QtWebEngine cannot be built!

                            warning: There is no basic cpp/winrt support. Some functions may not be available. WARNING: Qt WebEngine will not be created. The build requires Visual Studio 2019 or later. WARNING: QtPdf will not be created. The build requires Visual Studio 2019 or later.

                            But now I get a message related to Vulcan. I updated VulkanSDK to version 1.3.250.0, but it didn't help!

                            [1758/11501] Building RC object qtbase/src/tools/qtpaths/CMakeFiles/qtpaths.dir/qtpaths_longpath.rc.obj
                            [1759/11501] Building CXX object qtbase/src/tools/qvkgen/CMakeFiles/qvkgen.dir/qvkgen.cpp.obj
                            [1760/11501] Linking CXX executable qtbase\bin\qvkgen.exe
                            [1761/11501] Building RC object qtbase/src/tools/androidtestrunner/CMakeFiles/androidtestrunner.dir/androidtestrunner_longpath.rc.obj
                            [1762/11501] Building CXX object qtbase/src/tools/qtpaths/CMakeFiles/qtpaths.dir/qtpaths.cpp.obj
                            [1763/11501] Linking CXX executable qtbase\bin\qtpaths.exe
                            [1764/11501] Automatic MOC for target windeployqt
                            [1765/11501] Building CXX object qtbase/src/tools/androidtestrunner/CMakeFiles/androidtestrunner.dir/main.cpp.obj
                            [1766/11501] Generating windeployqt_resource.rc
                            [1767/11501] Generating vulkan data
                            FAILED: qtbase/src/gui/vulkan/qvulkanfunctions.h qtbase/src/gui/vulkan/qvulkanfunctions_p.h qtbase/src/gui/vulkan/qvulkanfunctions_p.cpp C:/QtSource/Developer/Build/qtbase/src/gui/vulkan/qvulkanfunctions.h C:/QtSource/Developer/Build/qtbase/src/gui/vulkan/qvulkanfunctions_p.h C:/QtSource/Developer/Build/qtbase/src/gui/vulkan/qvulkanfunctions_p.cpp 
                            cmd.exe /C "cd /D C:\QtSource\Developer\Build\qtbase\src\gui && C:\CMake\bin\cmake.exe -E make_directory vulkan && C:\QtSource\Developer\Build\qtbase\bin\qvkgen.exe C:/QtSource/qt6/qtbase/src/gui/vulkan/vk.xml C:/QtSource/qt6/qtbase/src/gui/vulkan/generated_header.txt C:/QtSource/Developer/Build/qtbase/src/gui/vulkan/qvulkanfunctions"
                            [1768/11501] Building CXX object qtbase/src/tools/windeployqt/CMakeFiles/windeployqt.dir/windeployqt_autogen/mocs_compilation.cpp.obj
                            [1769/11501] Linking CXX executable qtbase\bin\androidtestrunner.exe
                            [1770/11501] Linking CXX executable qtbase\bin\qlalr.exe
                            [1771/11501] Building CXX object qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/main.cpp.obj
                            [1772/11501] Linking CXX executable qtbase\bin\uic.exe
                            [1773/11501] Linking CXX shared library qtbase\bin\Qt6Network.dll
                            [1774/11501] Linking CXX shared library qtbase\bin\Qt6DBus.dll
                            ninja: build stopped: subcommand failed.
                            

                            I have Visual Studio Installer showing that the following components are installed:
                            Visual Studio Community 2022
                            Visual Studio Community 2019 (2)
                            Visual Studio Build Tools 2019

                            I am confused by the two in brackets 2019 (2). I doesn't clean up. Once I interrupted the installation of Visual Studio Community 2019, and when I started it again, I got Visual Studio Community 2019 (2). Is this why Qt doesn't find Visual Studio Community 2019?

                            There are a lot of questions, but please, let's solve at least one of them!

                            Thank you very much!
                            With best regards, Navadvipa Chandra das.

                            Christian EhrlicherC 1 Reply Last reply
                            0
                            • N Navadvipa Chandra das

                              Hello, Christian Ehrlicher and All!

                              Christian, where have you disappeared to?
                              I have taken the following steps.
                              Delete the source texts about which I downloaded as a file qt-everywhere-src-6.5.1.zip and I used the git command that I took on this page - https://wiki.qt.io/Building_Qt_6_from_Git#Running_Tests .

                              For perl init commands, Strawberry Perl (64-bit) 5.32.1.1-64-bit was installed.
                              And continued various experiments.
                              Installed version 2.5.25 of WinFlexBison. Installed html5lib for Python 3.
                              I installed Visual Studio 2019 and Visual Studio 2022 and installed the necessary package for developing classic C++ applications in each of them.
                              There is nothing surprising in the fact that QtWebEngine cannot be built!

                              warning: There is no basic cpp/winrt support. Some functions may not be available. WARNING: Qt WebEngine will not be created. The build requires Visual Studio 2019 or later. WARNING: QtPdf will not be created. The build requires Visual Studio 2019 or later.

                              But now I get a message related to Vulcan. I updated VulkanSDK to version 1.3.250.0, but it didn't help!

                              [1758/11501] Building RC object qtbase/src/tools/qtpaths/CMakeFiles/qtpaths.dir/qtpaths_longpath.rc.obj
                              [1759/11501] Building CXX object qtbase/src/tools/qvkgen/CMakeFiles/qvkgen.dir/qvkgen.cpp.obj
                              [1760/11501] Linking CXX executable qtbase\bin\qvkgen.exe
                              [1761/11501] Building RC object qtbase/src/tools/androidtestrunner/CMakeFiles/androidtestrunner.dir/androidtestrunner_longpath.rc.obj
                              [1762/11501] Building CXX object qtbase/src/tools/qtpaths/CMakeFiles/qtpaths.dir/qtpaths.cpp.obj
                              [1763/11501] Linking CXX executable qtbase\bin\qtpaths.exe
                              [1764/11501] Automatic MOC for target windeployqt
                              [1765/11501] Building CXX object qtbase/src/tools/androidtestrunner/CMakeFiles/androidtestrunner.dir/main.cpp.obj
                              [1766/11501] Generating windeployqt_resource.rc
                              [1767/11501] Generating vulkan data
                              FAILED: qtbase/src/gui/vulkan/qvulkanfunctions.h qtbase/src/gui/vulkan/qvulkanfunctions_p.h qtbase/src/gui/vulkan/qvulkanfunctions_p.cpp C:/QtSource/Developer/Build/qtbase/src/gui/vulkan/qvulkanfunctions.h C:/QtSource/Developer/Build/qtbase/src/gui/vulkan/qvulkanfunctions_p.h C:/QtSource/Developer/Build/qtbase/src/gui/vulkan/qvulkanfunctions_p.cpp 
                              cmd.exe /C "cd /D C:\QtSource\Developer\Build\qtbase\src\gui && C:\CMake\bin\cmake.exe -E make_directory vulkan && C:\QtSource\Developer\Build\qtbase\bin\qvkgen.exe C:/QtSource/qt6/qtbase/src/gui/vulkan/vk.xml C:/QtSource/qt6/qtbase/src/gui/vulkan/generated_header.txt C:/QtSource/Developer/Build/qtbase/src/gui/vulkan/qvulkanfunctions"
                              [1768/11501] Building CXX object qtbase/src/tools/windeployqt/CMakeFiles/windeployqt.dir/windeployqt_autogen/mocs_compilation.cpp.obj
                              [1769/11501] Linking CXX executable qtbase\bin\androidtestrunner.exe
                              [1770/11501] Linking CXX executable qtbase\bin\qlalr.exe
                              [1771/11501] Building CXX object qtbase/src/tools/androiddeployqt/CMakeFiles/androiddeployqt.dir/main.cpp.obj
                              [1772/11501] Linking CXX executable qtbase\bin\uic.exe
                              [1773/11501] Linking CXX shared library qtbase\bin\Qt6Network.dll
                              [1774/11501] Linking CXX shared library qtbase\bin\Qt6DBus.dll
                              ninja: build stopped: subcommand failed.
                              

                              I have Visual Studio Installer showing that the following components are installed:
                              Visual Studio Community 2022
                              Visual Studio Community 2019 (2)
                              Visual Studio Build Tools 2019

                              I am confused by the two in brackets 2019 (2). I doesn't clean up. Once I interrupted the installation of Visual Studio Community 2019, and when I started it again, I got Visual Studio Community 2019 (2). Is this why Qt doesn't find Visual Studio Community 2019?

                              There are a lot of questions, but please, let's solve at least one of them!

                              Thank you very much!
                              With best regards, Navadvipa Chandra das.

                              Christian EhrlicherC Offline
                              Christian EhrlicherC Offline
                              Christian Ehrlicher
                              Lifetime Qt Champion
                              wrote on last edited by
                              #17

                              Did you run the command which failes directly on the command line to see what happens?

                              Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
                              Visit the Qt Academy at https://academy.qt.io/catalog

                              N 1 Reply Last reply
                              0
                              • Christian EhrlicherC Christian Ehrlicher

                                Did you run the command which failes directly on the command line to see what happens?

                                N Offline
                                N Offline
                                Navadvipa Chandra das
                                wrote on last edited by
                                #18

                                Hello, Christian and All!

                                I use FAR Manager and run all commands from it. I make two bat files - in the first one I run the second bat file with the output of the result in a log file, which I analyze. Some output of the results goes in addition to the log file to the FAR Manager console.

                                For example so:
                                LogDebugConfig.bat:

                                DebugConfig.bat => ./../Log/DebugConfig.log
                                

                                DebugConfig.bat:

                                set Path=%Path%;C:\PostgreSQL\15\bin
                                set BUILD_DIR=C:/QtSource
                                cd %BUILD_DIR%/Developer/Build
                                %BUILD_DIR%/Qt6/configure -prefix %BUILD_DIR%/Developer/Lib ^
                                -developer-build -nomake tests
                                cd %BUILD_DIR%/Developer/Build
                                

                                But now I have completely deleted my Windows 11 and I want to reinstall it again on a clean, formatted disk. This way it is more reliable and there will be more free space. So far there has been a problem with the installation, so I will need time when I can continue experimenting with Qt on Windows 11.

                                I am currently writing this letter on my Ubuntu 22.04 LTS system. And I had the idea to try to install Qt from the source in this system too. But it also takes time to experiment.

                                Thank You for answer!
                                With best regards, Navadvipa Chandra das.

                                N 1 Reply Last reply
                                0
                                • N Navadvipa Chandra das

                                  Hello, Christian and All!

                                  I use FAR Manager and run all commands from it. I make two bat files - in the first one I run the second bat file with the output of the result in a log file, which I analyze. Some output of the results goes in addition to the log file to the FAR Manager console.

                                  For example so:
                                  LogDebugConfig.bat:

                                  DebugConfig.bat => ./../Log/DebugConfig.log
                                  

                                  DebugConfig.bat:

                                  set Path=%Path%;C:\PostgreSQL\15\bin
                                  set BUILD_DIR=C:/QtSource
                                  cd %BUILD_DIR%/Developer/Build
                                  %BUILD_DIR%/Qt6/configure -prefix %BUILD_DIR%/Developer/Lib ^
                                  -developer-build -nomake tests
                                  cd %BUILD_DIR%/Developer/Build
                                  

                                  But now I have completely deleted my Windows 11 and I want to reinstall it again on a clean, formatted disk. This way it is more reliable and there will be more free space. So far there has been a problem with the installation, so I will need time when I can continue experimenting with Qt on Windows 11.

                                  I am currently writing this letter on my Ubuntu 22.04 LTS system. And I had the idea to try to install Qt from the source in this system too. But it also takes time to experiment.

                                  Thank You for answer!
                                  With best regards, Navadvipa Chandra das.

                                  N Offline
                                  N Offline
                                  Navadvipa Chandra das
                                  wrote on last edited by
                                  #19

                                  Hello Christian and All!

                                  I installed on the latest version of Windows 11 64 bit the necessary programs to compile Qt from source. But it all happened again. In Release mode, compilation is completed successfully. Except I can't compile a module for PostgreSQL. But in the -developer-build mode, compilation ends with an error - qtlanguageserver/src/languageserver/CMakeFiles/LanguageServerPrivate.dir/qlanguageservergen.cpp.obj: file too big[2522/11771]

                                  Here are two output files to the console for configure an make commands.
                                  [https://dropmefiles.com/n60M6](link url)

                                  I exclude from the Path variable
                                  C:\Prg\Strawberry\c\bin
                                  C:\Prg\Strawberry\perl\site\bin
                                  C:\Prg\Strawberry\perl\bin
                                  Actually I'm just renaming the directory C:\Prg\A-Strawberry - otherwise, a lot of confusion turns out, even ld.exe taken from Strawberry!
                                  I also clean up C:\Prg\PostgreSQL\15\bin from Path, since again the confusion turns out.

                                  Thank You!
                                  With best regards, Navadvipa Chandra das.

                                  1 Reply Last reply
                                  0

                                  • Login

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • Users
                                  • Groups
                                  • Search
                                  • Get Qt Extensions
                                  • Unsolved