Table of contents:
- Introduction
- Compatibility
- Getting started on Windows
- Getting started on Linux
- Getting started on Mac OS X
Chrome is a project forked from CEF2go by Czarek Tomczak and FromKeith. This fork aim to have similar role with PhantomJs
Currently the Chrome only allow simple programming such as opening a browser.
CEF2go is licensed under the BSD 3-clause license, see the LICENSE file.
Supported platforms: Windows, Linux, Mac OSX.
-
The instruction should work in Windows 8.1 64bit
-
Install TDM-GCC for
cgo
. -
Download CEF3 Branch 2171 binaries: release_windows.zip Extract the file to `GOPATH/Release/*
-
Copy
GOPATH/github.com/24hours/chrome/doc/build.bat
toGOPATH/build.bat
CopyGOPATH/github.com/24hours/chrome/doc/minimum/main_linux.go
toGOPATH/main_windows.go
-
Run
build.bat
command.
-
These instructions work fine with Ubuntu 12.04 64-bit. On Ubuntu 13/14 libudev.so.0 is missing and it is required to create a symbolic link to libudev.so.1. For example on Ubuntu 14.04 64-bit run this command:
cd /lib/x86_64-linux-gnu/ && sudo ln -sf libudev.so.1 libudev.so.0
. -
Install CEF dependencies:
sudo apt-get install libatk1.0-0 libc6 libasound2 libcairo2 libcap2 libcups2 libexpat1 libexif12 libfontconfig1 libfreetype6 libglib2.0-0 libgnome-keyring0 libgtk2.0-0 libpam0g libpango1.0-0 libpci3 libpcre3 libpixman-1-0 libpng12-0 libspeechd2 libstdc++6 libsqlite3-0 libx11-6 libxau6 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6 libxfixes3 libxi6 libxinerama1 libxrandr2 libxrender1 libxtst6 zlib1g libgtk2.0-dev libpulse0 libbz2-1.0 libnss3-dev libgconf2-dev
-
Download CEF 3 Branch 2171 binaries: release_linux.zip
Extract the file toGOPATH/release/*
-
Copy
GOPATH/github.com/24hours/chrome/doc/Makefile
toGOPATH/Makefile
CopyGOPATH/github.com/24hours/chrome/doc/minimum/main_linux.go
toGOPATH/main_linux.go
-
Run
make
command.
-
These instructions work fine with OS X 10.10 Yosemite.
-
Install command line tools (make is required) from:
https://developer.apple.com/downloads/
(In my case command line tools for Mountain Yosemite from 2 Dec 2014) -
Install XCode (gcc that comes with XCode is required).
My version is Version 6.1.1 -
Download CEF 3 Branch 2171 binaries: release_mac.zip
Extract the file toGOPATH/release/*
-
Copy
GOPATH/github.com/24hours/chrome/doc/Makefile
toGOPATH/Makefile
CopyGOPATH/github.com/24hours/chrome/doc/minimum/main_mac.go
toGOPATH/main_mac.go
-
Run
make
command.