Page 1 of 1

Compiling help!

Posted: 30 Aug 2011 02:13
by Eltev1
I was trying to run the bootstrap in the extras/contribs, but got this message... I'm totally stuck now:(

*******@ubuntu:~/android/vlc-android/extras/contrib$ ./bootstrap -t arm-eabi -d android
[contrib] No install dir specified, using '/home/vetlewi/android/vlc-android/extras/contrib/hosts/arm-eabi'
[contrib] *****************************************************************
[contrib] * If you need contribs with all debug information, run this *
[contrib] * line and compile the libraries on your own. *
[contrib] * CONTRIBS_RELEASE=no ./bootstrap *
[contrib] *****************************************************************
[contrib] Using 2 processor(s)
*********@ubuntu:~/android/vlc-android/extras/contrib$ make
make -C build-src tools
make[1]: Entering directory `/home/vetlewi/android/vlc-android/extras/contrib/build-src'
make[1]: warning: -jN forced in submake: disabling jobserver mode.
make[1]: Nothing to be done for `tools'.
make[1]: Leaving directory `/home/vetlewi/android/vlc-android/extras/contrib/build-src'
make -C build-src
make[1]: Entering directory `/home/vetlewi/android/vlc-android/extras/contrib/build-src'
make[1]: warning: -jN forced in submake: disabling jobserver mode.
(cd zlib; CC="arm-linux-androideabi-gcc --sysroot=/android/android-ndk-r5b/platforms/android-9/arch-arm" CXX="arm-linux-androideabi-g++ --sysroot=/android/android-ndk-r5b/platforms/android-9/arch-arm" LD="arm-linux-androideabi-ld" RANLIB="arm-linux-androideabi-ranlib" AR="arm-linux-androideabi-ar" STRIP="arm-linux-androideabi-strip" ./configure --prefix=/home/vetlewi/android/vlc-android/extras/contrib/hosts/arm-eabi --static && make install)
(cd a52dec; CC="arm-linux-androideabi-gcc --sysroot=/android/android-ndk-r5b/platforms/android-9/arch-arm" CXX="arm-linux-androideabi-g++ --sysroot=/android/android-ndk-r5b/platforms/android-9/arch-arm" LD="arm-linux-androideabi-ld" RANLIB="arm-linux-androideabi-ranlib" AR="arm-linux-androideabi-ar" STRIP="arm-linux-androideabi-strip" ./configure --target=arm-eabi --host=arm-eabi --build=x86_64-linux-gnu --program-prefix="" --prefix=/home/vetlewi/android/vlc-android/extras/contrib/hosts/arm-eabi && cd liba52 && make && make install && cd ../include && make && make install)
Building static library libz.a version 1.2.5 with arm-linux-androideabi-gcc --sysroot=/android/android-ndk-r5b/platforms/android-9/arch-arm.
Checking for off64_t... No.
Checking for fseeko... No.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf().
Checking for snprintf() in stdio.h... No.
WARNING: snprintf() not found, falling back to sprintf(). zlib
can build but will be open to possible buffer-overflow security
vulnerabilities.
Checking for return value of sprintf()... No.
WARNING: apparently sprintf() does not return a value. zlib
can build but will be open to possible string-format security
vulnerabilities.
make[2]: Entering directory `/home/vetlewi/android/vlc-android/extras/contrib/build-src/zlib'
make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
arm-linux-androideabi-gcc --sysroot=/android/android-ndk-r5b/platforms/android-9/arch-arm -I/home/vetlewi/android/vlc-android/extras/contrib/hosts/arm-eabi/include -DNDEBUG -D__STDC_VERSION__=199901L -I/android/android-ndk-r5b/sources/cxx-stl/gnu-libstdc++/include -I/android/android-ndk-r5b/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include -isystem /home/vetlewi/android/vlc-android/extras/contrib/hosts/arm-eabi/include -I/android/android-ndk-r5b/platforms/android-9/arch-arm/usr/include -DNO_FSEEKO -DNO_snprintf -DHAS_sprintf_void -I/home/vetlewi/android/vlc-android/extras/contrib/hosts/arm-eabi/include -DNDEBUG -D__STDC_VERSION__=199901L -I/android/android-ndk-r5b/sources/cxx-stl/gnu-libstdc++/include -I/android/android-ndk-r5b/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/include -isystem /home/vetlewi/android/vlc-android/extras/contrib/hosts/arm-eabi/include -I/android/android-ndk-r5b/platforms/android-9/arch-arm/usr/include -c -o adler32.o adler32.c
make[2]: arm-linux-androideabi-gcc: Command not found
make[2]: *** [adler32.o] Error 127
make[2]: Leaving directory `/home/vetlewi/android/vlc-android/extras/contrib/build-src/zlib'
make[1]: *** [.zlib] Error 2
make[1]: *** Waiting for unfinished jobs....
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... found
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64-pc-linux-gnu
checking host system type... arm-unknown-eabi
checking for arm-eabi-gcc... arm-linux-androideabi-gcc --sysroot=/android/android-ndk-r5b/platforms/android-9/arch-arm
checking for C compiler default output... configure: error: C compiler cannot create executables
make[1]: *** [.a52] Error 77
make[1]: Leaving directory `/home/vetlewi/android/vlc-android/extras/contrib/build-src'
make: *** [using-src] Error 2

Re: Compiling help!

Posted: 23 Nov 2011 13:05
by gepebril
Looks like a rights issue. Maybe the folder in where you try to create things has root only privileges?

Re: Compiling help!

Posted: 23 Nov 2011 17:37
by milkmantep
The real error is further back in your output:

Code: Select all

make[2]: arm-linux-androideabi-gcc: Command not found
I had a similar issue. This file is part of the Android NDK. Try this, it worked for me:

Code: Select all

export PATH=$PATH:$ANDROID_NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin
(Of course, you'll have to confirm that this directory contains the file in question. If not, it's somewhere in the Android NDK directory structure. Use find to find it.)

The re-run install.sh.

Re: Compiling help!

Posted: 23 Nov 2011 22:35
by gepebril
@milkmantep Sharp vision :)