EmbDev.net

Forum: ARM programming with GCC/GNU tools Compiling chromium (berkelium) on Banana PI


von CedZO C. (cedzo)


Rate this post
useful
not useful
Hi Guys,

I am trying at the moment to chromium (berkelium release)
compiled this with hardware acceleration support for playing videos.

I do this according to the tutorial created by hellbender from the 
raspberry pi community.
rpiserver.breggen.nl/building_xibo.html


These are the arguments that I used.
include.gypi
{
'variables': {
'target_arch': 'arm',
'disable_nacl': 1, # NaCL does not build for ARM.
'linux_use_tcmalloc': 0, # tcmalloc does not build for ARM.
'armv7': 1, # Optional, for targeting ARMv7.
'armv6': 0, # Optional, for targeting ARMv7.
'arm_thumb': 0, # Optional, for targeting thumb. Combine with armv7 to 
target thumb2.
'arm_neon': 1, # Optional, to disable NEON. 1 is the default, and most 
people want to keep it that way.
'arm_fpu': 'vfp2', # Optional, to select which version of vfp to use if 
NEON is off. Default is vfpv3.
'verbose': 1,
'use_system_yasm': 0,
'use_system_v8': 1
}
}

arm.env
export CXX=g++
export CC=gcc
export AR=ar
export AS=as
export RANLIB=ranlib

export CFLAGS="-I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 
-march=armv7 -mfpu=vfp -mfloat-abi=hard"

export CCFLAGS=$CFLAGS

export CXXFLAGS="-I/usr/include/gtk-2.0 -I/usr/include/glib-2.0/ 
-I/usr/lib/glib-2.0/include/ -I/usr/include/pango-1.0 
-I/usr/include/cairo/ -I/usr/include/librsvg-2 -O3 -march=armv6 
-mfpu=vfp -mfloat-abi=hard"

export GYP_DEFINES="target_arch=arm disable_nacl=1 linux_use_tcmalloc=0 
armv6=1 arm_thumb=0 use_libjpeg_turbo=0"


But unfortunately he ran at the following errors:

/usr/bin/ld: failed to merge target specific data of file 
out/Release/obj.target/ffmpegsumo/third_party/ffmpeg/patched-ffmpeg-mt/l 
ibavcodec/arm/dsputil_init_armv6.o
/usr/bin/ld: error: 
out/Release/obj.target/third_party/ffmpeg/libffmpegsumo.so uses VFP 
register arguments, 
out/Release/obj.target/ffmpegsumo/third_party/ffmpeg/patched-ffmpeg-mt/l 
ibavcodec/arm/dsputil_init_vfp.o  does not
/usr/bin/ld: failed to merge target specific data of file 
out/Release/obj.target/ffmpegsumo/third_party/ffmpeg/patched-ffmpeg-mt/l 
ibavcodec/arm/dsputil_init_vfp.o
/usr/bin/ld: error: 
out/Release/obj.target/third_party/ffmpeg/libffmpegsumo.so uses VFP 
register arguments, 
out/Release/obj.target/ffmpegsumo/third_party/ffmpeg/patched-ffmpeg-mt/l 
ibavcodec/arm/fft_init_arm.o  does not
/usr/bin/ld: failed to merge target specific data of file 
out/Release/obj.target/ffmpegsumo/third_party/ffmpeg/patched-ffmpeg-mt/l 
ibavcodec/arm/fft_init_arm.o
/usr/bin/ld: error: 
out/Release/obj.target/third_party/ffmpeg/libffmpegsumo.so uses VFP 
register arguments, 
out/Release/obj.target/ffmpegsumo/third_party/ffmpeg/patched-ffmpeg-mt/l 
ibavutil/arm/cpu.o  does not
/usr/bin/ld: failed to merge target specific data of file 
out/Release/obj.target/ffmpegsumo/third_party/ffmpeg/patched-ffmpeg-mt/l 
ibavutil/arm/cpu.o
/usr/bin/ld: error: 
out/Release/obj.target/third_party/ffmpeg/libffmpegsumo.so uses VFP 
register arguments, 
out/Release/obj.target/ffmpegsumo/third_party/ffmpeg/patched-ffmpeg-mt/l 
ibavcodec/arm/dsputil_init_neon.o  does not
/usr/bin/ld: failed to merge target specific data of file 
out/Release/obj.target/ffmpegsumo/third_party/ffmpeg/patched-ffmpeg-mt/l 
ibavcodec/arm/dsputil_init_neon.o
collect2: ld returned 1 exit status
third_party/ffmpeg/ffmpegsumo.target.mk:274: recipe for target 
'out/Release/obj.target/third_party/ffmpeg/libffmpegsumo.so' failed
make: *** [out/Release/obj.target/third_party/ffmpeg/libffmpegsumo.so] 
Error 1
make: *** Waiting for unfinished jobs....
Failed to install: chromium


does anyone here have experience with it? And what am I doing wrong?

Thanks in advance!

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.