在查看了ubuntu的debian rules,重新配置chromium
GYP_GENERATORS=make GYP_DEFINES="disable_sse2=1 use_third_party_translations=1 werror= sysroot= disable_nacl=1 linux_use_gold_binary=0 linux_use_gold_flags=0 enable_webrtc=1 logging_like_official_build=1 target_arch=x64 component=shared_library linux_use_tcmalloc=0 remove_webcore_debug_symbols=1 linux_dump_symbols=1 google_api_key='AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q' google_default_client_id='424119844901.apps.googleusercontent.com' google_default_client_secret='AIienwDlGIIsHoKnNHmWGXyJ' proprietary_codecs=1 build_ffmpegsumo=0 " python build/gyp_chromium build/all.gyp -Dgoogle_api_key='AIzaSyAQfxPJiounkhOjODEO5ZieffeBv6yft2Q' -Dgoogle_default_client_id='424119844901.apps.googleusercontent.com' -Dgoogle_default_client_secret='AIienwDlGIIsHoKnNHmWGXyJ'
然后到src下运行如下命令进行编译
make chrome chrome_sandbox BUILDTYPE=Release
运行需要:
sudo chown root:root chrome_sandbox && sudo chmod 4755 chrome_sandbox && export CHROME_DEVEL_SANDBOX="$PWD/chrome_sandbox"
./chrome
原文地址:http://blog.csdn.net/bizzareblizzard/article/details/39291295