- Code: Select all
aws_instance.cef-build-64 (remote-exec): [5264/35388] CXX o...s/SkPathOpsTSect.o
aws_instance.cef-build-64 (remote-exec): ninja: build stopped: subcommand failed.
aws_instance.cef-build-64 (remote-exec): Traceback (most recent call last):
aws_instance.cef-build-64 (remote-exec): File "automate/automate-git.py", line 1107, in <module>
aws_instance.cef-build-64 (remote-exec): if options.buildlogfile else None)
aws_instance.cef-build-64 (remote-exec): File "automate/automate-git.py", line 55, in run
aws_instance.cef-build-64 (remote-exec): args, cwd=working_dir, env=env, shell=(sys.platform == 'win32'))
aws_instance.cef-build-64 (remote-exec): File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
aws_instance.cef-build-64 (remote-exec): raise CalledProcessError(retcode, cmd)
aws_instance.cef-build-64 (remote-exec): subprocess.CalledProcessError: Command '['ninja', '-C', 'out/Release_GN_x64', 'cefclient', 'chrome_sandbox']' returned non-zero exit status 1
Here's what my script looks like:
- Code: Select all
#!/bin/bash
export GN_DEFINES="proprietary_codecs=true ffmpeg_branding=Chrome"
export GYP_DEFINES="disable_nacl=1 proprietary_codecs=1 ffmpeg_branding=Chrome"
sudo apt-get -y install htop iftop
mkdir -p ~/code/automate
mkdir -p ~/code/chromium_git
cd ~/code
curl 'https://chromium.googlesource.com/chromium/src/+/master/build/install-build-deps.sh?format=TEXT' | base64 -d > install-build-deps.sh
chmod 755 install-build-deps.sh
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections
sudo ./install-build-deps.sh --no-prompt --no-chromeos-fonts
sudo apt-get -y install libgtkglext1-dev git libcups2-dev libnss3-dev libdbus-1-dev libgnome-keyring-dev libasound2-dev bison
cd ~/code/automate
wget https://bitbucket.org/chromiumembedded/cef/raw/master/tools/automate/automate-git.py
cd ~/code
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=`pwd`/depot_tools:$PATH
cd ~/code/chromium_git
cat > update.sh <<EOF
#!/bin/bash
export CEF_USE_GN=1
export GN_DEFINES="$GN_DEFINES is_official_build=true use_sysroot=true"
python ../automate/automate-git.py --download-dir=/home/ubuntu/code/chromium_git --no-distrib --no-build --branch=3359
EOF
chmod 755 update.sh
./update.sh
cd ~/code/chromium_git/chromium/src/cef
cat > create.sh <<EOF
#!/bin/bash
export CEF_USE_GN=1
export GN_DEFINES="$GN_DEFINES is_official_build=true enable_vr=false"
./cef_create_projects.sh
EOF
chmod 755 create.sh
./create.sh
cd ~/code
echo "Building 64-bit"
python automate/automate-git.py --download-dir=`pwd`/chromium_git --branch=3359 --force-clean --force-build --x64-build --no-debug-build --force-update