<div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>on my computer:</div><div>find /opt/android-*/ -name new<br>/opt/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/lib64/clang/7.0.2/include/cuda_wrappers/new<br>/opt/android-ndk/sources/cxx-stl/system/include/new<br>/opt/android-ndk/sources/cxx-stl/llvm-libc++/include/new</div><div><br></div><div>In the ./qml_box2d-prefix/src/qml_box2d-build/Makefile file, do you have "-isystem /opt/android-ndk/sources/cxx-stl/llvm-libc++/include" in you CXXFLAGS?</div><div><br></div><div>Johnny<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 8 nov. 2021 à 17:07, Aleksander Kamenik <<a href="mailto:aleksander.kamenik@gmail.com" target="_blank">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">The ndk is as instructed 18, sdk is at API 25.<br>
<br>
I made a Dockerfile where I reproduce the problem, here it is:<br>
<br>
<a href="https://github.com/kilx/gcompris-docker" rel="noreferrer" target="_blank">https://github.com/kilx/gcompris-docker</a><br>
<br>
It's a bit messy with some extra packages I think, I'll clean up once<br>
I get it working.<br>
<br>
Thanks for looking into this.<br>
<br>
This isn't really a GCompris problem but some basic setup thing with<br>
clang not finding the required libstdc++ libraries, I think.<br>
<br>
But I'm not familiar with C++ so not sure where to look for this <new> include.<br>
<br>
On Mon, Nov 8, 2021 at 2:54 PM Johnny Jazeix <<a href="mailto:jazeix@gmail.com" target="_blank">jazeix@gmail.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> QmlModels have been added recently and Xml/XmlPatterns have been removed a few weeks ago, we haven't updated the doc yet.<br>
><br>
> I don't have access to my dev environment for a few hours so I can only give you a few tracks to explore until then.<br>
> Here it fails when compiling the submodule box2d. Which ndk/sdk versions have you installed? In one of them (I think sdk but not sure), is there a "new" file in the include?<br>
><br>
> Johnny<br>
><br>
> Le lun. 8 nov. 2021 à 13:36, Aleksander Kamenik <<a href="mailto:aleksander.kamenik@gmail.com" target="_blank">aleksander.kamenik@gmail.com</a>> a écrit :<br>
>><br>
>> Hi!<br>
>><br>
>> Yes, of couse. Without that I wouldn't have gotten this far.<br>
>><br>
>> Had to add -DQt5QmlModels_DIR as well to the cmake command and I think<br>
>> a couple of the -D switches are not actually needed:<br>
>><br>
>> CMake Warning:<br>
>>   Manually-specified variables were not used by the project:<br>
>><br>
>>     Qt5XmlPatterns_DIR<br>
>>     Qt5Xml_DIR<br>
>><br>
>> But everything else is in place. Used the same page to get it to<br>
>> successfully compile the Linux version.<br>
>><br>
>> Regards,<br>
>> Alex<br>
>><br>
>> On Mon, Nov 8, 2021 at 2:20 PM Johnny Jazeix <<a href="mailto:jazeix@gmail.com" target="_blank">jazeix@gmail.com</a>> wrote:<br>
>> ><br>
>> > Hi,<br>
>> ><br>
>> > have you followed <a href="https://gcompris.net/wiki/Qt_Quick_development_process#Compiling_GCompris_for_Android" rel="noreferrer" target="_blank">https://gcompris.net/wiki/Qt_Quick_development_process#Compiling_GCompris_for_Android</a>?<br>
>> ><br>
>> > Johnny<br>
>> ><br>
>> > Le lun. 8 nov. 2021 à 12:39, Aleksander Kamenik <<a href="mailto:aleksander.kamenik@gmail.com" target="_blank">aleksander.kamenik@gmail.com</a>> a écrit :<br>
>> >><br>
>> >> 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>
>><br>
>><br>
>><br>
>> --<br>
>> Aleksander Kamenik<br>
<br>
<br>
<br>
-- <br>
Aleksander Kamenik<br>
</blockquote></div></div>