Only Win32 target is supported! And QT Creator layout issue?
-
Hi and welcome to devnet,
How did you install Qt ?
Did you also try with your distribution provided Qt ? -
@SGaist Hello! Thank you for your reply,
I installed everything using the maintenance tool. I'm not sure what do you mean by distribution provided Qt.Ubuntu also provides Qt as well as the corresponding development packages that you can use to develop Qt based applications.
-
Ubuntu also provides Qt as well as the corresponding development packages that you can use to develop Qt based applications.
@SGaist
My goal is to use QT to develop GUIs using QT widgets for now, so I need both design studio and creator.
I found a qmake file in "/usr/lib/x86_64-linux-gnu/qt5" I assume that is what you meant, added that to a kit and tried building, here is the compile output:15:13:45: Running steps for project texteditor... 15:13:45: Starting: "/usr/lib/x86_64-linux-gnu/qt5/bin/qmake" /home/crc/Qt/Examples/Qt-6.3.1/quickcontrols2/texteditor/texteditor.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug Project ERROR: Unknown module(s) in QT: quick quickcontrols2 15:13:45: The process "/usr/lib/x86_64-linux-gnu/qt5/bin/qmake" exited with code 3. Error while building/deploying project texteditor (kit: Unnamed) When executing step "qmake" 15:13:45: Elapsed time: 00:00.
The only auto-detected qt is the 6.3.1 I downloaded (see screeenshot)
Reinstalling creator for the 4th or so time fixed the layout issue too:
-
@SGaist
My goal is to use QT to develop GUIs using QT widgets for now, so I need both design studio and creator.
I found a qmake file in "/usr/lib/x86_64-linux-gnu/qt5" I assume that is what you meant, added that to a kit and tried building, here is the compile output:15:13:45: Running steps for project texteditor... 15:13:45: Starting: "/usr/lib/x86_64-linux-gnu/qt5/bin/qmake" /home/crc/Qt/Examples/Qt-6.3.1/quickcontrols2/texteditor/texteditor.pro -spec linux-g++ CONFIG+=debug CONFIG+=qml_debug Project ERROR: Unknown module(s) in QT: quick quickcontrols2 15:13:45: The process "/usr/lib/x86_64-linux-gnu/qt5/bin/qmake" exited with code 3. Error while building/deploying project texteditor (kit: Unnamed) When executing step "qmake" 15:13:45: Elapsed time: 00:00.
The only auto-detected qt is the 6.3.1 I downloaded (see screeenshot)
Reinstalling creator for the 4th or so time fixed the layout issue too:
Your distribution provided Qt is from the 5 series.
Since you are mentioning widgets only, I don't think you need Qt Design Studio. Or did you mean Designer ?
-
Your distribution provided Qt is from the 5 series.
Since you are mentioning widgets only, I don't think you need Qt Design Studio. Or did you mean Designer ?
@SGaist
I also want to use qt quick but that's not an immediate concern now. Yes, it seems it's from the 5 series but that still doesn't build any projects and is throwing the same error thousands of times. I'm not very concerned about the version number as long as I can compile and run GUI projects.
Here is a portion of the end of the compile output:
/usr/include/time.h:143:26: error: expected initializer before ‘_strftime_l’ 143 | _CRTIMP size_t __cdecl _strftime_l(char * __restrict__ _Buf,size_t _Max_size,const char * __restrict__ _Format,const struct tm * __restrict__ _Tm,_locale_t _Locale); | ^~~~~~~~~~~ /usr/include/time.h:144:25: error: expected initializer before ‘_strdate’ 144 | _CRTIMP char *__cdecl _strdate(char *_Buffer) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~~~~ In file included from /usr/include/c++/9/cstdlib:75, from /usr/include/c++/9/stdlib.h:36, from /usr/include/assert.h:17, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:50, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:145:3: error: expected constructor, destructor, or type conversion before ‘(’ token 145 | _SECIMP errno_t __cdecl _strdate_s (char *_Buf,size_t _SizeInBytes); | ^~~~~~~ In file included from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:146:25: error: expected initializer before ‘_strtime’ 146 | _CRTIMP char *__cdecl _strtime(char *_Buffer) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~~~~ In file included from /usr/include/c++/9/cstdlib:75, from /usr/include/c++/9/stdlib.h:36, from /usr/include/assert.h:17, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:50, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:147:3: error: expected constructor, destructor, or type conversion before ‘(’ token 147 | _SECIMP errno_t __cdecl _strtime_s (char *_Buf ,size_t _SizeInBytes); | ^~~~~~~ In file included from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:148:22: error: expected initializer before ‘_time32’ 148 | __time32_t __cdecl _time32(__time32_t *_Time); | ^~~~~~~ /usr/include/time.h:149:22: error: expected initializer before ‘_mktime32’ 149 | __time32_t __cdecl _mktime32(struct tm *_Tm); | ^~~~~~~~~ /usr/include/time.h:150:22: error: expected initializer before ‘_mkgmtime32’ 150 | __time32_t __cdecl _mkgmtime32(struct tm *_Tm); | ^~~~~~~~~~~ /usr/include/time.h:153:16: error: expected initializer before ‘tzset’ 153 | void __cdecl tzset(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005; | ^~~~~ /usr/include/time.h:159:16: error: expected initializer before ‘_tzset’ 159 | void __cdecl _tzset(void); | ^~~~~~ /usr/include/time.h:162:18: error: expected initializer before ‘_difftime64’ 162 | double __cdecl _difftime64(__time64_t _Time1,__time64_t _Time2); | ^~~~~~~~~~~ /usr/include/time.h:163:25: error: expected initializer before ‘_ctime64’ 163 | _CRTIMP char *__cdecl _ctime64(const __time64_t *_Time) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~~~~ In file included from /usr/include/c++/9/cstdlib:75, from /usr/include/c++/9/stdlib.h:36, from /usr/include/assert.h:17, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:50, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:164:3: error: expected constructor, destructor, or type conversion before ‘(’ token 164 | _SECIMP errno_t __cdecl _ctime64_s (char *_Buf,size_t _SizeInBytes,const __time64_t *_Time); | ^~~~~~~ In file included from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:165:30: error: expected initializer before ‘_gmtime64’ 165 | _CRTIMP struct tm *__cdecl _gmtime64(const __time64_t *_Time) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~~~~~ In file included from /usr/include/c++/9/cstdlib:75, from /usr/include/c++/9/stdlib.h:36, from /usr/include/assert.h:17, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:50, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:166:3: error: expected constructor, destructor, or type conversion before ‘(’ token 166 | _SECIMP errno_t __cdecl _gmtime64_s (struct tm *_Tm,const __time64_t *_Time); | ^~~~~~~ In file included from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:167:30: error: expected initializer before ‘_localtime64’ 167 | _CRTIMP struct tm *__cdecl _localtime64(const __time64_t *_Time) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~~~~~~~~ In file included from /usr/include/c++/9/cstdlib:75, from /usr/include/c++/9/stdlib.h:36, from /usr/include/assert.h:17, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:50, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:168:3: error: expected constructor, destructor, or type conversion before ‘(’ token 168 | _SECIMP errno_t __cdecl _localtime64_s (struct tm *_Tm,const __time64_t *_Time); | ^~~~~~~ In file included from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:169:30: error: expected initializer before ‘_mktime64’ 169 | _CRTIMP __time64_t __cdecl _mktime64(struct tm *_Tm); | ^~~~~~~~~ /usr/include/time.h:170:30: error: expected initializer before ‘_mkgmtime64’ 170 | _CRTIMP __time64_t __cdecl _mkgmtime64(struct tm *_Tm); | ^~~~~~~~~~~ /usr/include/time.h:171:30: error: expected initializer before ‘_time64’ 171 | _CRTIMP __time64_t __cdecl _time64(__time64_t *_Time); | ^~~~~~~ /usr/include/time.h:172:20: error: expected initializer before ‘_getsystime’ 172 | unsigned __cdecl _getsystime(struct tm *_Tm); | ^~~~~~~~~~~ /usr/include/time.h:173:20: error: expected initializer before ‘_setsystime’ 173 | unsigned __cdecl _setsystime(struct tm *_Tm,unsigned _MilliSec); | ^~~~~~~~~~~ /usr/include/time.h:218:16: error: expected initializer before ‘difftime’ 218 | double __cdecl difftime(time_t _Time1,time_t _Time2); | ^~~~~~~~ /usr/include/time.h:219:15: error: expected initializer before ‘ctime’ 219 | char *__cdecl ctime(const time_t *_Time) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~ /usr/include/time.h:220:20: error: expected initializer before ‘gmtime’ 220 | struct tm *__cdecl gmtime(const time_t *_Time) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~~ /usr/include/time.h:221:20: error: expected initializer before ‘localtime’ 221 | struct tm *__cdecl localtime(const time_t *_Time) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~~~~~ /usr/include/time.h:223:16: error: expected initializer before ‘mktime’ 223 | time_t __cdecl mktime(struct tm *_Tm); | ^~~~~~ /usr/include/time.h:224:16: error: expected initializer before ‘_mkgmtime’ 224 | time_t __cdecl _mkgmtime(struct tm *_Tm); | ^~~~~~~~~ /usr/include/time.h:225:16: error: expected initializer before ‘time’ 225 | time_t __cdecl time(time_t *_Time); | ^~~~ /usr/include/time.h:235:30: error: expected initializer before ‘difftime’ 235 | __TIME_INLINE double __cdecl difftime(time_t _Time1,time_t _Time2) | ^~~~~~~~ /usr/include/time.h:237:29: error: expected initializer before ‘ctime’ 237 | __TIME_INLINE char *__cdecl ctime(const time_t *_Time) { return _ctime64(_Time); } | ^~~~~ /usr/include/time.h:238:34: error: expected initializer before ‘gmtime’ 238 | __TIME_INLINE struct tm *__cdecl gmtime(const time_t *_Time) { return _gmtime64(_Time); } | ^~~~~~ /usr/include/time.h:239:34: error: expected initializer before ‘localtime’ 239 | __TIME_INLINE struct tm *__cdecl localtime(const time_t *_Time) { return _localtime64(_Time); } | ^~~~~~~~~ /usr/include/time.h:240:30: error: expected initializer before ‘mktime’ 240 | __TIME_INLINE time_t __cdecl mktime(struct tm *_Tm) { return _mktime64(_Tm); } | ^~~~~~ /usr/include/time.h:241:30: error: expected initializer before ‘_mkgmtime’ 241 | __TIME_INLINE time_t __cdecl _mkgmtime(struct tm *_Tm) { return _mkgmtime64(_Tm); } | ^~~~~~~~~ /usr/include/time.h:242:30: error: expected initializer before ‘time’ 242 | __TIME_INLINE time_t __cdecl time(time_t *_Time) { return _time64(_Time); } | ^~~~ /usr/include/time.h:261:31: error: expected initializer before ‘localtime_s’ 261 | __forceinline errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime64_s(_Tm,_Time); } | ^~~~~~~~~~~ /usr/include/time.h:262:31: error: expected initializer before ‘gmtime_s’ 262 | __forceinline errno_t __cdecl gmtime_s(struct tm *_Tm, const time_t *_Time) { return _gmtime64_s(_Tm, _Time); } | ^~~~~~~~ /usr/include/time.h:263:31: error: expected initializer before ‘ctime_s’ 263 | __forceinline errno_t __cdecl ctime_s(char *_Buf,size_t _SizeInBytes,const time_t *_Time) { return _ctime64_s(_Buf,_SizeInBytes,_Time); } | ^~~~~~~ /usr/include/time.h:283:16: error: expected initializer before ‘tzset’ 283 | void __cdecl tzset(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005; | ^~~~~ In file included from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:295:22: error: expected initializer before ‘mingw_gettimeofday’ 295 | extern int __cdecl mingw_gettimeofday (struct timeval *p, struct timezone *z); | ^~~~~~~~~~~~~~~~~~ /usr/include/time.h:309:34: error: expected initializer before ‘localtime_r’ 309 | __forceinline struct tm *__cdecl localtime_r(const time_t *_Time, struct tm *_Tm) { | ^~~~~~~~~~~ /usr/include/time.h:312:34: error: expected initializer before ‘gmtime_r’ 312 | __forceinline struct tm *__cdecl gmtime_r(const time_t *_Time, struct tm *_Tm) { | ^~~~~~~~ /usr/include/time.h:315:29: error: expected initializer before ‘ctime_r’ 315 | __forceinline char *__cdecl ctime_r(const time_t *_Time, char *_Str) { | ^~~~~~~ /usr/include/time.h:318:29: error: expected initializer before ‘asctime_r’ 318 | __forceinline char *__cdecl asctime_r(const struct tm *_Tm, char * _Str) { | ^~~~~~~~~ In file included from /usr/include/time.h:332, from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/pthread_time.h:84:28: error: expected initializer before ‘nanosleep’ 84 | int __cdecl WINPTHREAD_API nanosleep(const struct timespec *request, struct timespec *remain); | ^~~~~~~~~ /usr/include/pthread_time.h:86:28: error: expected initializer before ‘clock_nanosleep’ 86 | int __cdecl WINPTHREAD_API clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *request, struct timespec *remain); | ^~~~~~~~~~~~~~~ In file included from /usr/include/time.h:332, from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/pthread_time.h:87:28: error: expected initializer before ‘clock_getres’ 87 | int __cdecl WINPTHREAD_API clock_getres(clockid_t clock_id, struct timespec *res); | ^~~~~~~~~~~~ /usr/include/pthread_time.h:88:28: error: expected initializer before ‘clock_gettime’ 88 | int __cdecl WINPTHREAD_API clock_gettime(clockid_t clock_id, struct timespec *tp); | ^~~~~~~~~~~~~ /usr/include/pthread_time.h:89:28: error: expected initializer before ‘clock_settime’ 89 | int __cdecl WINPTHREAD_API clock_settime(clockid_t clock_id, const struct timespec *tp); | ^~~~~~~~~~~~~ In file included from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/c++/9/ctime:64:11: error: ‘::clock’ has not been declared 64 | using ::clock; | ^~~~~ /usr/include/c++/9/ctime:65:11: error: ‘::difftime’ has not been declared 65 | using ::difftime; | ^~~~~~~~ /usr/include/c++/9/ctime:66:11: error: ‘::mktime’ has not been declared 66 | using ::mktime; | ^~~~~~ /usr/include/c++/9/ctime:67:11: error: ‘::time’ has not been declared 67 | using ::time; | ^~~~ /usr/include/c++/9/ctime:68:11: error: ‘::asctime’ has not been declared 68 | using ::asctime; | ^~~~~~~ /usr/include/c++/9/ctime:69:11: error: ‘::ctime’ has not been declared 69 | using ::ctime; | ^~~~~ /usr/include/c++/9/ctime:70:11: error: ‘::gmtime’ has not been declared 70 | using ::gmtime; | ^~~~~~ /usr/include/c++/9/ctime:71:11: error: ‘::localtime’ has not been declared 71 | using ::localtime; | ^~~~~~~~~ /usr/include/c++/9/ctime:72:11: error: ‘::strftime’ has not been declared 72 | using ::strftime; | ^~~~~~~~ /usr/include/c++/9/ctime:80:11: error: ‘::timespec_get’ has not been declared 80 | using ::timespec_get; | ^~~~~~~~~~~~ make: *** [Makefile:453: moc_millidelay.o] Error 1 ../UI_Testing2/packet.cpp: In member function ‘void Packet::Reset()’: ../UI_Testing2/packet.cpp:285:5: error: ‘memset’ was not declared in this scope 285 | memset(rxBuff, 0, sizeof(rxBuff)); | ^~~~~~ ../UI_Testing2/packet.cpp:7:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 6 | #include <QDebug> +++ |+#include <cstring> 7 | In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:49, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from ../UI_Testing2/packet.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h: In instantiation of ‘void QList<T>::node_copy(QList<T>::Node*, QList<T>::Node*, QList<T>::Node*) [with T = QString]’: /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:816:13: required from ‘QList<T>::QList(const QList<T>&) [with T = QString]’ /usr/include/x86_64-linux-gnu/qt5/QtCore/qstringlist.h:105:67: required from here /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:489:19: error: ‘memcpy’ was not declared in this scope 489 | memcpy(from, src, (to - from) * sizeof(Node)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:489:19: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? moc_packet.cpp: In member function ‘virtual void* Packet::qt_metacast(const char*)’: moc_packet.cpp:83:10: error: ‘strcmp’ was not declared in this scope 83 | if (!strcmp(_clname, qt_meta_stringdata_Packet.stringdata0)) | ^~~~~~ moc_packet.cpp:10:1: note: ‘strcmp’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 9 | #include "../UI_Testing2/packet.h" +++ |+#include <cstring> 10 | #include <QtCore/qbytearray.h> /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h: In instantiation of ‘void QList<T>::node_copy(QList<T>::Node*, QList<T>::Node*, QList<T>::Node*) [with T = QVariant]’: /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:791:9: required from ‘void QList<T>::detach_helper(int) [with T = QVariant]’ /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:575:13: required from ‘void QList<T>::reserve(int) [with T = QVariant]’ /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:790:38: required from here /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:489:19: error: ‘memcpy’ was not declared in this scope /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:489:19: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:49, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h: In instantiation of ‘void QList<T>::node_copy(QList<T>::Node*, QList<T>::Node*, QList<T>::Node*) [with T = QString]’: /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:816:13: required from ‘QList<T>::QList(const QList<T>&) [with T = QString]’ /usr/include/x86_64-linux-gnu/qt5/QtCore/qstringlist.h:105:67: required from here /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:489:19: error: ‘memcpy’ was not declared in this scope 489 | memcpy(from, src, (to - from) * sizeof(Node)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:489:19: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? make: *** [Makefile:444: packet.o] Error 1 make: *** [Makefile:456: moc_packet.o] Error 1 15:23:57: The process "/usr/bin/make" exited with code 2. Error while building/deploying project UI_Testing2 (kit: Unnamed) When executing step "Make" 15:23:57: Elapsed time: 00:02.
-
@SGaist
I also want to use qt quick but that's not an immediate concern now. Yes, it seems it's from the 5 series but that still doesn't build any projects and is throwing the same error thousands of times. I'm not very concerned about the version number as long as I can compile and run GUI projects.
Here is a portion of the end of the compile output:
/usr/include/time.h:143:26: error: expected initializer before ‘_strftime_l’ 143 | _CRTIMP size_t __cdecl _strftime_l(char * __restrict__ _Buf,size_t _Max_size,const char * __restrict__ _Format,const struct tm * __restrict__ _Tm,_locale_t _Locale); | ^~~~~~~~~~~ /usr/include/time.h:144:25: error: expected initializer before ‘_strdate’ 144 | _CRTIMP char *__cdecl _strdate(char *_Buffer) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~~~~ In file included from /usr/include/c++/9/cstdlib:75, from /usr/include/c++/9/stdlib.h:36, from /usr/include/assert.h:17, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:50, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:145:3: error: expected constructor, destructor, or type conversion before ‘(’ token 145 | _SECIMP errno_t __cdecl _strdate_s (char *_Buf,size_t _SizeInBytes); | ^~~~~~~ In file included from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:146:25: error: expected initializer before ‘_strtime’ 146 | _CRTIMP char *__cdecl _strtime(char *_Buffer) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~~~~ In file included from /usr/include/c++/9/cstdlib:75, from /usr/include/c++/9/stdlib.h:36, from /usr/include/assert.h:17, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:50, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:147:3: error: expected constructor, destructor, or type conversion before ‘(’ token 147 | _SECIMP errno_t __cdecl _strtime_s (char *_Buf ,size_t _SizeInBytes); | ^~~~~~~ In file included from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:148:22: error: expected initializer before ‘_time32’ 148 | __time32_t __cdecl _time32(__time32_t *_Time); | ^~~~~~~ /usr/include/time.h:149:22: error: expected initializer before ‘_mktime32’ 149 | __time32_t __cdecl _mktime32(struct tm *_Tm); | ^~~~~~~~~ /usr/include/time.h:150:22: error: expected initializer before ‘_mkgmtime32’ 150 | __time32_t __cdecl _mkgmtime32(struct tm *_Tm); | ^~~~~~~~~~~ /usr/include/time.h:153:16: error: expected initializer before ‘tzset’ 153 | void __cdecl tzset(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005; | ^~~~~ /usr/include/time.h:159:16: error: expected initializer before ‘_tzset’ 159 | void __cdecl _tzset(void); | ^~~~~~ /usr/include/time.h:162:18: error: expected initializer before ‘_difftime64’ 162 | double __cdecl _difftime64(__time64_t _Time1,__time64_t _Time2); | ^~~~~~~~~~~ /usr/include/time.h:163:25: error: expected initializer before ‘_ctime64’ 163 | _CRTIMP char *__cdecl _ctime64(const __time64_t *_Time) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~~~~ In file included from /usr/include/c++/9/cstdlib:75, from /usr/include/c++/9/stdlib.h:36, from /usr/include/assert.h:17, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:50, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:164:3: error: expected constructor, destructor, or type conversion before ‘(’ token 164 | _SECIMP errno_t __cdecl _ctime64_s (char *_Buf,size_t _SizeInBytes,const __time64_t *_Time); | ^~~~~~~ In file included from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:165:30: error: expected initializer before ‘_gmtime64’ 165 | _CRTIMP struct tm *__cdecl _gmtime64(const __time64_t *_Time) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~~~~~ In file included from /usr/include/c++/9/cstdlib:75, from /usr/include/c++/9/stdlib.h:36, from /usr/include/assert.h:17, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:50, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:166:3: error: expected constructor, destructor, or type conversion before ‘(’ token 166 | _SECIMP errno_t __cdecl _gmtime64_s (struct tm *_Tm,const __time64_t *_Time); | ^~~~~~~ In file included from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:167:30: error: expected initializer before ‘_localtime64’ 167 | _CRTIMP struct tm *__cdecl _localtime64(const __time64_t *_Time) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~~~~~~~~ In file included from /usr/include/c++/9/cstdlib:75, from /usr/include/c++/9/stdlib.h:36, from /usr/include/assert.h:17, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qglobal.h:50, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:168:3: error: expected constructor, destructor, or type conversion before ‘(’ token 168 | _SECIMP errno_t __cdecl _localtime64_s (struct tm *_Tm,const __time64_t *_Time); | ^~~~~~~ In file included from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:169:30: error: expected initializer before ‘_mktime64’ 169 | _CRTIMP __time64_t __cdecl _mktime64(struct tm *_Tm); | ^~~~~~~~~ /usr/include/time.h:170:30: error: expected initializer before ‘_mkgmtime64’ 170 | _CRTIMP __time64_t __cdecl _mkgmtime64(struct tm *_Tm); | ^~~~~~~~~~~ /usr/include/time.h:171:30: error: expected initializer before ‘_time64’ 171 | _CRTIMP __time64_t __cdecl _time64(__time64_t *_Time); | ^~~~~~~ /usr/include/time.h:172:20: error: expected initializer before ‘_getsystime’ 172 | unsigned __cdecl _getsystime(struct tm *_Tm); | ^~~~~~~~~~~ /usr/include/time.h:173:20: error: expected initializer before ‘_setsystime’ 173 | unsigned __cdecl _setsystime(struct tm *_Tm,unsigned _MilliSec); | ^~~~~~~~~~~ /usr/include/time.h:218:16: error: expected initializer before ‘difftime’ 218 | double __cdecl difftime(time_t _Time1,time_t _Time2); | ^~~~~~~~ /usr/include/time.h:219:15: error: expected initializer before ‘ctime’ 219 | char *__cdecl ctime(const time_t *_Time) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~ /usr/include/time.h:220:20: error: expected initializer before ‘gmtime’ 220 | struct tm *__cdecl gmtime(const time_t *_Time) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~~ /usr/include/time.h:221:20: error: expected initializer before ‘localtime’ 221 | struct tm *__cdecl localtime(const time_t *_Time) __MINGW_ATTRIB_DEPRECATED_SEC_WARN; | ^~~~~~~~~ /usr/include/time.h:223:16: error: expected initializer before ‘mktime’ 223 | time_t __cdecl mktime(struct tm *_Tm); | ^~~~~~ /usr/include/time.h:224:16: error: expected initializer before ‘_mkgmtime’ 224 | time_t __cdecl _mkgmtime(struct tm *_Tm); | ^~~~~~~~~ /usr/include/time.h:225:16: error: expected initializer before ‘time’ 225 | time_t __cdecl time(time_t *_Time); | ^~~~ /usr/include/time.h:235:30: error: expected initializer before ‘difftime’ 235 | __TIME_INLINE double __cdecl difftime(time_t _Time1,time_t _Time2) | ^~~~~~~~ /usr/include/time.h:237:29: error: expected initializer before ‘ctime’ 237 | __TIME_INLINE char *__cdecl ctime(const time_t *_Time) { return _ctime64(_Time); } | ^~~~~ /usr/include/time.h:238:34: error: expected initializer before ‘gmtime’ 238 | __TIME_INLINE struct tm *__cdecl gmtime(const time_t *_Time) { return _gmtime64(_Time); } | ^~~~~~ /usr/include/time.h:239:34: error: expected initializer before ‘localtime’ 239 | __TIME_INLINE struct tm *__cdecl localtime(const time_t *_Time) { return _localtime64(_Time); } | ^~~~~~~~~ /usr/include/time.h:240:30: error: expected initializer before ‘mktime’ 240 | __TIME_INLINE time_t __cdecl mktime(struct tm *_Tm) { return _mktime64(_Tm); } | ^~~~~~ /usr/include/time.h:241:30: error: expected initializer before ‘_mkgmtime’ 241 | __TIME_INLINE time_t __cdecl _mkgmtime(struct tm *_Tm) { return _mkgmtime64(_Tm); } | ^~~~~~~~~ /usr/include/time.h:242:30: error: expected initializer before ‘time’ 242 | __TIME_INLINE time_t __cdecl time(time_t *_Time) { return _time64(_Time); } | ^~~~ /usr/include/time.h:261:31: error: expected initializer before ‘localtime_s’ 261 | __forceinline errno_t __cdecl localtime_s(struct tm *_Tm,const time_t *_Time) { return _localtime64_s(_Tm,_Time); } | ^~~~~~~~~~~ /usr/include/time.h:262:31: error: expected initializer before ‘gmtime_s’ 262 | __forceinline errno_t __cdecl gmtime_s(struct tm *_Tm, const time_t *_Time) { return _gmtime64_s(_Tm, _Time); } | ^~~~~~~~ /usr/include/time.h:263:31: error: expected initializer before ‘ctime_s’ 263 | __forceinline errno_t __cdecl ctime_s(char *_Buf,size_t _SizeInBytes,const time_t *_Time) { return _ctime64_s(_Buf,_SizeInBytes,_Time); } | ^~~~~~~ /usr/include/time.h:283:16: error: expected initializer before ‘tzset’ 283 | void __cdecl tzset(void) __MINGW_ATTRIB_DEPRECATED_MSVC2005; | ^~~~~ In file included from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/time.h:295:22: error: expected initializer before ‘mingw_gettimeofday’ 295 | extern int __cdecl mingw_gettimeofday (struct timeval *p, struct timezone *z); | ^~~~~~~~~~~~~~~~~~ /usr/include/time.h:309:34: error: expected initializer before ‘localtime_r’ 309 | __forceinline struct tm *__cdecl localtime_r(const time_t *_Time, struct tm *_Tm) { | ^~~~~~~~~~~ /usr/include/time.h:312:34: error: expected initializer before ‘gmtime_r’ 312 | __forceinline struct tm *__cdecl gmtime_r(const time_t *_Time, struct tm *_Tm) { | ^~~~~~~~ /usr/include/time.h:315:29: error: expected initializer before ‘ctime_r’ 315 | __forceinline char *__cdecl ctime_r(const time_t *_Time, char *_Str) { | ^~~~~~~ /usr/include/time.h:318:29: error: expected initializer before ‘asctime_r’ 318 | __forceinline char *__cdecl asctime_r(const struct tm *_Tm, char * _Str) { | ^~~~~~~~~ In file included from /usr/include/time.h:332, from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/pthread_time.h:84:28: error: expected initializer before ‘nanosleep’ 84 | int __cdecl WINPTHREAD_API nanosleep(const struct timespec *request, struct timespec *remain); | ^~~~~~~~~ /usr/include/pthread_time.h:86:28: error: expected initializer before ‘clock_nanosleep’ 86 | int __cdecl WINPTHREAD_API clock_nanosleep(clockid_t clock_id, int flags, const struct timespec *request, struct timespec *remain); | ^~~~~~~~~~~~~~~ In file included from /usr/include/time.h:332, from /usr/include/c++/9/ctime:42, from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/pthread_time.h:87:28: error: expected initializer before ‘clock_getres’ 87 | int __cdecl WINPTHREAD_API clock_getres(clockid_t clock_id, struct timespec *res); | ^~~~~~~~~~~~ /usr/include/pthread_time.h:88:28: error: expected initializer before ‘clock_gettime’ 88 | int __cdecl WINPTHREAD_API clock_gettime(clockid_t clock_id, struct timespec *tp); | ^~~~~~~~~~~~~ /usr/include/pthread_time.h:89:28: error: expected initializer before ‘clock_settime’ 89 | int __cdecl WINPTHREAD_API clock_settime(clockid_t clock_id, const struct timespec *tp); | ^~~~~~~~~~~~~ In file included from /usr/include/c++/9/chrono:41, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:59, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/c++/9/ctime:64:11: error: ‘::clock’ has not been declared 64 | using ::clock; | ^~~~~ /usr/include/c++/9/ctime:65:11: error: ‘::difftime’ has not been declared 65 | using ::difftime; | ^~~~~~~~ /usr/include/c++/9/ctime:66:11: error: ‘::mktime’ has not been declared 66 | using ::mktime; | ^~~~~~ /usr/include/c++/9/ctime:67:11: error: ‘::time’ has not been declared 67 | using ::time; | ^~~~ /usr/include/c++/9/ctime:68:11: error: ‘::asctime’ has not been declared 68 | using ::asctime; | ^~~~~~~ /usr/include/c++/9/ctime:69:11: error: ‘::ctime’ has not been declared 69 | using ::ctime; | ^~~~~ /usr/include/c++/9/ctime:70:11: error: ‘::gmtime’ has not been declared 70 | using ::gmtime; | ^~~~~~ /usr/include/c++/9/ctime:71:11: error: ‘::localtime’ has not been declared 71 | using ::localtime; | ^~~~~~~~~ /usr/include/c++/9/ctime:72:11: error: ‘::strftime’ has not been declared 72 | using ::strftime; | ^~~~~~~~ /usr/include/c++/9/ctime:80:11: error: ‘::timespec_get’ has not been declared 80 | using ::timespec_get; | ^~~~~~~~~~~~ make: *** [Makefile:453: moc_millidelay.o] Error 1 ../UI_Testing2/packet.cpp: In member function ‘void Packet::Reset()’: ../UI_Testing2/packet.cpp:285:5: error: ‘memset’ was not declared in this scope 285 | memset(rxBuff, 0, sizeof(rxBuff)); | ^~~~~~ ../UI_Testing2/packet.cpp:7:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 6 | #include <QDebug> +++ |+#include <cstring> 7 | In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:49, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from ../UI_Testing2/packet.cpp:1: /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h: In instantiation of ‘void QList<T>::node_copy(QList<T>::Node*, QList<T>::Node*, QList<T>::Node*) [with T = QString]’: /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:816:13: required from ‘QList<T>::QList(const QList<T>&) [with T = QString]’ /usr/include/x86_64-linux-gnu/qt5/QtCore/qstringlist.h:105:67: required from here /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:489:19: error: ‘memcpy’ was not declared in this scope 489 | memcpy(from, src, (to - from) * sizeof(Node)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:489:19: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? moc_packet.cpp: In member function ‘virtual void* Packet::qt_metacast(const char*)’: moc_packet.cpp:83:10: error: ‘strcmp’ was not declared in this scope 83 | if (!strcmp(_clname, qt_meta_stringdata_Packet.stringdata0)) | ^~~~~~ moc_packet.cpp:10:1: note: ‘strcmp’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? 9 | #include "../UI_Testing2/packet.h" +++ |+#include <cstring> 10 | #include <QtCore/qbytearray.h> /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h: In instantiation of ‘void QList<T>::node_copy(QList<T>::Node*, QList<T>::Node*, QList<T>::Node*) [with T = QVariant]’: /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:791:9: required from ‘void QList<T>::detach_helper(int) [with T = QVariant]’ /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:575:13: required from ‘void QList<T>::reserve(int) [with T = QVariant]’ /usr/include/x86_64-linux-gnu/qt5/QtCore/qvariant.h:790:38: required from here /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:489:19: error: ‘memcpy’ was not declared in this scope /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:489:19: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? In file included from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:49, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qiodevice.h:45, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/qserialport.h:44, from /usr/include/x86_64-linux-gnu/qt5/QtSerialPort/QSerialPort:1, from ../UI_Testing2/packet.h:4, from moc_packet.cpp:9: /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h: In instantiation of ‘void QList<T>::node_copy(QList<T>::Node*, QList<T>::Node*, QList<T>::Node*) [with T = QString]’: /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:816:13: required from ‘QList<T>::QList(const QList<T>&) [with T = QString]’ /usr/include/x86_64-linux-gnu/qt5/QtCore/qstringlist.h:105:67: required from here /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:489:19: error: ‘memcpy’ was not declared in this scope 489 | memcpy(from, src, (to - from) * sizeof(Node)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:489:19: note: ‘memcpy’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’? make: *** [Makefile:444: packet.o] Error 1 make: *** [Makefile:456: moc_packet.o] Error 1 15:23:57: The process "/usr/bin/make" exited with code 2. Error while building/deploying project UI_Testing2 (kit: Unnamed) When executing step "Make" 15:23:57: Elapsed time: 00:02.
Which version of gcc did you install ?
What exactly did you install ? -
I have had this error below show up on every single project I tried to build, including the example projects:
define.h:4:10: In included file: Only Win32 target is supported! _mingw.h:271:2: error occurred here
I'm developing on Ubuntu 20.04.6 LTS and QT version 6.3.1 (Was previously working on another desktop) I suspect the issue could be kit-related but the only way to check is edit -> preferences as the left menu bar (the one with welcome, edit, design, projects) isn't showing up. Tried re-installing QT creator and didn't help:
@hazbody21 Are you attempting to cross-compile on Linux for Windows using MingW? If not, then the presence of the MingW header in this error message indicates that you have not started from a clean state.
If you take a Qt Creator project from a Windows environment to Linux you:
- Should take the C++ sources and resources and nothing else.
- Do not copy the Qt Creator blah.pro.user file. This is an environment-specific set of QtCreator settings related to the project that needs to be created in each environment.
- Do not copy any pre-compiled header, MOC generated header, or any other compilation output.
-
@hazbody21 Are you attempting to cross-compile on Linux for Windows using MingW? If not, then the presence of the MingW header in this error message indicates that you have not started from a clean state.
If you take a Qt Creator project from a Windows environment to Linux you:
- Should take the C++ sources and resources and nothing else.
- Do not copy the Qt Creator blah.pro.user file. This is an environment-specific set of QtCreator settings related to the project that needs to be created in each environment.
- Do not copy any pre-compiled header, MOC generated header, or any other compilation output.
@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:
I have been using an example project that I created on
windowsubuntu from the preset examples and still throws the same error. Here is the example application, I deleted blah.pro.user:
Afterwards I started qtcreator and opened the project, attempted to build, here are the first few issues:
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
-
@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:
I have been using an example project that I created on
windowsubuntu from the preset examples and still throws the same error. Here is the example application, I deleted blah.pro.user:
Afterwards I started qtcreator and opened the project, attempted to build, here are the first few issues:
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
@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 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.
-
@Abderrahmene_Rayene @ChrisW67
That was a typo my apologies. I created it with my current OS (Ubuntu 20.04.6 LTS)@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.
-
@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.
-
@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
-
@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.
-
@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.
-
@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 Try running this command:
sudo apt-get install --reinstall build-essentials
-
@hazbody21 Try running this command:
sudo apt-get install --reinstall build-essentials
@Abderrahmene_Rayene Thank you for the suggestion, even after a reboot. Still getting the exact same errors.
@Christian-Ehrlicher what suggestions do you have to address this? -
@Abderrahmene_Rayene Thank you for the suggestion, even after a reboot. Still getting the exact same errors.
@Christian-Ehrlicher what suggestions do you have to address 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.
-
@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
-