Building Android Tutorials 4 and 5: "ld: error: unable to find library -lgcc"


when building the android tutorials 4 and 5 in Android Studio on Windows 10, I get the following error:

ld: error: unable to find library -lgcc
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [D:\gstreamer\gstreamer-1.0-android-universal-1.22.6/x86_64/share/gst-android/ndk-build// buildsharedlibrary_x86_64] Error 1

Tutorials 1 to 3 compile fine and also run ok in the android emulator.

Please note that I had to remove the following parameter from said where GSTREAMER_LD is set:
Before, it complained about the linker:
clang++: error: invalid linker name in argument '-fuse-ld=gold.exe'

The only other change I made is adding the new file

gstreamer-Version: gstreamer-1.0-android-universal-1.22.6
NDK-Version: 25.2.9519653
Build Variant: Debug
Active ABI: x86_64
OS: Windows 10

I suspect that this could be related to the fact that libgcc has been removed from NDK - see here

See android: update NDK to r25c (!1191) · Merge requests · GStreamer / cerbero · GitLab . With 1.22.6 and before you need to use an older version of the NDK.