Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Only Win32 target is supported! And QT Creator layout issue?
Forum Updated to NodeBB v4.3 + New Features

Only Win32 target is supported! And QT Creator layout issue?

Scheduled Pinned Locked Moved Solved General and Desktop
23 Posts 5 Posters 5.4k Views 3 Watching
  • 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.
  • C CPPUIX

    @hazbody21 said in Only Win32 target is supported! And QT Creator layout issue?:

    I have been using an example project that I created on windows

    Could you please try making a new clean project on your current OS and test with it instead? Just to remove all suspicion about imported settings.

    H Offline
    H Offline
    hazbody21
    wrote on last edited by
    #14

    @Abderrahmene_Rayene @ChrisW67
    That was a typo my apologies. I created it with my current OS (Ubuntu 20.04.6 LTS)

    C 1 Reply Last reply
    0
    • H hazbody21

      @Abderrahmene_Rayene @ChrisW67
      That was a typo my apologies. I created it with my current OS (Ubuntu 20.04.6 LTS)

      C Offline
      C Offline
      CPPUIX
      wrote on last edited by
      #15

      @hazbody21 From the errors, It doesn't look like this project you're testing with a clean project.

      Could you confirm if the problem still occurs with a new clean project? Just to make sure whether the problem is about the project you're building, or your compiler.

      H 1 Reply Last reply
      0
      • C CPPUIX

        @hazbody21 From the errors, It doesn't look like this project you're testing with a clean project.

        Could you confirm if the problem still occurs with a new clean project? Just to make sure whether the problem is about the project you're building, or your compiler.

        H Offline
        H Offline
        hazbody21
        wrote on last edited by hazbody21
        #16

        @Abderrahmene_Rayene

        Okay made a blank new project, qmake, qt widgets, here is the compile output:

        11:19:17: Running steps for project clean...
        11:19:17: Starting: "/home/crc/Qt/6.3.1/gcc_64/bin/qmake" /home/crc/clean/clean.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
        Info: creating stash file /home/crc/build-clean-Desktop_Qt_6_3_1_GCC_64bit-Debug/.qmake.stash
        11:19:17: The process "/home/crc/Qt/6.3.1/gcc_64/bin/qmake" exited normally.
        11:19:17: Starting: "/usr/bin/make" -f /home/crc/build-clean-Desktop_Qt_6_3_1_GCC_64bit-Debug/Makefile qmake_all
        /home/crc/build-clean-Desktop_Qt_6_3_1_GCC_64bit-Debug/Makefile:541: warning: overriding recipe for target 'clean'
        /home/crc/build-clean-Desktop_Qt_6_3_1_GCC_64bit-Debug/Makefile:217: warning: ignoring old recipe for target 'clean'
        make: Nothing to be done for 'qmake_all'.
        11:19:17: The process "/usr/bin/make" exited normally.
        11:19:17: Starting: "/usr/bin/make" -j16
        Makefile:541: warning: overriding recipe for target 'clean'
        Makefile:217: warning: ignoring old recipe for target 'clean'
        rm -f moc_predefs.h
        rm -f moc_mainwindow.cpp
        rm -f ui_mainwindow.h
        /home/crc/Qt/6.3.1/gcc_64/libexec/uic ../clean/mainwindow.ui -o ui_mainwindow.h
        g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../clean -I. -I../Qt/6.3.1/gcc_64/include -I../Qt/6.3.1/gcc_64/include/QtWidgets -I../Qt/6.3.1/gcc_64/include/QtGui -I../Qt/6.3.1/gcc_64/include/QtCore -I. -I. -I../Qt/6.3.1/gcc_64/mkspecs/linux-g++ -o main.o ../clean/main.cpp
        g++ -pipe -g -std=gnu++1z -Wall -Wextra -dM -E -o moc_predefs.h ../Qt/6.3.1/gcc_64/mkspecs/features/data/dummy.cpp
        g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../clean -I. -I../Qt/6.3.1/gcc_64/include -I../Qt/6.3.1/gcc_64/include/QtWidgets -I../Qt/6.3.1/gcc_64/include/QtGui -I../Qt/6.3.1/gcc_64/include/QtCore -I. -I. -I../Qt/6.3.1/gcc_64/mkspecs/linux-g++ -o mainwindow.o ../clean/mainwindow.cpp
        /home/crc/Qt/6.3.1/gcc_64/libexec/moc -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include /home/crc/build-clean-Desktop_Qt_6_3_1_GCC_64bit-Debug/moc_predefs.h -I/home/crc/Qt/6.3.1/gcc_64/mkspecs/linux-g++ -I/home/crc/clean -I/home/crc/Qt/6.3.1/gcc_64/include -I/home/crc/Qt/6.3.1/gcc_64/include/QtWidgets -I/home/crc/Qt/6.3.1/gcc_64/include/QtGui -I/home/crc/Qt/6.3.1/gcc_64/include/QtCore -I. -I/usr/include/c++/9 -I/usr/include/x86_64-linux-gnu/c++/9 -I/usr/include/c++/9/backward -I/usr/lib/gcc/x86_64-linux-gnu/9/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include ../clean/mainwindow.h -o moc_mainwindow.cpp
        In file included from /usr/include/c++/9/cwchar:44,
                         from /usr/include/c++/9/bits/postypes.h:40,
                         from /usr/include/c++/9/bits/char_traits.h:40,
                         from /usr/include/c++/9/string:40,
                         from /usr/include/c++/9/stdexcept:39,
                         from /usr/include/c++/9/optional:38,
                         from ../Qt/6.3.1/gcc_64/include/QtCore/qtypeinfo.h:44,
                         from ../Qt/6.3.1/gcc_64/include/QtCore/qglobal.h:1472,
                         from ../Qt/6.3.1/gcc_64/include/QtGui/qtguiglobal.h:43,
                         from ../Qt/6.3.1/gcc_64/include/QtWidgets/qtwidgetsglobal.h:43,
                         from ../Qt/6.3.1/gcc_64/include/QtWidgets/qmainwindow.h:43,
                         from ../Qt/6.3.1/gcc_64/include/QtWidgets/QMainWindow:1,
                         from ../clean/mainwindow.h:4,
                         from ../clean/main.cpp:1:
        /usr/include/wchar.h:10:10: fatal error: _mingw_print_push.h: No such file or directory
           10 | #include <_mingw_print_push.h>
              |          ^~~~~~~~~~~~~~~~~~~~~
        In file included from /usr/include/c++/9/cwchar:44,
                         from /usr/include/c++/9/bits/postypes.h:40,
                         from /usr/include/c++/9/bits/char_traits.h:40,
                         from /usr/include/c++/9/string:40,
                         from /usr/include/c++/9/stdexcept:39,
                         from /usr/include/c++/9/optional:38,
                         from ../Qt/6.3.1/gcc_64/include/QtCore/qtypeinfo.h:44,
                         from ../Qt/6.3.1/gcc_64/include/QtCore/qglobal.h:1472,
                         from ../Qt/6.3.1/gcc_64/include/QtGui/qtguiglobal.h:43,
                         from ../Qt/6.3.1/gcc_64/include/QtWidgets/qtwidgetsglobal.h:43,
                         from ../Qt/6.3.1/gcc_64/include/QtWidgets/qmainwindow.h:43,
                         from ../Qt/6.3.1/gcc_64/include/QtWidgets/QMainWindow:1,
                         from ../clean/mainwindow.h:4,
                         from ../clean/mainwindow.cpp:1:
        /usr/include/wchar.h:10:10: fatal error: _mingw_print_push.h: No such file or directory
           10 | #include <_mingw_print_push.h>
              |          ^~~~~~~~~~~~~~~~~~~~~
        compilation terminated.
        compilation terminated.
        make: *** [Makefile:1026: mainwindow.o] Error 1
        make: *** Waiting for unfinished jobs....
        make: *** [Makefile:888: main.o] Error 1
        11:19:17: The process "/usr/bin/make" exited with code 2.
        Error while building/deploying project clean (kit: Desktop Qt 6.3.1 GCC 64bit)
        When executing step "Make"
        11:19:17: Elapsed time: 00:00.
        
        Christian EhrlicherC 1 Reply Last reply
        0
        • H hazbody21

          @Abderrahmene_Rayene

          Okay made a blank new project, qmake, qt widgets, here is the compile output:

          11:19:17: Running steps for project clean...
          11:19:17: Starting: "/home/crc/Qt/6.3.1/gcc_64/bin/qmake" /home/crc/clean/clean.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug
          Info: creating stash file /home/crc/build-clean-Desktop_Qt_6_3_1_GCC_64bit-Debug/.qmake.stash
          11:19:17: The process "/home/crc/Qt/6.3.1/gcc_64/bin/qmake" exited normally.
          11:19:17: Starting: "/usr/bin/make" -f /home/crc/build-clean-Desktop_Qt_6_3_1_GCC_64bit-Debug/Makefile qmake_all
          /home/crc/build-clean-Desktop_Qt_6_3_1_GCC_64bit-Debug/Makefile:541: warning: overriding recipe for target 'clean'
          /home/crc/build-clean-Desktop_Qt_6_3_1_GCC_64bit-Debug/Makefile:217: warning: ignoring old recipe for target 'clean'
          make: Nothing to be done for 'qmake_all'.
          11:19:17: The process "/usr/bin/make" exited normally.
          11:19:17: Starting: "/usr/bin/make" -j16
          Makefile:541: warning: overriding recipe for target 'clean'
          Makefile:217: warning: ignoring old recipe for target 'clean'
          rm -f moc_predefs.h
          rm -f moc_mainwindow.cpp
          rm -f ui_mainwindow.h
          /home/crc/Qt/6.3.1/gcc_64/libexec/uic ../clean/mainwindow.ui -o ui_mainwindow.h
          g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../clean -I. -I../Qt/6.3.1/gcc_64/include -I../Qt/6.3.1/gcc_64/include/QtWidgets -I../Qt/6.3.1/gcc_64/include/QtGui -I../Qt/6.3.1/gcc_64/include/QtCore -I. -I. -I../Qt/6.3.1/gcc_64/mkspecs/linux-g++ -o main.o ../clean/main.cpp
          g++ -pipe -g -std=gnu++1z -Wall -Wextra -dM -E -o moc_predefs.h ../Qt/6.3.1/gcc_64/mkspecs/features/data/dummy.cpp
          g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../clean -I. -I../Qt/6.3.1/gcc_64/include -I../Qt/6.3.1/gcc_64/include/QtWidgets -I../Qt/6.3.1/gcc_64/include/QtGui -I../Qt/6.3.1/gcc_64/include/QtCore -I. -I. -I../Qt/6.3.1/gcc_64/mkspecs/linux-g++ -o mainwindow.o ../clean/mainwindow.cpp
          /home/crc/Qt/6.3.1/gcc_64/libexec/moc -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB --include /home/crc/build-clean-Desktop_Qt_6_3_1_GCC_64bit-Debug/moc_predefs.h -I/home/crc/Qt/6.3.1/gcc_64/mkspecs/linux-g++ -I/home/crc/clean -I/home/crc/Qt/6.3.1/gcc_64/include -I/home/crc/Qt/6.3.1/gcc_64/include/QtWidgets -I/home/crc/Qt/6.3.1/gcc_64/include/QtGui -I/home/crc/Qt/6.3.1/gcc_64/include/QtCore -I. -I/usr/include/c++/9 -I/usr/include/x86_64-linux-gnu/c++/9 -I/usr/include/c++/9/backward -I/usr/lib/gcc/x86_64-linux-gnu/9/include -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include ../clean/mainwindow.h -o moc_mainwindow.cpp
          In file included from /usr/include/c++/9/cwchar:44,
                           from /usr/include/c++/9/bits/postypes.h:40,
                           from /usr/include/c++/9/bits/char_traits.h:40,
                           from /usr/include/c++/9/string:40,
                           from /usr/include/c++/9/stdexcept:39,
                           from /usr/include/c++/9/optional:38,
                           from ../Qt/6.3.1/gcc_64/include/QtCore/qtypeinfo.h:44,
                           from ../Qt/6.3.1/gcc_64/include/QtCore/qglobal.h:1472,
                           from ../Qt/6.3.1/gcc_64/include/QtGui/qtguiglobal.h:43,
                           from ../Qt/6.3.1/gcc_64/include/QtWidgets/qtwidgetsglobal.h:43,
                           from ../Qt/6.3.1/gcc_64/include/QtWidgets/qmainwindow.h:43,
                           from ../Qt/6.3.1/gcc_64/include/QtWidgets/QMainWindow:1,
                           from ../clean/mainwindow.h:4,
                           from ../clean/main.cpp:1:
          /usr/include/wchar.h:10:10: fatal error: _mingw_print_push.h: No such file or directory
             10 | #include <_mingw_print_push.h>
                |          ^~~~~~~~~~~~~~~~~~~~~
          In file included from /usr/include/c++/9/cwchar:44,
                           from /usr/include/c++/9/bits/postypes.h:40,
                           from /usr/include/c++/9/bits/char_traits.h:40,
                           from /usr/include/c++/9/string:40,
                           from /usr/include/c++/9/stdexcept:39,
                           from /usr/include/c++/9/optional:38,
                           from ../Qt/6.3.1/gcc_64/include/QtCore/qtypeinfo.h:44,
                           from ../Qt/6.3.1/gcc_64/include/QtCore/qglobal.h:1472,
                           from ../Qt/6.3.1/gcc_64/include/QtGui/qtguiglobal.h:43,
                           from ../Qt/6.3.1/gcc_64/include/QtWidgets/qtwidgetsglobal.h:43,
                           from ../Qt/6.3.1/gcc_64/include/QtWidgets/qmainwindow.h:43,
                           from ../Qt/6.3.1/gcc_64/include/QtWidgets/QMainWindow:1,
                           from ../clean/mainwindow.h:4,
                           from ../clean/mainwindow.cpp:1:
          /usr/include/wchar.h:10:10: fatal error: _mingw_print_push.h: No such file or directory
             10 | #include <_mingw_print_push.h>
                |          ^~~~~~~~~~~~~~~~~~~~~
          compilation terminated.
          compilation terminated.
          make: *** [Makefile:1026: mainwindow.o] Error 1
          make: *** Waiting for unfinished jobs....
          make: *** [Makefile:888: main.o] Error 1
          11:19:17: The process "/usr/bin/make" exited with code 2.
          Error while building/deploying project clean (kit: Desktop Qt 6.3.1 GCC 64bit)
          When executing step "Make"
          11:19:17: Elapsed time: 00:00.
          
          Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #17

          @hazbody21 said in Only Win32 target is supported! And QT Creator layout issue?:

          10 | #include <_mingw_print_push.h>

          As you can see your system is still screwed up. Re-install the compiler toolchain and all what depends on it so the correct headers are in /usr/include

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

          H 1 Reply Last reply
          1
          • Christian EhrlicherC Christian Ehrlicher

            @hazbody21 said in Only Win32 target is supported! And QT Creator layout issue?:

            10 | #include <_mingw_print_push.h>

            As you can see your system is still screwed up. Re-install the compiler toolchain and all what depends on it so the correct headers are in /usr/include

            H Offline
            H Offline
            hazbody21
            wrote on last edited by
            #18

            @Christian-Ehrlicher
            I've removed the desktop gcc shown below through the maintenance tool, rebooted, then installed it again. Not sure where else I could've reinstalled.
            16466291-551d-4b90-b1b4-f1a7ca12f791-image.png
            Compile output:

            12:26:52: Running steps for project cleanproj...
            12:26:52: Configuration unchanged, skipping qmake step.
            12:26:53: Starting: "/usr/bin/make" -j16
            g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../cleanproj -I. -I../Qt/6.3.1/gcc_64/include -I../Qt/6.3.1/gcc_64/include/QtWidgets -I../Qt/6.3.1/gcc_64/include/QtGui -I../Qt/6.3.1/gcc_64/include/QtCore -I. -I. -I../Qt/6.3.1/gcc_64/mkspecs/linux-g++ -o main.o ../cleanproj/main.cpp
            g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../cleanproj -I. -I../Qt/6.3.1/gcc_64/include -I../Qt/6.3.1/gcc_64/include/QtWidgets -I../Qt/6.3.1/gcc_64/include/QtGui -I../Qt/6.3.1/gcc_64/include/QtCore -I. -I. -I../Qt/6.3.1/gcc_64/mkspecs/linux-g++ -o mainwindow.o ../cleanproj/mainwindow.cpp
            g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../cleanproj -I. -I../Qt/6.3.1/gcc_64/include -I../Qt/6.3.1/gcc_64/include/QtWidgets -I../Qt/6.3.1/gcc_64/include/QtGui -I../Qt/6.3.1/gcc_64/include/QtCore -I. -I. -I../Qt/6.3.1/gcc_64/mkspecs/linux-g++ -o moc_mainwindow.o moc_mainwindow.cpp
            In file included from /usr/include/c++/9/cwchar:44,
                             from /usr/include/c++/9/bits/postypes.h:40,
                             from /usr/include/c++/9/iosfwd:40,
                             from /usr/include/c++/9/memory:72,
                             from moc_mainwindow.cpp:9:
            /usr/include/wchar.h:10:10: fatal error: _mingw_print_push.h: No such file or directory
               10 | #include <_mingw_print_push.h>
                  |          ^~~~~~~~~~~~~~~~~~~~~
            compilation terminated.
            In file included from /usr/include/c++/9/cwchar:44,
                             from /usr/include/c++/9/bits/postypes.h:40,
                             from /usr/include/c++/9/bits/char_traits.h:40,
                             from /usr/include/c++/9/string:40,
                             from /usr/include/c++/9/stdexcept:39,
                             from /usr/include/c++/9/optional:38,
                             from ../Qt/6.3.1/gcc_64/include/QtCore/qtypeinfo.h:44,
                             from ../Qt/6.3.1/gcc_64/include/QtCore/qglobal.h:1472,
                             from ../Qt/6.3.1/gcc_64/include/QtGui/qtguiglobal.h:43,
                             from ../Qt/6.3.1/gcc_64/include/QtWidgets/qtwidgetsglobal.h:43,
                             from ../Qt/6.3.1/gcc_64/include/QtWidgets/qmainwindow.h:43,
                             from ../Qt/6.3.1/gcc_64/include/QtWidgets/QMainWindow:1,
                             from ../cleanproj/mainwindow.h:4,
                             from ../cleanproj/main.cpp:1:
            /usr/include/wchar.h:10:10: fatal error: _mingw_print_push.h: No such file or directory
               10 | #include <_mingw_print_push.h>
                  |          ^~~~~~~~~~~~~~~~~~~~~
            compilation terminated.
            In file included from /usr/include/c++/9/cwchar:44,
                             from /usr/include/c++/9/bits/postypes.h:40,
                             from /usr/include/c++/9/bits/char_traits.h:40,
                             from /usr/include/c++/9/string:40,
                             from /usr/include/c++/9/stdexcept:39,
                             from /usr/include/c++/9/optional:38,
                             from ../Qt/6.3.1/gcc_64/include/QtCore/qtypeinfo.h:44,
                             from ../Qt/6.3.1/gcc_64/include/QtCore/qglobal.h:1472,
                             from ../Qt/6.3.1/gcc_64/include/QtGui/qtguiglobal.h:43,
                             from ../Qt/6.3.1/gcc_64/include/QtWidgets/qtwidgetsglobal.h:43,
                             from ../Qt/6.3.1/gcc_64/include/QtWidgets/qmainwindow.h:43,
                             from ../Qt/6.3.1/gcc_64/include/QtWidgets/QMainWindow:1,
                             from ../cleanproj/mainwindow.h:4,
                             from ../cleanproj/mainwindow.cpp:1:
            /usr/include/wchar.h:10:10: fatal error: _mingw_print_push.h: No such file or directory
               10 | #include <_mingw_print_push.h>
                  |          ^~~~~~~~~~~~~~~~~~~~~
            compilation terminated.
            make: *** [Makefile:888: main.o] Error 1
            make: *** Waiting for unfinished jobs....
            make: *** [Makefile:1029: moc_mainwindow.o] Error 1
            make: *** [Makefile:1026: mainwindow.o] Error 1
            12:26:53: The process "/usr/bin/make" exited with code 2.
            Error while building/deploying project cleanproj (kit: Desktop Qt 6.3.1 GCC 64bit)
            When executing step "Make"
            12:26:53: Elapsed time: 00:00.
            
            
            Christian EhrlicherC C 2 Replies Last reply
            0
            • H hazbody21

              @Christian-Ehrlicher
              I've removed the desktop gcc shown below through the maintenance tool, rebooted, then installed it again. Not sure where else I could've reinstalled.
              16466291-551d-4b90-b1b4-f1a7ca12f791-image.png
              Compile output:

              12:26:52: Running steps for project cleanproj...
              12:26:52: Configuration unchanged, skipping qmake step.
              12:26:53: Starting: "/usr/bin/make" -j16
              g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../cleanproj -I. -I../Qt/6.3.1/gcc_64/include -I../Qt/6.3.1/gcc_64/include/QtWidgets -I../Qt/6.3.1/gcc_64/include/QtGui -I../Qt/6.3.1/gcc_64/include/QtCore -I. -I. -I../Qt/6.3.1/gcc_64/mkspecs/linux-g++ -o main.o ../cleanproj/main.cpp
              g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../cleanproj -I. -I../Qt/6.3.1/gcc_64/include -I../Qt/6.3.1/gcc_64/include/QtWidgets -I../Qt/6.3.1/gcc_64/include/QtGui -I../Qt/6.3.1/gcc_64/include/QtCore -I. -I. -I../Qt/6.3.1/gcc_64/mkspecs/linux-g++ -o mainwindow.o ../cleanproj/mainwindow.cpp
              g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../cleanproj -I. -I../Qt/6.3.1/gcc_64/include -I../Qt/6.3.1/gcc_64/include/QtWidgets -I../Qt/6.3.1/gcc_64/include/QtGui -I../Qt/6.3.1/gcc_64/include/QtCore -I. -I. -I../Qt/6.3.1/gcc_64/mkspecs/linux-g++ -o moc_mainwindow.o moc_mainwindow.cpp
              In file included from /usr/include/c++/9/cwchar:44,
                               from /usr/include/c++/9/bits/postypes.h:40,
                               from /usr/include/c++/9/iosfwd:40,
                               from /usr/include/c++/9/memory:72,
                               from moc_mainwindow.cpp:9:
              /usr/include/wchar.h:10:10: fatal error: _mingw_print_push.h: No such file or directory
                 10 | #include <_mingw_print_push.h>
                    |          ^~~~~~~~~~~~~~~~~~~~~
              compilation terminated.
              In file included from /usr/include/c++/9/cwchar:44,
                               from /usr/include/c++/9/bits/postypes.h:40,
                               from /usr/include/c++/9/bits/char_traits.h:40,
                               from /usr/include/c++/9/string:40,
                               from /usr/include/c++/9/stdexcept:39,
                               from /usr/include/c++/9/optional:38,
                               from ../Qt/6.3.1/gcc_64/include/QtCore/qtypeinfo.h:44,
                               from ../Qt/6.3.1/gcc_64/include/QtCore/qglobal.h:1472,
                               from ../Qt/6.3.1/gcc_64/include/QtGui/qtguiglobal.h:43,
                               from ../Qt/6.3.1/gcc_64/include/QtWidgets/qtwidgetsglobal.h:43,
                               from ../Qt/6.3.1/gcc_64/include/QtWidgets/qmainwindow.h:43,
                               from ../Qt/6.3.1/gcc_64/include/QtWidgets/QMainWindow:1,
                               from ../cleanproj/mainwindow.h:4,
                               from ../cleanproj/main.cpp:1:
              /usr/include/wchar.h:10:10: fatal error: _mingw_print_push.h: No such file or directory
                 10 | #include <_mingw_print_push.h>
                    |          ^~~~~~~~~~~~~~~~~~~~~
              compilation terminated.
              In file included from /usr/include/c++/9/cwchar:44,
                               from /usr/include/c++/9/bits/postypes.h:40,
                               from /usr/include/c++/9/bits/char_traits.h:40,
                               from /usr/include/c++/9/string:40,
                               from /usr/include/c++/9/stdexcept:39,
                               from /usr/include/c++/9/optional:38,
                               from ../Qt/6.3.1/gcc_64/include/QtCore/qtypeinfo.h:44,
                               from ../Qt/6.3.1/gcc_64/include/QtCore/qglobal.h:1472,
                               from ../Qt/6.3.1/gcc_64/include/QtGui/qtguiglobal.h:43,
                               from ../Qt/6.3.1/gcc_64/include/QtWidgets/qtwidgetsglobal.h:43,
                               from ../Qt/6.3.1/gcc_64/include/QtWidgets/qmainwindow.h:43,
                               from ../Qt/6.3.1/gcc_64/include/QtWidgets/QMainWindow:1,
                               from ../cleanproj/mainwindow.h:4,
                               from ../cleanproj/mainwindow.cpp:1:
              /usr/include/wchar.h:10:10: fatal error: _mingw_print_push.h: No such file or directory
                 10 | #include <_mingw_print_push.h>
                    |          ^~~~~~~~~~~~~~~~~~~~~
              compilation terminated.
              make: *** [Makefile:888: main.o] Error 1
              make: *** Waiting for unfinished jobs....
              make: *** [Makefile:1029: moc_mainwindow.o] Error 1
              make: *** [Makefile:1026: mainwindow.o] Error 1
              12:26:53: The process "/usr/bin/make" exited with code 2.
              Error while building/deploying project cleanproj (kit: Desktop Qt 6.3.1 GCC 64bit)
              When executing step "Make"
              12:26:53: Elapsed time: 00:00.
              
              
              Christian EhrlicherC Offline
              Christian EhrlicherC Offline
              Christian Ehrlicher
              Lifetime Qt Champion
              wrote on last edited by
              #19

              @hazbody21 said in Only Win32 target is supported! And QT Creator layout issue?:

              I've removed the desktop gcc shown below through the maintenance tool, rebooted, then installed it again. Not sure where else I could've reinstalled.

              The Qt installer will not fix your system installation nor install anything in there.
              Your complete system is broken - you can't even compile a simple application on the commmand line as soon as you include wchar.h

              There is nothing Qt nor a Qt installer can do here. It doesn't even created this.

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

              1 Reply Last reply
              0
              • H hazbody21

                @Christian-Ehrlicher
                I've removed the desktop gcc shown below through the maintenance tool, rebooted, then installed it again. Not sure where else I could've reinstalled.
                16466291-551d-4b90-b1b4-f1a7ca12f791-image.png
                Compile output:

                12:26:52: Running steps for project cleanproj...
                12:26:52: Configuration unchanged, skipping qmake step.
                12:26:53: Starting: "/usr/bin/make" -j16
                g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../cleanproj -I. -I../Qt/6.3.1/gcc_64/include -I../Qt/6.3.1/gcc_64/include/QtWidgets -I../Qt/6.3.1/gcc_64/include/QtGui -I../Qt/6.3.1/gcc_64/include/QtCore -I. -I. -I../Qt/6.3.1/gcc_64/mkspecs/linux-g++ -o main.o ../cleanproj/main.cpp
                g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../cleanproj -I. -I../Qt/6.3.1/gcc_64/include -I../Qt/6.3.1/gcc_64/include/QtWidgets -I../Qt/6.3.1/gcc_64/include/QtGui -I../Qt/6.3.1/gcc_64/include/QtCore -I. -I. -I../Qt/6.3.1/gcc_64/mkspecs/linux-g++ -o mainwindow.o ../cleanproj/mainwindow.cpp
                g++ -c -pipe -g -std=gnu++1z -Wall -Wextra -D_REENTRANT -fPIC -DQT_QML_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I../cleanproj -I. -I../Qt/6.3.1/gcc_64/include -I../Qt/6.3.1/gcc_64/include/QtWidgets -I../Qt/6.3.1/gcc_64/include/QtGui -I../Qt/6.3.1/gcc_64/include/QtCore -I. -I. -I../Qt/6.3.1/gcc_64/mkspecs/linux-g++ -o moc_mainwindow.o moc_mainwindow.cpp
                In file included from /usr/include/c++/9/cwchar:44,
                                 from /usr/include/c++/9/bits/postypes.h:40,
                                 from /usr/include/c++/9/iosfwd:40,
                                 from /usr/include/c++/9/memory:72,
                                 from moc_mainwindow.cpp:9:
                /usr/include/wchar.h:10:10: fatal error: _mingw_print_push.h: No such file or directory
                   10 | #include <_mingw_print_push.h>
                      |          ^~~~~~~~~~~~~~~~~~~~~
                compilation terminated.
                In file included from /usr/include/c++/9/cwchar:44,
                                 from /usr/include/c++/9/bits/postypes.h:40,
                                 from /usr/include/c++/9/bits/char_traits.h:40,
                                 from /usr/include/c++/9/string:40,
                                 from /usr/include/c++/9/stdexcept:39,
                                 from /usr/include/c++/9/optional:38,
                                 from ../Qt/6.3.1/gcc_64/include/QtCore/qtypeinfo.h:44,
                                 from ../Qt/6.3.1/gcc_64/include/QtCore/qglobal.h:1472,
                                 from ../Qt/6.3.1/gcc_64/include/QtGui/qtguiglobal.h:43,
                                 from ../Qt/6.3.1/gcc_64/include/QtWidgets/qtwidgetsglobal.h:43,
                                 from ../Qt/6.3.1/gcc_64/include/QtWidgets/qmainwindow.h:43,
                                 from ../Qt/6.3.1/gcc_64/include/QtWidgets/QMainWindow:1,
                                 from ../cleanproj/mainwindow.h:4,
                                 from ../cleanproj/main.cpp:1:
                /usr/include/wchar.h:10:10: fatal error: _mingw_print_push.h: No such file or directory
                   10 | #include <_mingw_print_push.h>
                      |          ^~~~~~~~~~~~~~~~~~~~~
                compilation terminated.
                In file included from /usr/include/c++/9/cwchar:44,
                                 from /usr/include/c++/9/bits/postypes.h:40,
                                 from /usr/include/c++/9/bits/char_traits.h:40,
                                 from /usr/include/c++/9/string:40,
                                 from /usr/include/c++/9/stdexcept:39,
                                 from /usr/include/c++/9/optional:38,
                                 from ../Qt/6.3.1/gcc_64/include/QtCore/qtypeinfo.h:44,
                                 from ../Qt/6.3.1/gcc_64/include/QtCore/qglobal.h:1472,
                                 from ../Qt/6.3.1/gcc_64/include/QtGui/qtguiglobal.h:43,
                                 from ../Qt/6.3.1/gcc_64/include/QtWidgets/qtwidgetsglobal.h:43,
                                 from ../Qt/6.3.1/gcc_64/include/QtWidgets/qmainwindow.h:43,
                                 from ../Qt/6.3.1/gcc_64/include/QtWidgets/QMainWindow:1,
                                 from ../cleanproj/mainwindow.h:4,
                                 from ../cleanproj/mainwindow.cpp:1:
                /usr/include/wchar.h:10:10: fatal error: _mingw_print_push.h: No such file or directory
                   10 | #include <_mingw_print_push.h>
                      |          ^~~~~~~~~~~~~~~~~~~~~
                compilation terminated.
                make: *** [Makefile:888: main.o] Error 1
                make: *** Waiting for unfinished jobs....
                make: *** [Makefile:1029: moc_mainwindow.o] Error 1
                make: *** [Makefile:1026: mainwindow.o] Error 1
                12:26:53: The process "/usr/bin/make" exited with code 2.
                Error while building/deploying project cleanproj (kit: Desktop Qt 6.3.1 GCC 64bit)
                When executing step "Make"
                12:26:53: Elapsed time: 00:00.
                
                
                C Offline
                C Offline
                CPPUIX
                wrote on last edited by
                #20

                @hazbody21 Try running this command:

                sudo apt-get install --reinstall build-essentials

                H 1 Reply Last reply
                0
                • C CPPUIX

                  @hazbody21 Try running this command:

                  sudo apt-get install --reinstall build-essentials

                  H Offline
                  H Offline
                  hazbody21
                  wrote on last edited by hazbody21
                  #21

                  @Abderrahmene_Rayene Thank you for the suggestion, even after a reboot. Still getting the exact same errors.
                  842b6889-7de7-4aab-bf28-c426942de0f1-image.png
                  @Christian-Ehrlicher what suggestions do you have to address this?

                  SGaistS 1 Reply Last reply
                  0
                  • H hazbody21

                    @Abderrahmene_Rayene Thank you for the suggestion, even after a reboot. Still getting the exact same errors.
                    842b6889-7de7-4aab-bf28-c426942de0f1-image.png
                    @Christian-Ehrlicher what suggestions do you have to address this?

                    SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #22

                    @hazbody21 build-essentials being a meta package you can see that only it was reinstalled not the ones you are looking for. I would uninstall it and all its dependencies and then reinstall it.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    H 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      @hazbody21 build-essentials being a meta package you can see that only it was reinstalled not the ones you are looking for. I would uninstall it and all its dependencies and then reinstall it.

                      H Offline
                      H Offline
                      hazbody21
                      wrote on last edited by
                      #23

                      I got it! I somehow indeed broke the system and reinstalling all the dependencies fixed it:

                      apt-cache depends build-essential  | grep '[ |]Depends: [^<]' | cut -d: -f2 | tr -d ' ' | xargs sudo apt-get --reinstall install
                      

                      Thank you @SGaist, @Christian-Ehrlicher, and @Abderrahmene_Rayene

                      1 Reply Last reply
                      3
                      • H hazbody21 has marked this topic as solved on

                      • Login

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