<div dir="ltr"><div dir="ltr"><div dir="ltr">Hi,</div><div dir="ltr"><br><div>have you followed <a href="https://gcompris.net/wiki/Qt_Quick_development_process#Compiling_GCompris_for_Android">https://gcompris.net/wiki/Qt_Quick_development_process#Compiling_GCompris_for_Android</a>?</div><div><br></div><div>Johnny</div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 8 nov. 2021 à 12:39, Aleksander Kamenik <<a href="mailto:aleksander.kamenik@gmail.com">aleksander.kamenik@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi!<br>
<br>
I have been playing around with GCompris on Linux and now want to<br>
build the Android version as well for use on a tablet.<br>
<br>
However I've been stuck with clang not finding libstdc++ (or at least<br>
that's what I guess is the problem). The error is this:<br>
<br>
/opt/android/ndk/18.1.5063045/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++<br>
-c -target armv7a-linux-androideabi21 -fno-limit-debug-info -fPIC<br>
-fstack-protector-strong -DANDROID -O2 -mthumb -Oz -fvisibility=hidden<br>
-fvisibility-inlines-hidden -Wall -W -D_REENTRANT -fPIC -DQT_NO_DEBUG<br>
-DQT_PLUGIN -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_QMLMODELS_LIB<br>
-DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB<br>
-I../../../../external/qml-box2d -I. -I../../../../external/qml-box2d<br>
-I../../../../external/qml-box2d/Box2D<br>
-I/opt/qt/5.15.2/android/include<br>
-I/opt/qt/5.15.2/android/include/QtQuick<br>
-I/opt/qt/5.15.2/android/include/QtGui<br>
-I/opt/qt/5.15.2/android/include/QtQmlModels<br>
-I/opt/qt/5.15.2/android/include/QtQml<br>
-I/opt/qt/5.15.2/android/include/QtNetwork<br>
-I/opt/qt/5.15.2/android/include/QtCore -I.moc<br>
-I/opt/qt/5.15.2/android/mkspecs/android-clang -o<br>
.obj/b2PolygonShape.o<br>
../../../../external/qml-box2d/Box2D/Collision/Shapes/b2PolygonShape.cpp<br>
../../../../external/qml-box2d/Box2D/Collision/Shapes/b2PolygonShape.cpp:20:10:<br>
fatal error: 'new' file not found<br>
#include <new><br>
         ^~~~~<br>
1 error generated.<br>
<br>
I'm on Ubuntu 21.10 and just can't figure out what package I'm<br>
missing. Here's what's installed atm (many of these are obviously not<br>
needed):<br>
<br>
# dpkg --list | grep ++<br>
+++-=============================-==================================-============-===============================================================================<br>
ii  g++                           4:11.2.0-1ubuntu1<br>
amd64        GNU C++ compiler<br>
ii  g++-11                        11.2.0-7ubuntu2<br>
amd64        GNU C++ compiler<br>
ii  g++-11-multilib               11.2.0-7ubuntu2<br>
amd64        GNU C++ compiler (multilib support)<br>
ii  g++-multilib                  4:11.2.0-1ubuntu1<br>
amd64        GNU C++ compiler (multilib files)<br>
ii  lib32stdc++-11-dev            11.2.0-7ubuntu2<br>
amd64        GNU Standard C++ Library v3 (development files)<br>
ii  lib32stdc++6                  11.2.0-7ubuntu2<br>
amd64        GNU Standard C++ Library v3 (32 bit Version)<br>
ii  libjsoncpp24:amd64            1.9.4-4build1<br>
amd64        library for reading and writing JSON for C++<br>
ii  libpcrecpp0v5:amd64           2:8.39-13build3<br>
amd64        Old Perl 5 Compatible Regular Expression Library - C++<br>
runtime files<br>
ii  libstdc++-11-dev:amd64        11.2.0-7ubuntu2<br>
amd64        GNU Standard C++ Library v3 (development files)<br>
ii  libstdc++-11-dev-arm64-cross  11.2.0-5ubuntu1cross1<br>
all          GNU Standard C++ Library v3 (development files) (arm64)<br>
ii  libstdc++-11-dev-armhf-cross  11.2.0-5ubuntu1cross1<br>
all          GNU Standard C++ Library v3 (development files) (armhf)<br>
ii  libstdc++-11-dev-i386-cross   11.2.0-5ubuntu1cross1<br>
all          GNU Standard C++ Library v3 (development files) (i386)<br>
ii  libstdc++-11-pic-armhf-cross  11.2.0-5ubuntu1cross1<br>
all          GNU Standard C++ Library v3 (shared library subset kit)<br>
(armhf)<br>
ii  libstdc++6:amd64              11.2.0-7ubuntu2<br>
amd64        GNU Standard C++ Library v3<br>
ii  libstdc++6-arm64-cross        11.2.0-5ubuntu1cross1<br>
all          GNU Standard C++ Library v3 (arm64)<br>
ii  libstdc++6-armhf-cross        11.2.0-5ubuntu1cross1<br>
all          GNU Standard C++ Library v3 (armhf)<br>
ii  libstdc++6-i386-cross         11.2.0-5ubuntu1cross1<br>
all          GNU Standard C++ Library v3 (i386)<br>
ii  libx32stdc++-11-dev           11.2.0-7ubuntu2<br>
amd64        GNU Standard C++ Library v3 (development files)<br>
ii  libx32stdc++6                 11.2.0-7ubuntu2<br>
amd64        GNU Standard C++ Library v3 (x32)<br>
<br>
Can anybody give a hint on what is missing?<br>
<br>
Thanks!<br>
-- <br>
Aleksander Kamenik<br>
</blockquote></div>