Raspberry PI4 Bullseye QT5.15.2 => QTCreator error: ‘__PTHREAD_MUTEX_INITIALIZER’
-
Hi @all,
I have crosscompile with out problems, than I configure the QTCreator for my new Kit.
Device PI4, OS => Bullseye, toolchain => cross-pi-gcc-10.2.0-2
QT-Version 5.15.2It lokks fine, but when I compile my project I get this error:
/home/Salva/rpi4-qt/tools/cross-pi-gcc-10.2.0-2/arm-linux-gnueabihf/include/c++/10.2.0/ext/concurrence.h:122: Fehler: ‘__PTHREAD_MUTEX_INITIALIZER’ was not declared in this scope; did you mean ‘PTHREAD_MUTEX_INITIALIZER’?
In file included from /home/Salva/rpi4-qt/tools/cross-pi-gcc-10.2.0-2/arm-linux-gnueabihf/include/c++/10.2.0/arm-linux-gnueabihf/bits/gthr-default.h:35,
from /home/Salva/rpi4-qt/tools/cross-pi-gcc-10.2.0-2/arm-linux-gnueabihf/include/c++/10.2.0/arm-linux-gnueabihf/bits/gthr.h:148,
from /home/Salva/rpi4-qt/tools/cross-pi-gcc-10.2.0-2/arm-linux-gnueabihf/include/c++/10.2.0/ext/atomicity.h:35,
from /home/Salva/rpi4-qt/tools/cross-pi-gcc-10.2.0-2/arm-linux-gnueabihf/include/c++/10.2.0/bits/basic_string.h:39,
from /home/Salva/rpi4-qt/tools/cross-pi-gcc-10.2.0-2/arm-linux-gnueabihf/include/c++/10.2.0/string:55,
from ../../../rpi4-qt/qt5.15/include/QtCore/qbytearray.h:52,
from ../../../rpi4-qt/qt5.15/include/QtCore/qstring.h:50,
from ../../../rpi4-qt/qt5.15/include/QtCore/qcoreapplication.h:44,
from ../../../rpi4-qt/qt5.15/include/QtCore/QCoreApplication:1,
from ../Reader/main.cpp:1:
/home/Salva/rpi4-qt/tools/cross-pi-gcc-10.2.0-2/arm-linux-gnueabihf/include/c++/10.2.0/ext/concurrence.h:122:34: error: ‘__PTHREAD_MUTEX_INITIALIZER’ was not declared in this scope; did you mean ‘PTHREAD_MUTEX_INITIALIZER’?
122 | __gthread_mutex_t _M_mutex = __GTHREAD_MUTEX_INIT;
| ^~~~~~~~~~~~~~~~~~~~Do anybody hve an idea what can be wrong?
The same project compiles fine for PI3, OS => Buster and toolchain => cross-pi-gcc-8..0-2 with the same
QT-Version 5.15.2 .Thank you for helping hand
Salva