firefox をソースからビルドする
rustのお膝元であるfirefoxをソースコードからビルドしてみました。
rustが使われているところの観賞用。もしかしたらデバッガ当ててみたり。
準備
Ubuntu 18.04を使用しています。
基本手順はここに書いてある通り。
https://developer.mozilla.org/ja/docs/Developer_Guide/Build_Instructions/Linux_Build_Prerequisites
mkdir firefox
cd firefox/
wget -q https://hg.mozilla.org/mozilla-central/raw-file/default/python/mozboot/bin/bootstrap.py -O bootstrap.py
python bootstrap.py
以下のように聞かれるので、1を選択しました。
Please choose the version of Firefox you want to build:
1. Firefox for Desktop Artifact Mode
2. Firefox for Desktop
3. Firefox for Android Artifact Mode
4. Firefox for Android
Your choice:
それ以外の質問にはYで回答しました。
ソースコードの入手
hg clone https://hg.mozilla.org/mozilla-central
ビルド
cd mozilla-central/
./mach bootstrap
./mach build
hg clone https://hg.mozilla.org/mozilla-central
cd mozilla-central/
./mach bootstrap
./mach build
clang
がubuntu 18.04 に入っているよりも新しいものが必要だったのですが、./mach bootstrap
を実行することで自動で準備してくれました。
ビルドしたものを実行
./mach run
./mach run
ビルドしてできたものは以下のディレクトリにあります。
obj-x86_64-pc-linux-gnu/dist/bin
Author And Source
この問題について(firefox をソースからビルドする), 我々は、より多くの情報をここで見つけました https://qiita.com/tetsu_koba/items/f009b959ff683a964c51著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .