GNOME Bugzilla – Bug 796336
cannot compile with ndk-r16 and 1.14.x
Last modified: 2018-11-03 10:23:33 UTC
i couldn't manage to compile any code on windows. previous version (ndk-r15 with gst-1.12.1) was working fine. the same example is not working with 1.14 and ndk-r16 ********************************* process_begin: CreateProcess(NULL, C:/Users/oracle/Desktop/android-ndk-r16b/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/clang.exe -MMD -MP -MF E:/MyApp/app/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/objs-debug/player/player.o.d -gcc-toolchain C:/Users/oracle/Desktop/android-ndk-r16b/build//../toolchains/aarch64-linux-android-4.9/prebuilt/windows-x86_64 -target aarch64-none-linux-android -ffunction-sections -funwind-tables -fstack-protector-strong -fpic -Wno-invalid-command-line-argument -Wno-unused-command-line-argument -no-canonical-prefixes -g -O0 -UNDEBUG -fno-limit-debug-info -IC:\Users\oracle\Desktop\gstreamer-1.0-android-universal-1.14.1/arm64/include -IC:\Users\oracle\Desktop\gstreamer-1.0-android-universal-1.14.1/arm64/include/gstreamer-1.0 -IC:\Users\oracle\Desktop\gstreamer-1.0-android-universal-1.14.1/arm64/include/glib-2.0 -IC:\Users\oracle\Desktop\gstreamer-1.0-android-universal-1.14.1/arm64/lib/glib-2.0/include -IC:/Users/oracle/Desktop/gstreamer-1.0-android-universal-1.14.1/arm64/include/gstreamer-1.0 -IC:/Users/oracle/Desktop/gstreamer-1.0-android-universal-1.14.1/arm64/include/glib-2.0 -IC:/Users/oracle/Desktop/gstreamer-1.0-android-universal-1.14.1/arm64/lib/glib-2.0/include -IC:/Users/oracle/Desktop/gstreamer-1.0-android-universal-1.14.1/arm64/include/orc-0.4 -IC:/Users/oracle/Desktop/gstreamer-1.0-android-universal-1.14.1/arm64/include -IE:/MyApp/app/src/main/jni -DANDROID -D__ANDROID_API__=21 -Wa,--noexecstack -Wformat -Werror=format-security --sysroot C:/Users/oracle/Desktop/android-ndk-r16b/build//../sysroot -isystem C:/Users/oracle/Desktop/android-ndk-r16b/build//../sysroot/usr/include/aarch64-linux-android -c E:/MyApp/app/src/main/jni/player.c -o E:/MyApp/app/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/objs-debug/player/player.o, ...) failed. make (e=2): The system cannot find the file specified. make: *** [E:/MyApp/app/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/objs-debug/player/player.o] Error 2 ****************************************** first point is the wrong folder. i need to rename: android-ndk-r16b\toolchains\aarch64-linux-android-4.9\prebuilt\windows to: android-ndk-r16b\toolchains\aarch64-linux-android-4.9\prebuilt\windows-x86_64 then another issue about gold.exe not found so i change: GSTREAMER_LD := -fuse-ld=gold$(EXE_SUFFIX) to GSTREAMER_LD := -fuse-ld=gold in gstreamer-1.0.mk then another issue: ************************ Build command failed. Error while executing process C:\Users\oracle\Desktop\android-ndk-r16b\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=E:\MyApp\app\src\main\jni\Android.mk NDK_APPLICATION_MK=E:\MyApp\app\src\main\jni\Application.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=E:/MyApp/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=E:\MyApp\app\build\intermediates\ndkBuild\debug\lib NDK_APPLICATION_MK=src/main/jni/Application.mk GSTREAMER_JAVA_SRC_DIR=src/main/java GSTREAMER_ROOT_ANDROID=C:\Users\oracle\Desktop\gstreamer-1.0-android-universal-1.14.1 GSTREAMER_ASSETS_DIR=src/main/assets E:/MyApp/app/build/intermediates/ndkBuild/debug/obj/local/arm64-v8a/libplayer.so} [arm64-v8a] "Compile ": "player <= player.c" "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" collect2.exe: fatal error: cannot find 'ld' compilation terminated. make: *** [buildsharedlibrary_arm64-v8a] Error 1 *******************
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/cerbero/issues/60.