Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

PhantomJS 2

David McNett edited this page Apr 24, 2014 · 33 revisions

The next version, PhantomJS 2, is still in the development. It will be based on Qt 5.

##Source code## 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 supporting platforms: Linux, OS X and Windows.

Links

Getting the source code

git clone https://github.com/KDAB/phantomjs.git
cd phantomjs
git submodule init
git submodule update

IMPORTANT! Be sure to have fontconfig dev packages installed, and ICU too.

##Building##

Linux: sh build.sh --confirm --jobs 10

Mac: sh build.sh --confirm --jobs 10 --qt-config "-I /opt/local/include/ -L /opt/local/lib/" # adjust the paths to wherever you installed libicu.

FreeBSD: Edit build.sh:

  • Add OSTYPE=freebsd
  • Change the two "make -j$COMPILE_JOBS" lines near the end to call gmake instead of make
  • Follow the Linux instructions above

Windows: Supported toolchains: MSVC2012

After you will 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.

Clone this wiki locally