For about 3 weeks now I have been experiencing a strange error when building for Android under MacOS.
ld: error: /Users/patrick/src/android/Android_Player/libMediaExtractor/build/intermediates/cxx/Debug/5p272q2v/obj/local/arm64-v8a/libgstreamer_android.so: unknown file type
The crazy thing is that it works from time to time.
Occasionally I have to do a clean and rebuild.
I can only narrow it down a little.
file ./gst-android-build/arm64-v8a/libgstreamer_android.so_this_works ./gst-android-build/arm64-v8a/libgstreamer_android.so
./gst-android-build/arm64-v8a/libgstreamer_android.so_this_works: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, with debug_info, not stripped
./gst-android-build/arm64-v8a/libgstreamer_android.so: data
It seems when building, first a version is created that works, then another step is taken that makes the file broken. Perhaps a strip or a conversion.
I have seen the problem so far with Gst > 1.22.0
It could be that it has to do with MacOS 14.3.1. That would fit in time. On the other hand, I have also updated Android Studio.
I have tried different NDK versions. That makes no difference.
I currently use the prebuild versions of gstreamer from the homepage.
Has anyone seen this problem before or has an idea what the problem could be?