-
Notifications
You must be signed in to change notification settings - Fork 5.7k
PhantomJS 2
The next version, PhantomJS 2, is still in the development. It will be based on Qt 5.
As of May 2014 it is based on webkit 538.1 (7 months old).
The original repository doesn't contain a branch for PhantomJS 2 yet. We have two main repositories: KDAB and Vitallium's. We're in the process of merge these two repositories into one.
The main goal before we will create a branch for 2 version is make PhantomJS build on all supported platforms: Linux, OS X and Windows. Those repositories can be found at:
- KDAB repository: https://github.com/KDAB/phantomjs
- Vitallium's repository: https://github.com/Vitallium/phantomjs-qt5
$ git clone https://github.com/Vitallium/phantomjs-qt5.git
$ cd phantomjs
$ git submodule init
$ git submodule update
First, install the following packages: sqlite3 libsqlite3-dev g++ ruby gperf bison flex libfontconfig1 libfontconfig1-dev libicu48 libicu-dev ttf-mscorefonts-installer fontconfig libfreetype6
.
On Debian-based distro, just run:
$ sudo apt-get install sqlite3 libsqlite3-dev g++ ruby gperf bison flex libfontconfig1 libfontconfig1-dev libicu48 libicu-dev ttf-mscorefonts-installer fontconfig libfreetype6
Then, launch the build:
chmod +x build.sh
./build.sh --confirm --jobs 10
NOTE: Using sh
, instead of bash
explicitly, has been reported to fail on some systems.
First, install the following packages: fontconfig icu4c
.
If you use Homebrew, just run:
$ brew install fontconfig icu4c
$ brew link fontconfig icu4c
Then, launch the build:
chmod +x build.sh
./build.sh --confirm --jobs 10 --qt-config "-I /opt/local/include/ -L /opt/local/lib/"
You will need to edit build.sh:
- Add
OSTYPE=freebsd
- Change the two
make -j$COMPILE_JOBS
lines near the end to callgmake
instead ofmake
- Follow the Linux instructions above
NOTE: MSVC2012
is the toolchain currently supported.
After you get the source code, clone this repository to src\qt\3rdparty
. This will download all 3rd party libraries, headers, which are needed to build PhantomJS 2 on Windows.
NOTE: Repository contains libraries for MSVC2012. If you need other versions, please let me know (Vitallium) by creating an issue in repository.
Now you are ready to build. Just run
build.cmd
from top directory.