Only Win32 target is supported! And QT Creator layout issue?
-
@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.
-
@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.
-
@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.
-
@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
-
@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.
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.
-
@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.hThere is nothing Qt nor a Qt installer can do here. It doesn't even created this.
-
@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.
-
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
-