10
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

phantomJS2 build on linux

Last updated at Posted at 2014-04-17

deprecated

see PhantomJS 2 · ariya/phantomjs Wiki

background

込み入ったバグが2で解決してたので2を使いたい。おまけで2にするとweb fontsがサポートされる(1.xはweb fontsサポートしないと公言されてる)

environment

  • requires 8G memory. 4G is not enough.
  • CentOS

steps

PhantomJS 2 (Qt5) - Google Groups

Unfortunately for now if someone wants to experiment building it, then
you have to collect all the info (bits and pieces) from this
mailing-list.

dependencies

-develがついてないもので不必要な物もあるかもしれませんが時間がもったいないので検証してません。

sudo yum -y install libicu
sudo yum -y install gdb
sudo yum -y install libicu-devel
sudo yum -y install gperf
sudo yum -y install sqlite-devel
sudo yum -y install freetype
sudo yum -y install fontconfig
sudo yum -y install freetype-devel
sudo yum -y install fontconfig-devel
sudo yum -y install flex

sudo yum -y install vlgothic-fonts

phantomjs screenshot font missing, boxes rendered instead - Stack Overflow

build

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

sh build.sh --confirm --jobs 10

bin/phantomjs が生成されます。

10
10
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?