configure -target=x86-android-gcc -disable-runtime-cpu-detect -disable-examples -disable-tools -sdk-path=/opt/android/android-sdk/ndk-bundle/ -prefix=/usr/local/src/android/libvpx. Use NDK=/opt/android/android-sdk/ndk-bundleĮxport NDK_TOOLCHAIN_BASENAME=/usr/local/src/android/libvpx.git/libvpx/x86-android-toolchain/bin/i686-linux-androidĮxport SYSROOT=/usr/local/src/android/libvpx.git/libvpx/x86-android-toolchain/sysrootĮxport CC=/usr/local/src/android/libvpx.git/libvpx/x86-android-toolchain/bin/i686-linux-android-gccĮxport CXX=/usr/local/src/android/libvpx.git/libvpx/x86-android-toolchain/bin/i686-linux-android-g++Įxport LINK=/usr/local/src/android/libvpx.git/libvpx/x86-android-toolchain/bin/i686-linux-android-g++Įxport LD=/usr/local/src/android/libvpx.git/libvpx/x86-android-toolchain/bin/i686-linux-android-ldĮxport AR=/usr/local/src/android/libvpx.git/libvpx/x86-android-toolchain/bin/i686-linux-android-arĮxport RANLIB=/usr/local/src/android/libvpx.git/libvpx/x86-android-toolchain/bin/i686-linux-android-ranlibĮxport STRIP=/usr/local/src/android/libvpx.git/libvpx/x86-android-toolchain/bin/i686-linux-android-stripĮxport CFLAGS=-march=i686 -mtune=intel -msse3 -mfpmath=sse -m32 -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64Įxport CXXFLAGS=-march=i686 -mtune=intel -msse3 -mfpmath=sse -m32 -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -std=c++11 -frtti -fexceptions The static libvpx.a is built with the following configuration using standalone-toolchains on ubuntu-16.04 Is there some parameters I need to specify during the x86 static library built? However I did not make any progress on the add_noise.c source rand() call. I managed to fix the rand() call from asm sources with "export ASFLAGS=-D_ANDROID_". I tried some of the proposed fixed from online site: My understanding is that the rand() function call should have been replaced with inline macro during the x86 static library built for API android-15 platform. The errors are due to apx_dsp/add_noise.c which makes call to rand() function. Ensure that the path is set properly, so that the tools can be accessed without referring to the SDK and NDK directories. Vpx/android/x86/lib/libvpx.a(add_noise.c.o):function vpx_setup_noise: error: undefined reference to 'rand'Ĭollect2: error: ld returned 1 exit status We first set up Android SDK and then Android NDK. LLDB: the debugger Android Studio uses to debug native code. You do not need this component if you only plan to use ndk-build. CMake: an external build tool that works alongside Gradle to build your native library. Vpx/android/x86/lib/libvpx.a(add_noise.c.o):function vpx_plane_add_noise_c: error: undefined reference to 'rand' The Android Native Development Kit (NDK): a set of tools that allows you to use C and C++ code with Android.
0 Comments
Leave a Reply. |