cerbero jni compilation __register_atfork problem

Carl Blake carlb at williamsav.com
Thu Jun 27 22:21:21 UTC 2019


I have an android app being compiled with gstreamer.  When I use
gstreamer 1.16.0 from the download I'm able to compile the app without
any problems.  When I attempt to use gstreamer compiled using cerbero
(1.16.0) I get the following compilation error:

Build command failed.
Error while executing process /home/cdb/Android/Sdk/ndk-bundle/ndk-
build with arguments {NDK_PROJECT_PATH=null
APP_BUILD_SCRIPT=/home/cdb/WaveCAST_Receiver/app/jni/Android.mk
NDK_APPLICATION_MK=/home/cdb/WaveCAST_Receiver/app/jni/Application.mk
APP_ABI=x86_64 NDK_ALL_ABIS=x86_64 NDK_DEBUG=1 APP_PLATFORM=android-23
NDK_OUT=/home/cdb/WaveCAST_Receiver/app/build/intermediates/ndkBuild/de
bug/obj
NDK_LIBS_OUT=/home/cdb/WaveCAST_Receiver/app/build/intermediates/ndkBui
ld/debug/lib NDK_APPLICATION_MK=jni/Application.mk
GSTREAMER_JAVA_SRC_DIR=src GSTREAMER_ROOT_ANDROID=/opt/gstreamer-1.0-
android-universal-1.16.0-wav GSTREAMER_ASSETS_DIR=src/assets
/home/cdb/WaveCAST_Receiver/app/build/intermediates/ndkBuild/debug/obj/
local/x86_64/libgststart.so}
[x86_64] Compile        : gststart <= gststart.c
[x86_64] Compile++      : gststart <= dummy.cpp
GStreamer      : [GEN] => gst-build-x86_64/gstreamer_android.c
GStreamer      : [COMPILE] => gst-build-x86_64/gstreamer_android.c
GStreamer      : [LINK] => gst-build-x86_64/libgstreamer_android.so

/home/cdb/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-
x86_64/sysroot/usr/lib/x86_64-linux-
android/23/crtbegin_so.o:crtbegin_so.c:function pthread_atfork: error:
undefined reference to '__register_atfork'
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
make: *** [buildsharedlibrary_x86_64] Error 1

I'm using android studio 3.3.1.

Does anybody have any ideas why this might be happening?

Carl




More information about the gstreamer-android mailing list