Mozilla.orgがプログラミング言語Rustで開発しているブラウザエンジンのservoをコンパイルしてみただけです。
基本的にプロジェクトページに書いてあることをやるだけです。autoconf–2.13は必須でした。
> brew install https://raw.github.com/Homebrew/homebrew-versions/master/autoconf213.rb > brew install automake libtool pkg-config
なお、他のツールのバージョンはこんな感じ。
> automake --version
automake (GNU automake) 1.14.1
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Tom Tromey <tromey@redhat.com>
and Alexandre Duret-Lutz <adl@gnu.org>.
> autoconf --version
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>, <http://gnu.org/licenses/exceptions.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David J. MacKenzie and Akim Demaille.
> pkg-config --version
0.28
あとはgitでソースをとってきてコンパイルするだけです。
git clone https://github.com/mozilla/servo.git cd servo mkdir -p build && cd build ../configure make
実行はこんなかんじ。
./servo http://www.yahoo.co.jp
Yahooはレイアウトが崩れています。というかよくわからんブラウザだと思われているっぽいです。
このブログでは文字化けしてしまいました。直す手段がないのでこのまま…。
Rustのページはこんな感じです。
ちょっと触った限りでは、速度的には確かに早く感じましたが、わりとよく落ちたりしました (実験プロジェクトなので品質的にはまだまだなので当たり前ですが)。
ちなみに、
make 2714.20s user 132.19s system 95% cpu 49:47.72 total
なので、Macbook Pro (Mid 2012, 2.6 GHz Core i7, 16 GB メモリ) でコンパイルには45分くらいかかりました。




0 件のコメント:
コメントを投稿
注: コメントを投稿できるのは、このブログのメンバーだけです。