Page 1 of 1

VLC build error

Posted: 12 Apr 2013 09:44
by lionwes
Dear All :

Build System is Linux,not MAC

When i build the vlc-android ,but not successed.Here is the log:

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
error: "machdep.cpu.thread_count" is an unknown key

The git version
730260dffbdd1d58b6a774394c4745c1bbd9bb24

Re: VLC build error

Posted: 13 Apr 2013 04:12
by edwardw
Works for me on Linux. What is the output of the

Code: Select all

nproc
and

Code: Select all

sysctl
commands in the terminal?

Re: VLC build error

Posted: 15 Apr 2013 03:54
by lionwes
Works for me on Linux. What is the output of the

Code: Select all

nproc
and

Code: Select all

sysctl
commands in the terminal?
Dear edwardw :

what you mean ?

I build the vlc-android follow this web
http://wiki.videolan.org/AndroidCompile

so,i miss something ?

Re: VLC build error

Posted: 15 Apr 2013 03:56
by edwardw
No. I need to know some information about your build environment. Please follow the instructions in my post above. Thanks.

Re: VLC build error

Posted: 15 Apr 2013 04:32
by lionwes
No. I need to know some information about your build environment. Please follow the instructions in my post above. Thanks.
I see,here it is:

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

Re: VLC build error

Posted: 15 Apr 2013 04:49
by edwardw
Run git pull on your android.git and see if it fixes the problem.

Re: VLC build error

Posted: 15 Apr 2013 09:00
by lionwes
Run git pull on your android.git and see if it fixes the problem.
Dear edwardw :

I have git pull the android.git.
I have another thing forget to report,when to build latest vlc-android,i got this error :

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
i know the old version vlc-android was not had to build ragel and yasm tools.
what is ragel and yasm, I can not compile is OK?how to disable ragel and yasm.

Re: VLC build error

Posted: 15 Apr 2013 20:31
by edwardw
configure: error: C compiler cannot create executables
Paste the config.log, since your C compiler looks broken.

Re: VLC build error

Posted: 16 Apr 2013 03:25
by lionwes
configure: error: C compiler cannot create executables
Paste the config.log, since your C compiler looks broken.
Here is ragel config.log :

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

Re: VLC build error

Posted: 16 Apr 2013 15:24
by Jean-Baptiste Kempf
You're compiling for MIPS?

Re: VLC build error

Posted: 17 Apr 2013 04:41
by lionwes
You're compiling for MIPS?
Yes,I build the Old versions VLC-Android is OK,but the latest versions will error. :(

Re: VLC build error

Posted: 17 Apr 2013 19:16
by Jean-Baptiste Kempf
skip ragel, by doing "touch .ragel" in extras/tools/

Re: VLC build error

Posted: 18 Apr 2013 03:39
by lionwes
skip ragel, by doing "touch .ragel" in extras/tools/
Dear Jean-Baptiste Kempf :

you mean when to build vlc-android

Code: Select all

sh compile.sh
I have to enter android/vlc/extras/tools and do

Code: Select all

touch .ragel

Code: Select all

touch .yasm
after that ,run

Code: Select all

sh compile.sh

Re: VLC build error

Posted: 18 Apr 2013 04:53
by lionwes
Dear Jean-Baptiste Kempf :
I try your method ,

Code: Select all

touch .ragel
and

Code: Select all

touch .yasm
it can build now,thanks!!

But now ,when building to '/android/vlc/contrib/android/gmp/mpn' ,have some error :

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 fixed it :roll:

Re: VLC build error

Posted: 18 Apr 2013 15:46
by Jean-Baptiste Kempf
Disabling asm in gmp maybe.

Re: VLC build error

Posted: 19 Apr 2013 03:22
by lionwes
Disabling asm in gmp maybe.
How to disable asm in gmp ?

Re: VLC build error

Posted: 26 Apr 2013 05:51
by lionwes
This issue was fixed.
When to build latest vlc-android for MIPS need to changed gmp-4.2.1.tar.bz2 to gmp-5.0.2.tar.bz2

So,need to modify :
android\vlc\contrib\src\gmp\rules.mak

and

android\vlc\contrib\src\gmp\SHA512SUMS