Kalyzee / react-native-gstreamer

React native Gstreamer Ios / Android.
49 stars 20 forks source link

Unsupported ELF machine number 183 #16

Closed mjansrud closed 5 years ago

mjansrud commented 5 years ago

Hello!

I am unable to compile the project on Android with

Error while executing process /home/jansrud/Android/Sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/home/jansrud/Projects/scout_gui/node_modules/react-native-gstreamer/android/RCTGstPlayer/src/main/jni/Android.mk NDK_APPLICATION_MK=/home/jansrud/Projects/scout_gui/node_modules/react-native-gstreamer/android/RCTGstPlayer/src/main/jni/Application.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=/home/jansrud/Projects/scout_gui/node_modules/react-native-gstreamer/android/RCTGstPlayer/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=/home/jansrud/Projects/scout_gui/node_modules/react-native-gstreamer/android/RCTGstPlayer/build/intermediates/ndkBuild/debug/lib NDK_APPLICATION_MK=src/main/jni/Application.mk GSTREAMER_JAVA_SRC_DIR=src/main/java GSTREAMER_ROOT_ANDROID=~/Libraries/gstreamer/android GSTREAMER_ASSETS_DIR=src/main/assets /home/jansrud/Projects/scout_gui/node_modules/react-native-gstreamer/android/RCTGstPlayer/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/librctgstplayer.so}
GStreamer      : [GEN] => gst-build-arm64-v8a/gstreamer_android.c
GStreamer      : [COMPILE] => gst-build-arm64-v8a/gstreamer_android.c
GStreamer      : [LINK] => gst-build-arm64-v8a/libgstreamer_android.so
/usr/bin/ld.gold: error: cannot open crti.o: No such file or directory
/usr/bin/ld.gold: error: cannot open crtbeginS.o: No such file or directory
/usr/bin/ld.gold: fatal error: /home/jansrud/Libraries/gstreamer/android/arm64/lib/gstreamer-1.0/static/libgstrtmp.a(libgstrtmp_la-gstrtmp.o): unsupported ELF machine number 183
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [buildsharedlibrary_arm64-v8a] Error 1

Any ideas?

ludovic-bouguerra commented 5 years ago

Hi,

Which branch of react-native-gstreamer are you using ? Which is our Android NDK version ?

LB.

mjansrud commented 5 years ago

Thanks for the fast reply, I am using the master branch and the latest version of Android NDK, 18.0.5. Trying to compile to a Lenevo Tab 4 8.

mjansrud commented 5 years ago

I tried to run the examples from https://gstreamer.freedesktop.org/documentation/tutorials/android/link-against-gstreamer.html and experience the same problems when building. I appreciate any help, though it seems that the problems are related to the compilation of the gstreamer library.

mjansrud commented 5 years ago

Solved. Used an older version of Android NDK, r16b