GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing firefox-source-docs.mozilla.org — Building Firefox On Windows — Firefox Source Docs documentation Building Firefox On WindowsThis document will help you get set up to build Firefox on your own computer. Getting set up can take a while - we need to download a lot of bytes! Even on a fast connection, this can take ten to fifteen minutes of work, spread out over an hour or two. If you’d prefer to build Firefox for Windows in a virtual machine, you may be interested in the Windows images provided by Microsoft. Note Microsoft “temporarily” stopped providing these VM images in 2024. Although more time-consuming initially, you can create a VM and install Windows with an official Windows 11 ISO file from Microsoft’s Download Windows 11 page. Unlike the evaluation versions in Microsoft’s pre-built VM images, an unactivated Windows VM does not shut down every hour. Note The Mozilla Build package is for now only compiled for x64. It will run fine via emulation on Windows on ARM machines (the official name for Windows running on an aarch64 CPU), but the Firefox build system will be (rightfully) confused when being invoked on a Windows on ARM machine by a x64 Python, and won’t know what to do. This will be fixed, but in the meantime, running The Python project provides an official installer for Windows on ARM. Invoke it like so: C:\path\to\python.ext ./mach build System Requirements
Recommended (For Windows 11 Users)Setup a Dev Drive. Note
1. Install MozillaBuildInstall MozillaBuild. Accept the default installation directory. Windows may prompt you to “reinstall with the correct settings”, which you should click to accept. When working with Firefox tooling, you’ll need to do so from within the MozillaBuild
shell. You can start it by running Note The MozillaBuild shell is a lot more like a Linux shell than the Windows 2. Bootstrap a copy of the Firefox source codeNow that your system is ready, we can download the source code and have Firefox automatically download the other dependencies it needs. The below command will download a lot of data (years of Firefox history!) then guide you through the interactive setup process. # Using the C:\mozilla-build\start-shell.bat shell from step 1: cd c:/ mkdir mozilla-source cd mozilla-source wget https://raw.githubusercontent.com/mozilla-firefox/firefox/refs/heads/main/python/mozboot/bin/bootstrap.py python3 bootstrap.py Note When running Choosing a build typeIf you aren’t modifying the Firefox backend, then select one of the Artifact Mode options. If you are building Firefox for Android, you should also see the GeckoView Contributor Guide. Ensure antivirus exclusionsMicrosoft Defender Antivirus and some third-party antivirus products are known to significantly degrade build times and sometimes even cause failed builds (due to a “missing file”). This is usually because we have tests for well-known security bugs that have code samples that antivirus software identifies as a threat, automatically quarantining/corrupting the files. To avoid this, add the following folders to your third-party antivirus exclusion list:
The Note If you are using Git and you’re already missing files (you’ll see them listed in 3. BuildNow that your system is bootstrapped, you should be able to build! cd c:/mozilla-source/firefox git pull origin main ./mach build 🎉 Congratulations! You’ve built your own home-grown Firefox! You should see the following message in your terminal after a successful build: Your build was successful! To take your build for a test drive, run: |mach run| For more information on what to do now, see {doc}`/setup/contributing_code` You can now use the If your build fails, please reference the steps in the Troubleshooting section. Now the fun startsTime to start hacking! You should join us on Matrix, say hello in the Introduction channel, and find a bug to start working on. See the Firefox Contributors’ Quick Reference to learn how to test your changes, send patches to Mozilla, update your source code locally, and more. Note If you’d like to interact with Mach from a different command line environment than MozillaBuild, there’s experimental support for it described over here. TroubleshootingBuild errors
The CLOBBER file has been updatedThis is a normal error to encounter and tends to appear when working on a bug for a long period of time.
If you encounter this error, you need to run MozillaBuild out-of-dateThe build system expects that you’re using the most-recent MozillaBuild release. However, MozillaBuild doesn’t auto-update. If you’re running into local issues, they may be resolved by upgrading your MozillaBuild. Spaces in folder namesFirefox will not build if the path to MozillaBuild or the Firefox source contain spaces or other breaking characters such as pluses, quotation marks, or metacharacters. Windows usernames are a common cause for spaces in the path, so please ensure that your Windows username does not contain spaces, or miniconda will have errors during fenix builds. The Visual Studio tools and SDKs are an exception - they may be installed in a directory which contains spaces. It is strongly recommended that you accept the default settings for all installation locations. Quotation marks in
|
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |