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.2k 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.
  • H hazbody21

    @ChrisW67
    Thank you for replying.
    No I'm not doing anything with windows. I'm aware mingw is wrong and tried deleting it but it seems it's not even there:
    22d97452-3922-4571-b631-06e2b9ec17b8-image.png

    I have been using an example project that I created on windows ubuntu from the preset examples and still throws the same error. Here is the example application, I deleted blah.pro.user:
    70b9f429-7635-4327-ba63-f950bd8bcffc-image.png
    Afterwards I started qtcreator and opened the project, attempted to build, here are the first few issues:
    d96ddf1f-8dee-4d78-a57a-5ce6ed4e1536-image.png

    here is part of the compile output:

    2436 |     d->f.PrimitiveBoundingBox(minX, minY, minZ, minW, maxX, maxY, maxZ, maxW);
         |          ^~~~~~~~~~~~~~~~~~~~
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h: In member function ‘void QOpenGLExtraFunctions::glPushDebugGroup(GLenum, GLuint, GLsizei, const GLchar*)’:
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h:2444:10: error: ‘struct QOpenGLExtraFunctionsPrivate::Functions’ has no member named ‘PushDebugGroup’
    2444 |     d->f.PushDebugGroup(source, id, length, message);
         |          ^~~~~~~~~~~~~~
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h: In member function ‘void QOpenGLExtraFunctions::glReadnPixels(GLint, GLint, GLsizei, GLsizei, GLenum, GLenum, GLsizei, void*)’:
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h:2452:10: error: ‘struct QOpenGLExtraFunctionsPrivate::Functions’ has no member named ‘ReadnPixels’
    2452 |     d->f.ReadnPixels(x, y, width, height, format, type, bufSize, data);
         |          ^~~~~~~~~~~
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h: In member function ‘void QOpenGLExtraFunctions::glSamplerParameterIiv(GLuint, GLenum, const GLint*)’:
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h:2460:10: error: ‘struct QOpenGLExtraFunctionsPrivate::Functions’ has no member named ‘SamplerParameterIiv’
    2460 |     d->f.SamplerParameterIiv(sampler, pname, param);
         |          ^~~~~~~~~~~~~~~~~~~
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h: In member function ‘void QOpenGLExtraFunctions::glSamplerParameterIuiv(GLuint, GLenum, const GLuint*)’:
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h:2468:10: error: ‘struct QOpenGLExtraFunctionsPrivate::Functions’ has no member named ‘SamplerParameterIuiv’
    2468 |     d->f.SamplerParameterIuiv(sampler, pname, param);
         |          ^~~~~~~~~~~~~~~~~~~~
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h: In member function ‘void QOpenGLExtraFunctions::glTexBuffer(GLenum, GLenum, GLuint)’:
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h:2476:10: error: ‘struct QOpenGLExtraFunctionsPrivate::Functions’ has no member named ‘TexBuffer’
    2476 |     d->f.TexBuffer(target, internalformat, buffer);
         |          ^~~~~~~~~
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h: In member function ‘void QOpenGLExtraFunctions::glTexBufferRange(GLenum, GLenum, GLuint, GLintptr, GLsizeiptr)’:
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h:2484:10: error: ‘struct QOpenGLExtraFunctionsPrivate::Functions’ has no member named ‘TexBufferRange’
    2484 |     d->f.TexBufferRange(target, internalformat, buffer, offset, size);
         |          ^~~~~~~~~~~~~~
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h: In member function ‘void QOpenGLExtraFunctions::glTexParameterIiv(GLenum, GLenum, const GLint*)’:
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h:2492:10: error: ‘struct QOpenGLExtraFunctionsPrivate::Functions’ has no member named ‘TexParameterIiv’
    2492 |     d->f.TexParameterIiv(target, pname, params);
         |          ^~~~~~~~~~~~~~~
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h: In member function ‘void QOpenGLExtraFunctions::glTexParameterIuiv(GLenum, GLenum, const GLuint*)’:
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h:2500:10: error: ‘struct QOpenGLExtraFunctionsPrivate::Functions’ has no member named ‘TexParameterIuiv’
    2500 |     d->f.TexParameterIuiv(target, pname, params);
         |          ^~~~~~~~~~~~~~~~
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h: In member function ‘void QOpenGLExtraFunctions::glTexStorage3DMultisample(GLenum, GLsizei, GLenum, GLsizei, GLsizei, GLsizei, GLboolean)’:
    ../Qt/6.3.1/gcc_64/include/QtGui/qopenglextrafunctions.h:2508:10: error: ‘struct QOpenGLExtraFunctionsPrivate::Functions’ has no member named ‘TexStorage3DMultisample’
    2508 |     d->f.TexStorage3DMultisample(target, samples, internalformat, width, height, depth, fixedsamplelocations);
         |          ^~~~~~~~~~~~~~~~~~~~~~~
    ../application/mainwindow.cpp: In constructor ‘MainWindow::MainWindow()’:
    ../application/mainwindow.cpp:73:22: error: ‘setFallbackSessionManagementEnabled’ is not a member of ‘QGuiApplication’
      73 |     QGuiApplication::setFallbackSessionManagementEnabled(false);
         |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../application/mainwindow.cpp: In member function ‘void MainWindow::readSettings()’:
    ../application/mainwindow.cpp:284:55: error: ‘desktop’ is not a member of ‘QApplication’
     284 |         const QRect availableGeometry = QApplication::desktop()->availableGeometry(this);
         |                                                       ^~~~~~~
    In file included from ../Qt/6.3.1/gcc_64/include/QtCore/qnumeric.h:44,
                    from ../Qt/6.3.1/gcc_64/include/QtCore/qglobal.h:1480,
                    from ../Qt/6.3.1/gcc_64/include/QtCore/QtCore:4,
                    from ../Qt/6.3.1/gcc_64/include/QtWidgets/QtWidgetsDepends:3,
                    from ../Qt/6.3.1/gcc_64/include/QtWidgets/QtWidgets:3,
                    from ../application/mainwindow.cpp:52:
    /usr/include/c++/9/cmath: In instantiation of ‘_Tp std::__hypot3(_Tp, _Tp, _Tp) [with _Tp = double]’:
    /usr/include/c++/9/cmath:1873:47:   required from here
    /usr/include/c++/9/cmath:1860:24: error: call of overloaded ‘sqrt(double)’ is ambiguous
    1860 |  return __a * std::sqrt((__x / __a) * (__x / __a)
         |               ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
    1861 |           + (__y / __a) * (__y / __a)
         |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    1862 |           + (__z / __a) * (__z / __a));
         |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    /usr/include/c++/9/cmath:463:3: note: candidate: ‘constexpr float std::sqrt(float)’
     463 |   sqrt(float __x)
         |   ^~~~
    /usr/include/c++/9/cmath:467:3: note: candidate: ‘constexpr long double std::sqrt(long double)’
     467 |   sqrt(long double __x)
         |   ^~~~
    In file included from ../Qt/6.3.1/gcc_64/include/QtCore/qstring.h:56,
                    from ../Qt/6.3.1/gcc_64/include/QtCore/qobject.h:47,
                    from ../Qt/6.3.1/gcc_64/include/QtCore/qabstractanimation.h:43,
                    from ../Qt/6.3.1/gcc_64/include/QtCore/QtCore:9,
                    from ../Qt/6.3.1/gcc_64/include/QtWidgets/QtWidgetsDepends:3,
                    from ../Qt/6.3.1/gcc_64/include/QtWidgets/QtWidgets:3,
                    from ../application/mainwindow.cpp:52:
    ../Qt/6.3.1/gcc_64/include/QtCore/qanystringview.h: In instantiation of ‘constexpr QAnyStringView::QAnyStringView(const Char*, qsizetype) [with Char = char; typename std::enable_if<disjunction_v<QtPrivate::IsCompatibleCharType<Char>, std::disjunction<std::is_same<typename std::remove_cv<typename std::remove_reference<_Tp>::type>::type, char>, std::is_same<typename std::remove_cv<typename std::remove_reference<_Tp>::type>::type, unsigned char>, std::is_same<typename std::remove_cv<typename std::remove_reference<_Tp>::type>::type, signed char> > >, bool>::type <anonymous> = true; qsizetype = long long int]’:
    ../Qt/6.3.1/gcc_64/include/QtCore/qstring.h:1200:69:   required from here
    ../Qt/6.3.1/gcc_64/include/QtCore/qanystringview.h:140:34: warning: narrowing conversion of ‘QAnyStringView::encodeType<char>(((((len >= 0) ? (void)0 : qt_assert(((const char*)"len >= 0"), ((const char*)"../Qt/6.3.1/gcc_64/include/QtCore/qanystringview.h"), 140)), (((str != 0) || (len == 0)) ? (void)0 : qt_assert(((const char*)"str || !len"), ((const char*)"../Qt/6.3.1/gcc_64/include/QtCore/qanystringview.h"), 140))), len))’ from ‘std::size_t’ {aka ‘long unsigned int’} to ‘size_t’ {aka ‘unsigned int’} [-Wnarrowing]
     140 |           m_size{encodeType<Char>((Q_ASSERT(len >= 0), Q_ASSERT(str || !len), len))} {}
         |                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from ../Qt/6.3.1/gcc_64/include/QtCore/qcborstream.h:47,
                    from ../Qt/6.3.1/gcc_64/include/QtCore/QtCore:44,
                    from ../Qt/6.3.1/gcc_64/include/QtWidgets/QtWidgetsDepends:3,
                    from ../Qt/6.3.1/gcc_64/include/QtWidgets/QtWidgets:3,
                    from ../application/mainwindow.cpp:52:
    ../Qt/6.3.1/gcc_64/include/QtCore/qcborstreamreader.h: In instantiation of ‘FP QCborStreamReader::_toFloatingPoint() const [with FP = qfloat16]’:
    ../Qt/6.3.1/gcc_64/include/QtCore/qcborstreamreader.h:166:100:   required from here
    ../Qt/6.3.1/gcc_64/include/QtCore/qcborstreamreader.h:191:15: error: ‘memcpy’ was not declared in this scope
     191 |         memcpy(static_cast<void *>(&f), &u, sizeof(f));
         |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    In file included from ../Qt/6.3.1/gcc_64/include/QtCore/qcborstream.h:47,
                    from ../Qt/6.3.1/gcc_64/include/QtCore/QtCore:44,
                    from ../Qt/6.3.1/gcc_64/include/QtWidgets/QtWidgetsDepends:3,
                    from ../Qt/6.3.1/gcc_64/include/QtWidgets/QtWidgets:3,
                    from ../application/mainwindow.cpp:52:
    ../Qt/6.3.1/gcc_64/include/QtCore/qcborstreamreader.h:46:1: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
      45 | #include <QtCore/qfloat16.h>
     +++ |+#include <cstring>
      46 | #include <QtCore/qscopedpointer.h>
    In file included from ../Qt/6.3.1/gcc_64/include/QtCore/qcborstream.h:47,
                    from ../Qt/6.3.1/gcc_64/include/QtCore/QtCore:44,
                    from ../Qt/6.3.1/gcc_64/include/QtWidgets/QtWidgetsDepends:3,
                    from ../Qt/6.3.1/gcc_64/include/QtWidgets/QtWidgets:3,
                    from ../application/mainwindow.cpp:52:
    ../Qt/6.3.1/gcc_64/include/QtCore/qcborstreamreader.h: In instantiation of ‘FP QCborStreamReader::_toFloatingPoint() const [with FP = float]’:
    ../Qt/6.3.1/gcc_64/include/QtCore/qcborstreamreader.h:167:95:   required from here
    ../Qt/6.3.1/gcc_64/include/QtCore/qcborstreamreader.h:191:15: error: ‘memcpy’ was not declared in this scope
     191 |         memcpy(static_cast<void *>(&f), &u, sizeof(f));
         |         ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ../Qt/6.3.1/gcc_64/include/QtCore/qcborstreamreader.h:191:15: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    ../Qt/6.3.1/gcc_64/include/QtCore/qcborstreamreader.h: In instantiation of ‘FP QCborStreamReader::_toFloatingPoint() const [with FP = double]’:
    ../Qt/6.3.1/gcc_64/include/QtCore/qcborstreamreader.h:168:97:   required from here
    ../Qt/6.3.1/gcc_64/include/QtCore/qcborstreamreader.h:191:15: error: ‘memcpy’ was not declared in this scope
    ../Qt/6.3.1/gcc_64/include/QtCore/qcborstreamreader.h:191:15: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    In file included from ../Qt/6.3.1/gcc_64/include/QtCore/QtCore:81,
                    from ../Qt/6.3.1/gcc_64/include/QtWidgets/QtWidgetsDepends:3,
                    from ../Qt/6.3.1/gcc_64/include/QtWidgets/QtWidgets:3,
                    from ../application/mainwindow.cpp:52:
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h: In instantiation of ‘T qFromUnaligned(const void*) [with T = short unsigned int]’:
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:145:76:   required from ‘Float qbswapFloatHelper(Float) [with Float = qfloat16]’
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:152:36:   required from here
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:88:13: error: ‘memcpy’ was not declared in this scope
      86 |     memcpy
         |     ~~~~~~   
      87 | #endif
         | ~~~~~~       
      88 |             (&dest, src, size);
         |             ^~~~~~~~~~~~~~~~~~
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:88:13: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h: In instantiation of ‘T qFromUnaligned(const void*) [with T = qfloat16]’:
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:147:33:   required from ‘Float qbswapFloatHelper(Float) [with Float = qfloat16]’
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:152:36:   required from here
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:88:13: error: ‘memcpy’ was not declared in this scope
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:88:13: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h: In instantiation of ‘T qFromUnaligned(const void*) [with T = unsigned int]’:
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:145:76:   required from ‘Float qbswapFloatHelper(Float) [with Float = float]’
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:157:36:   required from here
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:88:13: error: ‘memcpy’ was not declared in this scope
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:88:13: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h: In instantiation of ‘T qFromUnaligned(const void*) [with T = float]’:
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:147:33:   required from ‘Float qbswapFloatHelper(Float) [with Float = float]’
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:157:36:   required from here
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:88:13: error: ‘memcpy’ was not declared in this scope
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:88:13: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h: In instantiation of ‘T qFromUnaligned(const void*) [with T = long long unsigned int]’:
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:145:76:   required from ‘Float qbswapFloatHelper(Float) [with Float = double]’
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:162:36:   required from here
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:88:13: error: ‘memcpy’ was not declared in this scope
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:88:13: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h: In instantiation of ‘T qFromUnaligned(const void*) [with T = double]’:
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:147:33:   required from ‘Float qbswapFloatHelper(Float) [with Float = double]’
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:162:36:   required from here
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:88:13: error: ‘memcpy’ was not declared in this scope
    ../Qt/6.3.1/gcc_64/include/QtCore/qendian.h:88:13: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    make: *** [Makefile:1388: mainwindow.o] Error 1
    09:46:21: The process "/usr/bin/make" exited with code 2.
    Error while building/deploying project application (kit: Desktop Qt 6.3.1 GCC 64bit)
    When executing step "Make"
    09:46:21: Elapsed time: 00:13
    
    C Offline
    C Offline
    CPPUIX
    wrote on last edited by
    #13

    @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 1 Reply Last reply
    0
    • 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