Building Chromium for ARM Nvidia Acer Chromebook

This forum is for supported devices using an ARMv7 nVidia SoC.

Building Chromium for ARM Nvidia Acer Chromebook

Postby kristoferus75 » Sun Dec 25, 2016 9:00 am

Hi !

I want to compile chromium für my Acer Chromebook Acer 13 with arch linux on it !

Motivation: Video Acceleration is disabled by default in Linux Builds of Chromium

Build Setup: Ubuntu 14.04.5 LTS (64 BIT)

My Steps:

Code: Select all
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PATH:`pwd`/depot_tools
fetch --nohooks --no-history chromium
./src/build/install-build-deps.sh --arm
gclient runhooks

gn gen out/Default --args='target_os="linux" target_cpu="arm" enable_nacl=false symbol_level=0 remove_webcore_debug_symbols=true proprietary_codecs=true is_debug=false ffmpeg_branding="ChromeOS" use_gnome_keyring=false is_component_build=true enable_nacl_nonsfi=false linux_use_bundled_binutils=false use_allocator="none" use_pulseaudio=true use_gold=false use_gtk3=false use_gconf=false fatal_linker_warnings=false'


Code: Select all
ninja -C out/Default chrome


Result:

Issue - chromium - fail build in last rule

Code: Select all
/usr/bin/arm-linux-gnueabihf-ld: obj/chrome/browser/libbrowser.a(native_desktop_media_list.o): undefined reference to symbol '_ZN2ui31GrabWindowSnapshotAndScaleAsyncEPN4aura6WindowERKN3gfx4RectERKNS3_4SizeE13scoped_refptrIN4base10TaskRunnerEERKNSB_8CallbackIFvRKNS3_5ImageEELNSB_8internal8CopyModeE1ELNSJ_10RepeatModeE1EEE'
./libsnapshot.so: error adding symbols: DSO missing from command line
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.



Please Help !
kristoferus75
 
Posts: 9
Joined: Fri Jan 29, 2016 9:59 am

Re: Building Chromium for ARM Nvidia Acer Chromebook

Postby kristoferus75 » Sun Dec 25, 2016 9:19 pm

the compile work now -> i have to add only the ./libsnapshot.so to the clang++ commandline :D
kristoferus75
 
Posts: 9
Joined: Fri Jan 29, 2016 9:59 am

Re: Building Chromium for ARM Nvidia Acer Chromebook

Postby kristoferus75 » Mon Dec 26, 2016 7:51 pm

Now i get this error if i want start chromium :

Code: Select all
NvRmMemInit failed in PostForkChild[654:654:1226/204103.598080:FATAL:persistent_memory_allocator.cc(318)] Check failed: ((SharedMetadata*)0)->freeptr.is_lock_free().
#0 0x0000b525403c base::debug::StackTrace::StackTrace()
#1 0x0000b526a84a logging::LogMessage::~LogMessage()
#2 0x0000b5280a46 base::PersistentMemoryAllocator::PersistentMemoryAllocator()
#3 0x0000b5281812 base::LocalPersistentMemoryAllocator::LocalPersistentMemoryAllocator()
#4 0x0000b527f598 base::GlobalHistogramAllocator::CreateWithLocalMemory()
#5 0x0000b5ae4da2 ChromeBrowserFieldTrials::InstantiateDynamicTrials()
#6 0x0000b5ae4cd0 ChromeBrowserFieldTrials::SetupFieldTrials()
#7 0x0000b5a7ebc8 ChromeBrowserMainParts::SetupFieldTrials()
#8 0x0000b5a808e0 ChromeBrowserMainParts::PreCreateThreadsImpl()
#9 0x0000b5a7fe22 ChromeBrowserMainParts::PreCreateThreads()
#10 0x0000b37f2970 content::BrowserMainLoop::PreCreateThreads()
#11 0x0000b3a4f9fe content::StartupTaskRunner::RunAllTasksNow()
#12 0x0000b37f2fb8 content::BrowserMainLoop::CreateStartupTasks()
#13 0x0000b37f77dc content::BrowserMainRunnerImpl::Initialize()
#14 0x0000b37f0c4a content::BrowserMain()
#15 0x0000b3ca9242 content::ContentMainRunnerImpl::Run()
#16 0x0000b3ca8176 content::ContentMain()
#17 0x0000b5631f2a ChromeMain
#18 0x0000b078167c __libc_start_main
kristoferus75
 
Posts: 9
Joined: Fri Jan 29, 2016 9:59 am


Return to nVidia

Who is online

Users browsing this forum: No registered users and 1 guest