出自flip the world 檢視Firefox的原始碼 頁面討論 閱讀檢視原始碼檢視歷史 ←Firefox 您沒有權限執行編輯此頁面,由於以下原因: 您請求的操作只有這個群組的使用者能使用:使用者 您可以檢視並複製此頁面的原始碼。 Building '''Firefox''' from source on 64-bit Linux, including the 32-bit libraries it needs and the problems met along the way. [[File:firefox_logo.jpeg|fox]] == Prepare == * 64-bit linux (Scientific Linux Fermi) * install 32-bit libs ** yum install glibc*.i686 ** yum install zlib*.i686 ** yum install ncurses*.i686 ** yum install libstdc++*.i686 ** yum install *libGL*.i686 ** yum install *X11*.i686 ** Python 2.7.3 above (https://www.python.org/download/) ** ccache (http://ccache.samba.org/download.html) ** yasm (http://yasm.tortall.net/Download.html) ** CMake 2.8 or higher is required (http://www.cmake.org/cmake/resources/software.html) * If you are using APU, please install drivers for GPU in linux: ** http://driverscollection.com/?H=A8-3850&By=AMD * Install Android ndk toolchain ** https://dl.google.com/android/repository/android-ndk-r13-linux-x86_64.zip ** export B2G_ANDROID_NDK_PATH=/opt/android-ndk * Install tools ** sudo apt-get install flex * Install autoconf213 ** sudo apt-get install linuxbrew-wrapper ** brew tap homebrew/versions ** brew install autoconf213 == source == * <nowiki>git clone git://github.com/mozilla-b2g/B2G.git</nowiki> == Build == * ./config.sh (device name ex., flame-kk) * ./build.sh == Build trouble shooting == <pre> When you are using angle brackets in include (e.g. #include <xyz>) it does not look in the directory from where the include is done. Use double quotes instead, e.g. #include "xyz". </pre> == Run == * start ADB server ** adb start-server * ./run-emulator.sh == Reference == * [https://developer.mozilla.org/en-US/Firefox_OS/Preparing_for_your_first_B2G_build Preparing for your first B2G build] [[Category:Software and Tools]] 返回到「Firefox」。