EmbDev.net

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


Author: CedZO CedZO (cedzo)
Posted on:

Rate this post
0 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!

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.