Arm linux androideabi gcc error

arm-linux-androideabi-gcc is unable to create an executable — compile ffmpeg for android armeabi devices

I am trying to compile ffmpeg for android armeabi devices.
I am following tutorial by roman10.net
His given build script builds ffmpeg for armv7-a devices. I want to build it for armeabi.
My ultimate aim is to run ffmpeg commands on android armeabi and armv7-a devices. So I change the script’s CPU part from

#arm v7vfpv3 CPU=armv7-a OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU " PREFIX=./android/$CPU ADDITIONAL_CONFIGURE_FLAG= build_one 
#arm v6 CPU=armv6 OPTIMIZE_CFLAGS="-marm -march=$CPU" PREFIX=./android/$CPU ADDITIONAL_CONFIGURE_FLAG= build_one 

(I thought changing it to armv6 would build ffmpeg compatible with armeabi devices. m I wrong?) Doubt 1:
Do I also have to change toolchain?
i.e from arm-linux-androideabi-4.4.3 to arm-eabi-4.4.0 . Doubt 2: When I try running ./build.sh (without changing toolchain) it gives me following error:

/home/chaitanya/android/android-ndk-r5b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc is unable to create an executable file. C compiler test failed. If you think configure made a mistake. blaah blahh blaah 

after that I got lot of warnings saying:
‘sub_id’ is deprecated and many other function deprecated warnings. platform: ubuntu 11.10
ffmpeg version: 0.11.2
NDK : android-ndk-r5b Here is my build script:

#!/bin/bash ###################################################### # Usage: # put this script in top of FFmpeg source tree # ./build_android # It generates binary for following architectures: # ARMv6 # ARMv6+VFP # ARMv7+VFPv3-d16 (Tegra2) # ARMv7+Neon (Cortex-A8) # Customizing: # 1. Feel free to change ./configure parameters for more features # 2. To adapt other ARM variants # set $CPU and $OPTIMIZE_CFLAGS # call build_one ###################################################### NDK=~/android/android-ndk-r5b PLATFORM=$NDK/platforms/android-8/arch-arm/ PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 function build_one < ./configure --target-os=linux \ --prefix=$PREFIX \ --enable-cross-compile \ --extra-libs="-lgcc" \ --arch=arm \ #--cc=$PREBUILT/bin/arm-linux-androideabi-gcc \ --cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \ #--nm=$PREBUILT/bin/arm-linux-androideabi-nm \ --sysroot=$PLATFORM \ --extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " \ --disable-shared \ --enable-static \ --extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -nostdlib -lc -lm -ldl -llog" \ --disable-everything \ --enable-demuxer=mov \ --enable-demuxer=h264 \ --disable-ffplay \ --enable-protocol=file \ --enable-avformat \ --enable-avcodec \ --enable-decoder=rawvideo \ --enable-decoder=mjpeg \ --enable-decoder=h263 \ --enable-decoder=mpeg4 \ --enable-decoder=h264 \ --enable-parser=h264 \ --disable-network \ --enable-zlib \ --disable-avfilter \ --disable-avdevice \ $ADDITIONAL_CONFIGURE_FLAG make clean make -j4 install $PREBUILT/bin/arm-linux-androideabi-ar d libavcodec/libavcodec.a inverse.o $PREBUILT/bin/arm-linux-androideabi-ld -rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -soname libffmpeg.so -shared -nostdlib -z,noexecstack -Bsymbolic --whole-archive --no-undefined -o $PREFIX/libffmpeg.so libavcodec/libavcodec.a libavformat/libavformat.a libavutil/libavutil.a libswscale/libswscale.a -lc -lm -lz -ldl -llog --warn-once --dynamic-linker=/system/bin/linker $PREBUILT/lib/gcc/arm-linux-androideabi/4.4.3/libgcc.a >#arm v6 CPU=armv6 OPTIMIZE_CFLAGS="-marm -march=$CPU" PREFIX=./android/$CPU ADDITIONAL_CONFIGURE_FLAG= build_one #arm v7vfpv3 #CPU=armv7-a #OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfpv3-d16 -marm -march=$CPU " #PREFIX=./android/$CPU #ADDITIONAL_CONFIGURE_FLAG= #build_one #arm v7vfp #CPU=armv7-a #OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=vfp -marm -march=$CPU " #PREFIX=./android/$CPU-vfp #ADDITIONAL_CONFIGURE_FLAG= #build_one #arm v7n #CPU=armv7-a #OPTIMIZE_CFLAGS="-mfloat-abi=softfp -mfpu=neon -marm -march=$CPU -mtune=cortex-a8" #PREFIX=./android/$CPU #ADDITIONAL_CONFIGURE_FLAG=--enable-neon #build_one #arm v6+vfp #CPU=armv6 #OPTIMIZE_CFLAGS="-DCMP_HAVE_VFP -mfloat-abi=softfp -mfpu=vfp -marm -march=$CPU" #PREFIX=./android/$_vfp #ADDITIONAL_CONFIGURE_FLAG= #build_one 

Источник

Читайте также:  Аудит сети kali linux

Buildozer — Kivy failing to build : arm-linux-androideabi-gcc: error: unrecognized command line option ‘-arch’

Can someone help me please? I have been trying to build a very basic APK and I keep failing. My latest error is included below. Any help or tips/ideas is greatly appreciated. OSX Maverick/ Python 2.7.7/ Cython 0.20.1 Many thanks in advance. //Marc ###################

building 'pygame.imageext' extension creating build/temp.macosx-10.4-x86_64-2.7 creating build/temp.macosx-10.4-x86_64-2.7/src arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /Users/holbrookm/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysroot /Users/holbrookm/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -I/Users/holbrookm/Virtualenvs/kivywork/.buildozer/android/platform/python-for-android/src/jni/png -I/Users/holbrookm/Virtualenvs/kivywork/.buildozer/android/platform/python-for-android/src/jni/jpeg -I/Users/holbrookm/Virtualenvs/kivywork/.buildozer/android/platform/python-for-android/src/jni/sdl/include -I/Users/holbrookm/Virtualenvs/kivywork/.buildozer/android/platform/python-for-android/src/jni/sdl_mixer -I/Users/holbrookm/Virtualenvs/kivywork/.buildozer/android/platform/python-for-android/src/jni/sdl_ttf -I/Users/holbrookm/Virtualenvs/kivywork/.buildozer/android/platform/python-for-android/src/jni/sdl_image -arch x86_64 -D_REENTRANT -I/Users/holbrookm/Virtualenvs/kivywork/.buildozer/android/platform/python-for-android/build/python-install/include/python2.7 -c src/imageext.c -o build/temp.macosx-10.4-x86_64-2.7/src/imageext.o arm-linux-androideabi-gcc: error: x86_64: No such file or directory arm-linux-androideabi-gcc: error: unrecognized command line option '-arch' error: command 'arm-linux-androideabi-gcc' failed with exit status 1 # Command failed: ./distribute.sh -m "kivy" -d "marc_app" 

Источник

Bambuser ffmpeg — «arm-linux-androideabi-gcc is unable to create an executable file.»

I know this may be possible duplicate of some questions. but answers for those threads are not helping me. I am trying to compile ffmpeg library for android using Bambuser’s ffmpeg.
I downloaded Archive for client versions 1.3.7 to 1.6.0. from bambuser. I followed instruction given in REAME.
While running ./build.sh i came across following error

arm-linux-androideabi-gcc is unable to create an executable file. C compiler test failed. If you think configure made a mistake, make sure you are using the latest version from SVN. If the latest version fails, report the problem to the ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem. 
mktemp is /bin/mktemp check_ld check_cc BEGIN /tmp/ffconf.qflVj27Q.c 1 int main(void) < return 0; >END /tmp/ffconf.qflVj27Q.c arm-linux-androideabi-gcc --sysroot=/home/chaitanya/android/android-ndk-r5b/platforms/android-8/arch-arm -c -o /tmp/ffconf.gc6um0Ki.o /tmp/ffconf.qflVj27Q.c arm-linux-androideabi-gcc: error trying to exec 'cc1': execvp: No such file or directory C compiler test failed. 

in tmp i do not find any relative folder or file as per config.log says «ffconf.qflVj27Q.c». I am doing this on
1. Ubuntu 11.10
2. OpenJDK 6
3. android-ndk-r5b NOte:
I only have API-10 Installed in eclipse. (if it matters :D) What could be the solution for this?

Читайте также:  Linux mysql jdbc connector

Источник

Android NDK — arm-linux-androideabi-g++: not found

I am trying to build the C++ POCO library for an Android target in a fresh Ubuntu that I just installed for that. I have installed the Android NDK in /home/user/dev/Android/android-ndk-r9-x86 and added the path to the NDK in the environement variables using : export ANDROID_NDK_ROOT=/home/user/dev/Android/android-ndk-r9-x86 To build the libraries I first move to the root directory of the POCO library, and configure it using :

./configure --omit=NetSSL_OpenSSL,Crypto,Data/ODBC,Data/MySQL --static --config=Android 

So that it compiles static .a libraries, doesn’t compile the modules I don’t want and compiles for an Android target. But than calling make causes the following error :

user@user-VirtualBox:~/dev/Lib/POCO/poco-1.6.1$ make make -C /home/user/dev/Lib/POCO/poco-1.6.1/Foundation make[1]: Entering directory `/home/user/dev/Lib/POCO/poco-1.6.1/Foundation' ** Compiling src/ArchiveStrategy.cpp (debug, static) arm-linux-androideabi-g++ -Iinclude -I/home/user/dev/Lib/POCO/poco-1.6.1/CppUnit/include -I/home/user/dev/Lib/POCO/poco-1.6.1/CppUnit/WinTestRunner/include -I/home/user/dev/Lib/POCO/poco-1.6.1/Foundation/include -I/home/user/dev/Lib/POCO/poco-1.6.1/XML/include -I/home/user/dev/Lib/POCO/poco-1.6.1/JSON/include -I/home/user/dev/Lib/POCO/poco-1.6.1/Util/include -I/home/user/dev/Lib/POCO/poco-1.6.1/Net/include -mthumb -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-strict-aliasing -finline-limit=64 -frtti -fexceptions -DPOCO_BUILD_HOST=user-VirtualBox -DPOCO_ANDROID -DPOCO_NO_FPENVIRONMENT -DPOCO_NO_WSTRING -DPOCO_NO_SHAREDMEMORY -g -D_DEBUG -c src/ArchiveStrategy.cpp -o /home/user/dev/Lib/POCO/poco-1.6.1/Foundation/obj/Android/armeabi/debug_static/ArchiveStrategy.o sh: 1: arm-linux-androideabi-g++: not found make[1]: *** [/home/user/dev/Lib/POCO/poco-1.6.1/Foundation/obj/Android/armeabi/debug_static/ArchiveStrategy.o] Error 127 make[1]: Leaving directory `/home/user/dev/Lib/POCO/poco-1.6.1/Foundation' make: *** [Foundation-libexec] Error 2 

Make seems unable to find the compiler used for Android, and I have no idea why ? What am I missing ? Did i forget something when «installing» the NDK ? Thank you.

Источник

the program arm-linux-androideabi-gcc is currently not installed

I’m trying to compile FFTW for android using NDK r10. Using the instructions here: http://blog.jimjh.com/compiling-open-source-libraries-with-android-ndk-part-2.html However, when I run ./configure it fails because of the error: the program arm-linux-androideabi-gcc is currently not installed.
I validate that my PATH includes the needed entries — and of course the file arm-linux-androideabi-gcc exists in the bin folder. can you please help me

#!/bin/sh # FourierTest/build.sh # Compiles fftw3 for Android # Make sure you have NDK_ROOT defined in .bashrc or .bash_profile INSTALL_DIR="`pwd`/jni/analysis/fftw3" SRC_DIR="`pwd`/../fftw-3.3.4" NDK_ROOT="~/utils/android-ndk-r10" cd $SRC_DIR export ANDROID_NDK_ROOT="~/utils/android-ndk-r10" export ANDROID_NDK_TOOLCHAIN="~/utils/android-ndk-r10/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/" export PATH="~/utils/android-ndk-r10/toolchains/arm-linux androideabi-4.8/prebuilt/linux-x86_64/bin/:$PATH" export SYS_ROOT="~/utils/android-ndk-r10/platforms/android-14/arch-arm/" export CC="arm-linux-androideabi1-gcc --sysroot=$SYS_ROOT" export LD="arm-linux-androideabi-ld" export AR="arm-linux-androideabi-ar" export RANLIB="arm-linux-androideabi-ranlib" export STRIP="arm-linux-androideabi-strip" mkdir -p $INSTALL_DIR ./configure --prefix=$INSTALL_DIR --enable-float make make install exit 0 

Edit: I had small issue with my path before because of me playing with it. Now it gives me: «Gcc error: gcc: error trying to exec ‘cc1’: execvp: No such file or directory»

Читайте также:  Linux uninstall dr web

Источник

Оцените статью
Adblock
detector