CEF builds fine inside chroot, however there are errors of type "Illegal instruction" when running CEF sample applications or when running cefpython. Issue reported on the CEF Forum. Therefore using VirtualBox is recommended.
VirtualBoxBuild CEF 32bit from sources with automate.py --build-cef --x86
command using 64-bit OS. Chromium uses 32bit cross-compilers. Copy "cef_binary*/" to "cefpython/build/" as instructed. Then use VirtualBox to run 32-bit Linux.
Install required packages.
Install ninja from sources on 32-bit:
git clone git://github.com/ninja-build/ninja.git && cd ninja
git checkout release
cat README
chmod +x ninja
sudo cp ninja /usr/bin/
Run automate.py --prebuilt-cef
and build.py
.
Instructions to create 32-bit chroot to build cefpython for 32bit on 64-bit system. Build CEF 32bit from sources with automate.py --build-cef --x86
command - no chroot yet, Chromium builds 32bit on 64bit with cross-compilers. Copy "cef_binary*/" to "cefpython/build/" as instructed. Then chroot to 32bit and run automate.py --prebuilt-cef
and build.py
.
Following instructions from here:
https://help.ubuntu.com/community/BasicChroot
Type sudo gedit /etc/schroot/schroot.conf
and add:
[trusty]
description=Linux 32bit
location=/home/cz/linux32
priority=3
users=cz
groups=sbuild
root-groups=root
Create chroot:
sudo mkdir /home/cz/linux32
sudo apt-get install schroot debootstrap
sudo debootstrap --variant=buildd --arch i386 trusty /home/cz/linux32 http://ftp-stud.hs-esslingen.de/ubuntu/
sudo cp /etc/resolv.conf /home/cz/linux32/etc/resolv.conf
Enter chroot:
sudo chroot /home/cz/linux32
Configure deb sources with sudo gedit /etc/apt/sources.list
and add missing:
deb http://ftp-stud.hs-esslingen.de/ubuntu trusty main universe
deb http://ftp-stud.hs-esslingen.de/ubuntu trusty-security main
deb http://ftp-stud.hs-esslingen.de/ubuntu trusty-updates main
deb http://ftp-stud.hs-esslingen.de/ubuntu trusty-proposed main
deb http://ftp-stud.hs-esslingen.de/ubuntu trusty-backports main
Install required packages:
apt-get install sudo gedit git curl wget unzip libgtk2.0-dev cmake g++ libgtkglext1-dev libnss3 libnspr4 libxss1 libgconf-2-4
Fix issue with sudo:
sudo gedit /etc/hosts
and add "comp": 127.0.0.1 localhost comp
To enable GUI apps:
sudo gedit ~root/.bashrc
and add: export DISPLAY=:0.0
xhost +
(you need to type it each time you restart OS or shells)Install pyenv as explained in Issue #249.
Add to ~root/.bashrc
:
export PATH="/home/cz/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
Apply changes: source ~root/.bashrc
.
Exec apt-get update
.
When installing pyenv build dependencies replace "llvm" package with "llvm-3.4".
Before installing python with pyenv execute: sudo locale-gen en_US.UTF-8
.
Before running automate.py --prebuilt-cef
install ninja.
Install ninja from sources on 32-bit:
git clone git://github.com/ninja-build/ninja.git && cd ninja
$ git checkout release
$ cat README
Before running automate.py add these to cef_binary*/cmake/cef_variables.cmake (if doesn't exist):
# Gtk include
include(FindPkgConfig)
pkg_check_modules(GTK REQUIRED "gtk+-2.0")
include_directories(${GTK_INCLUDE_DIRS})
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4