以下內容基於:
linux ubuntu3.0.0-16-generic #28-ubuntu smp fri jan 27 17:44:39 utc 2012 x86_64 gnu/linux
參考網頁給出的步驟:
1 安裝 depot_tools,cd 到你想要的工作目錄
1.1 通過 svn 獲取: svn co
1.2 把 depot_tools 新增到環境變數 $path
1.2.1 export path="$path":`pwd`/depot_tools
1.2.2 最好把它加入到 .bashrc 中,這樣下次登陸的時候就不必在手動宣告了。
2 配置git 賬戶
git config --global user.name "my name"
git config --global user.email "my@email"
git config --global core.autocrlf false
git config --global core.filemode false
3 initial checkout
3.1 first, get the source.
gclient config
4 chromium 包含測試部分,總的**量比較大,如果不需要測試部分,可以改一下.gclient:
"custom_deps": {
"src/third_party/webkit/layouttests": none,
"src/chrome/tools/test/reference_build/chrome": none,
"src/chrome_frame/tools/test/reference_build/chrome": none,
"src/chrome/tools/test/reference_build/chrome_linux": none,
"src/chrome/tools/test/reference_build/chrome_mac": none,
"src/third_party/hunspell_dictionaries": none,
5 然後就可以sync **了 :
gclient sync
6.1 cd 到 src 目錄執行:
./build/install-build-deps.sh
6.2 生成工程的 makefile 檔案 (generate your projects)
./build/gyp_chromium
6.3 開始 make,不加引數的話,預設build debug 版,如果要build debug 版可以在 make 後面加 buildtype=release
6.3.1 cd src
6.3.2 如果只是要build chromium 瀏覽器的話:
make chrome -j4
6.4 如果要build全部:
make all -j4
6.5 debug 版build 出來的結果在目錄: out/debug/;release 版 build 出來的結果在目錄: out/release/
如果沒有 make all 的話, 可以用下面的命令
make chromium_builder_tests
手動編譯原始碼安裝mysql 原始碼編譯安裝mysql
1 安裝mysql需要的依賴包 yum y install ncurses devel libaio devel 2 安裝編譯mysql需要的軟體 mysql 有3個版本分支 5.0 5.1系列 5.4 5.7系列 6.0 7.1群集產品系列 最早的mysql 5.0 5.1產品 直接.config...
Chrome原始碼編譯
根據中的描述,先裝vc2008,打好各種補丁,再裝june 2010 directx sdk,再裝winsdk7.1,配置vc上的路徑,在配路徑時,要把dx的路徑放到winsdk的前面。否則在編包含xinput檔案的時候會出錯。編譯時才發現chrome用起來很爽,開發起來很吃機器,真不是我這種屌絲程...
webrtc原始碼編譯
一 編譯所需工具 2.python,建議安裝python2.6 安裝之後,將安裝路徑設定在環境變數path中。在安裝了tortoisesvn msysgit之後,通過cmd命令進入dos介面,在介面輸入 svn check 4.directx sdk 5.windows sdk 7.1 安裝路徑需要...