Code: Select all
nproc
Code: Select all
sysctl
Dear edwardw :Works for me on Linux. What is the output of theandCode: Select all
nproc
commands in the terminal?Code: Select all
sysctl
I see,here it is:No. I need to know some information about your build environment. Please follow the instructions in my post above. Thanks.
Code: Select all
$ nproc
-bash: nproc: command not found
Code: Select all
$ sysctl
usage: sysctl [-n] [-e] variable ...
sysctl [-n] [-e] [-q] -w variable=value ...
sysctl [-n] [-e] -a
sysctl [-n] [-e] [-q] -p <file> (default /etc/sysctl.conf)
sysctl [-n] [-e] -A
Dear edwardw :Run git pull on your android.git and see if it fixes the problem.
Code: Select all
For an ARMv6 device without FPU, you need a build without FPU:
$ export NO_FPU=1
For an ARMv5 device or the Android emulator, you need an ARMv5 build:
$ export NO_ARMV6=1
If you plan to use a release build, run 'compile.sh release'
VLC source found
[: 150: Linux: unexpected operator
Building tools
yasm not found
ragel not found
(cd yasm; ./configure --prefix=/android/vlc/extras/tools/build && make && make install)
(cd ragel; ./configure --prefix=/android/vlc/extras/tools/build --disable-shared --enable-static && make && make install)
configure: WARNING: unrecognized options: --disable-shared, --enable-static
checking for a BSD-compatible install... checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... /usr/bin/install -c
checking whether build environment is sane... yes
yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking for a thread-safe mkdir -p... checking whether make sets $(MAKE)... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for style of include used by make... GNU
checking for ./DIST... yes
checking for gcc... mipsel-linux-android-gcc
checking for gcc... mipsel-linux-android-gcc
checking whether the C compiler works... checking whether the C compiler works... no
configure: error: in `/android/vlc/extras/tools/yasm':
configure: error: C compiler cannot create executables
See `config.log' for more details
no
configure: error: in `/android/vlc/extras/tools/ragel':
configure: error: C compiler cannot create executables
See `config.log' for more details
make: *** [.yasm] Error 77
make: *** Waiting for unfinished jobs....
make: *** [.ragel] Error 77
Paste the config.log, since your C compiler looks broken.configure: error: C compiler cannot create executables
Here is ragel config.log :Paste the config.log, since your C compiler looks broken.configure: error: C compiler cannot create executables
Code: Select all
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by ragel configure 6.8, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --prefix=/android/vlc/extras/tools/build --disable-shared --enable-static
## --------- ##
## Platform. ##
## --------- ##
hostname = ubuntumakesz
uname -m = x86_64
uname -r = 2.6.32-33-generic
uname -s = Linux
uname -v = #70-Ubuntu SMP Thu Jul 7 21:13:52 UTC 2011
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /android/vlc/extras/tools/build/bin
PATH: /android-ndk-r8d/toolchains/mipsel-linux-android-4.7/prebuilt/linux-x86/bin
PATH: /VLC/vlc-android/apache-ant-1.8.4
PATH: /opt/cmake-2.8.2/bin
PATH: /opt/mips/bin
PATH: /opt/mpx/mips-tool/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /android-sdk-linux/platform-tools
PATH: /android-sdk-linux/tools
PATH: /android-toolchain/bin
PATH: /VLC/vlc-android/apache-ant-1.8.4/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1872: checking for a BSD-compatible install
configure:1940: result: /usr/bin/install -c
configure:1951: checking whether build environment is sane
configure:2001: result: yes
configure:2142: checking for a thread-safe mkdir -p
configure:2181: result: /bin/mkdir -p
configure:2194: checking for gawk
configure:2210: found /usr/bin/gawk
configure:2221: result: gawk
configure:2232: checking whether make sets $(MAKE)
configure:2254: result: yes
configure:2339: checking for ./DIST
configure:2353: result: yes
configure:2445: checking for gcc
configure:2472: result: mipsel-linux-android-gcc
configure:2701: checking for C compiler version
configure:2710: mipsel-linux-android-gcc --version >&5
mipsel-linux-android-gcc (GCC) 4.7
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2721: $? = 0
configure:2710: mipsel-linux-android-gcc -v >&5
Using built-in specs.
COLLECT_GCC=mipsel-linux-android-gcc
COLLECT_LTO_WRAPPER= /android-ndk-r8d/toolchains/mipsel-linux-android-4.7/prebuilt/linux-x86/bin/../libexec/gcc/mipsel-linux-android/4.7/lto-wrapper
Target: mipsel-linux-android
Configured with: /s/ndk-toolchain/src/build/../gcc/gcc-4.7/configure --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix --target=mipsel-linux-android --host=x86_64-linux-gnu --build=x86_64-linux-gnu --with-gnu-as --with-gnu-ld --enable-languages=c,c++ --with-gmp=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-mpfr=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --with-mpc=/tmp/ndk-andrewhsieh/build/toolchain/temp-install --without-ppl --without-cloog --disable-libssp --enable-threads --disable-nls --disable-libmudflap --disable-libgomp --disable-libstdc__-v3 --disable-sjlj-exceptions --disable-shared --disable-tls --disable-libitm --enable-initfini-array --disable-nls --prefix=/tmp/ndk-andrewhsieh/build/toolchain/prefix --with-sysroot=/tmp/ndk-andrewhsieh/build/toolchain/prefix/sysroot --with-binutils-version=2.22 --with-mpfr-version=2.4.1 --with-mpc-version=0.8.1 --with-gmp-version=5.0.5 --with-gcc-version=4.7 --with-gdb-version=7.3.x --with-gxx-include-dir=/tmp/ndk-andrewhsieh/build/toolchain/prefix/include/c++/4.7 --with-bugurl=http://source.android.com/source/report-bugs.html --disable-bootstrap --disable-libquadmath --disable-plugin --with-arch=mips32 --disable-fixed-point --disable-threads --program-transform-name='s&^&mipsel-linux-android-&'
Thread model: single
gcc version 4.7 (GCC)
configure:2721: $? = 0
configure:2710: mipsel-linux-android-gcc -V >&5
mipsel-linux-android-gcc: error: unrecognized command line option '-V'
mipsel-linux-android-gcc: fatal error: no input files
compilation terminated.
configure:2721: $? = 1
configure:2710: mipsel-linux-android-gcc -qversion >&5
mipsel-linux-android-gcc: error: unrecognized command line option '-qversion'
mipsel-linux-android-gcc: fatal error: no input files
compilation terminated.
configure:2721: $? = 1
configure:2741: checking whether the C compiler works
configure:2763: mipsel-linux-android-gcc -EL -EL conftest.c >&5
/android-ndk-r8d/toolchains/mipsel-linux-android-4.7/prebuilt/linux-x86/bin/../lib/gcc/mipsel-linux-android/4.7/../../../../mipsel-linux-android/bin/ld: cannot find crtbegin_dynamic.o: No such file or directory
/android-ndk-r8d/toolchains/mipsel-linux-android-4.7/prebuilt/linux-x86/bin/../lib/gcc/mipsel-linux-android/4.7/../../../../mipsel-linux-android/bin/ld: cannot find -lc
/android-ndk-r8d/toolchains/mipsel-linux-android-4.7/prebuilt/linux-x86/bin/../lib/gcc/mipsel-linux-android/4.7/../../../../mipsel-linux-android/bin/ld: cannot find -ldl
/android-ndk-r8d/toolchains/mipsel-linux-android-4.7/prebuilt/linux-x86/bin/../lib/gcc/mipsel-linux-android/4.7/../../../../mipsel-linux-android/bin/ld: cannot find crtend_android.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:2767: $? = 1
configure:2805: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "ragel"
| #define PACKAGE_TARNAME "ragel"
| #define PACKAGE_VERSION "6.8"
| #define PACKAGE_STRING "ragel 6.8"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "ragel"
| #define VERSION "6.8"
| #define HAVE___DIST 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2810: error: in ` /android/vlc/extras/tools/ragel':
configure:2812: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=mipsel-linux-android-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-EL
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value=-lstdc++
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=mipsel-linux-android-g++
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-EL
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_file___DIST=yes
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=mipsel-linux-android-gcc
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /android/vlc/extras/tools/ragel/missing --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AR='mipsel-linux-android-ar'
AUTOCONF=' /android/vlc/extras/tools/build/bin/autoconf'
AUTOHEADER='${SHELL} /android/vlc/extras/tools/ragel/missing --run autoheader'
AUTOMAKE='${SHELL} /android/vlc/extras/tools/ragel/missing --run automake-1.11'
AWK='gawk'
BUILD_MANUAL_FALSE=''
BUILD_MANUAL_TRUE='#'
BUILD_PARSERS_FALSE=''
BUILD_PARSERS_TRUE='#'
CC='mipsel-linux-android-gcc'
CCDEPMODE=''
CFLAGS='-EL'
CPPFLAGS=''
CXX='mipsel-linux-android-g++'
CXXDEPMODE=''
CXXFLAGS='-lstdc++'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
FIG2DEV=''
GDC=''
GMCS=''
GOBIN=''
GOBJC=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
JAVAC=''
KELBT=''
LDFLAGS='-EL'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /android/vlc/extras/tools/ragel/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
OBJEXT=''
PACKAGE='ragel'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='ragel'
PACKAGE_STRING='ragel 6.8'
PACKAGE_TARNAME='ragel'
PACKAGE_URL=''
PACKAGE_VERSION='6.8'
PATH_SEPARATOR=':'
PDFLATEX=''
PUBDATE='Feb 2013'
RAGEL=''
RANLIB='mipsel-linux-android-ranlib'
RUBY=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
TXL=''
VERSION='6.8'
ac_ct_CC='mipsel-linux-android-gcc'
ac_ct_CXX=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /android/vlc/extras/tools/ragel/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix=' /android/vlc/extras/tools/build'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "ragel"
#define PACKAGE_TARNAME "ragel"
#define PACKAGE_VERSION "6.8"
#define PACKAGE_STRING "ragel 6.8"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "ragel"
#define VERSION "6.8"
#define HAVE___DIST 1
configure: exit 77
Yes,I build the Old versions VLC-Android is OK,but the latest versions will error.You're compiling for MIPS?
Dear Jean-Baptiste Kempf :skip ragel, by doing "touch .ragel" in extras/tools/
Code: Select all
sh compile.sh
Code: Select all
touch .ragel
Code: Select all
touch .yasm
Code: Select all
sh compile.sh
Code: Select all
touch .ragel
Code: Select all
touch .yasm
Code: Select all
/bin/bash ../libtool --mode=compile mipsel-linux-android-gcc --sysroot=/android-ndk-r8d/platforms/android-9/arch-mips -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo dive_1 | sed 's/_$//'` -g -march=mips32 -mtune=mips32r2 -mhard-float -O2 -I/android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.7/include -I/android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.7/libs/mips/include -I/android/vlc/contrib/mipsel-linux-android/include -EL -g -march=mips32 -mtune=mips32r2 -mhard-float -O2 -I/android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.7/include -I/android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.7/libs/mips/include -I/android/vlc/contrib/mipsel-linux-android/include -g -c -o dive_1.lo dive_1.c
mipsel-linux-android-gcc --sysroot=/android-ndk-r8d/platforms/android-9/arch-mips -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_dive_1 -g -march=mips32 -mtune=mips32r2 -mhard-float -O2 -I/android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.7/include -I/android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.7/libs/mips/include -I/android/vlc/contrib/mipsel-linux-android/include -EL -g -march=mips32 -mtune=mips32r2 -mhard-float -O2 -I/android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.7/include -I/android-ndk-r8d/sources/cxx-stl/gnu-libstdc++/4.7/libs/mips/include -I/android/vlc/contrib/mipsel-linux-android/include -g -c dive_1.c -fPIC -DPIC -o dive_1.o
dive_1.c: In function '__gmpn_divexact_1':
dive_1.c:117:4: error: impossible constraint in 'asm'
dive_1.c:138:4: error: impossible constraint in 'asm'
make[3]: *** [dive_1.lo] Error 1
make[3]: Leaving directory `/android/vlc/contrib/android/gmp/mpn'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/android/vlc/contrib/android/gmp'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/android/vlc/contrib/android/gmp'
make: *** [.gmp] Error 2
How to disable asm in gmp ?Disabling asm in gmp maybe.
Return to “VLC for Android and Chrome OS”
Users browsing this forum: No registered users and 60 guests