VLC cross compile to run on android arm7 as command line
Posted: 24 Jul 2014 10:38
Hi,
Im trying to cross compile vlc from source code (vlc-2.1.4) to run as command line on android 4.2 (arm7).
toolchain already in place, FFMPEG installed successfully
after few trial below is the configuration:
when i compile i get:
i appreciate your help
Im trying to cross compile vlc from source code (vlc-2.1.4) to run as command line on android 4.2 (arm7).
toolchain already in place, FFMPEG installed successfully
after few trial below is the configuration:
Code: Select all
export CC=/home/toolchain/bin/arm-linux-androideabi-gcc
export CXX=/home/toolchain/bin/arm-linux-androideabi-g++
./configure '--disable-v4l' '--disable-v4l2' '--disable-nls' '--disable-mozilla' '--disable-dbus' '--disable-dbus-control' '--disable-telepathy' '--disable-lua' '--disable-cdda' '--disable-vcd' '--disable-dvb' '-disable-libcddb' '-disable-x11' '--disable-glx' '--disable-opengl' '--disable-xvideo' '--disable-xvmc' '--disable-freetype' '--disable-fontconfig' '--disable-fb' '--disable-qt4' '--disable-skins2' '--disable-sdl' '--disable-sdl-image' '--disable-notify' '--disable-libgcrypt' '--disable-mad' '--enable-avcodec' '--enable-avformat' '--disable-swscale' '--disable-postproc' '--disable-a52' '--disable-remoteosd' '--disable-live555' --host=arm-linux --without-x --disable-xcb --without-kde-solid --disable-dvdnav --disable-dvdread --disable-vcd --disable-libcddb --disable-qt --with-arch=arm-linux CPPFLAGS=-I/home/toolchain/sysroot/usr/include LDFLAGS=-L/home/toolchain/sysroot/usr/lib --disable-alsa --disable-theora --disable-x264 --disable-ogg --disable-mux_ogg --disable-libxml2 --disable-bonjour --disable-udev --disable-mtp --disable-upnp --disable-atmo --prefix=/home/toolchain/sysroot/usr --without-x --program-prefix=arm7 --with-contrib=/home/toolchain/sysroot/usr/ --prefix=/home/toolchain/sysroot/usr/local/
Code: Select all
MAKE : bin
/home/toolchain/bin/arm-linux-androideabi-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -I/home/toolchain/sysroot/usr/include -I/home/toolchain/sysroot/usr/include -g -O2 -I/home/toolchain/sysroot/usr/include -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -pipe -fvisibility=hidden -ffast-math -funroll-loops -fomit-frame-pointer -MT override.o -MD -MP -MF .deps/override.Tpo -c -o override.o override.c
override.c: In function 'vlc_enable_override':
ERROR : override.c:58: 5: implicit declaration of function 'pthread_atfork' [-Werror=implicit-function-declaration]
override.c: At top level:
ERROR : override.c:128: 5: conflicting types for 'putenv'
/home/toolchain/bin/../sysroot/usr/include/stdlib.h:55:12: note: previous declaration of 'putenv' was here
ERROR : override.c:173: 6: redefinition of 'srand'
/home/toolchain/bin/../sysroot/usr/include/stdlib.h:123:24: note: previous definition of 'srand' was here
ERROR : override.c:181: 5: redefinition of 'rand'
/home/toolchain/bin/../sysroot/usr/include/stdlib.h:120:23: note: previous definition of 'rand' was here
override.c: In function 'rand':
ERROR : override.c:187: 5: implicit declaration of function 'rand_r' [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make: *** [all] Error 2