How to build a binary XPCOM component using Visual Studio - MDC Doc Center. This is a simple tutorial for building XPCOM objects in C++ using Visual Studio.
XPCOM is Mozilla’s cross platform component object model, similar to Microsoft’s COM technology. XPCOM components can be implemented in C, C++, and JavaScript, and can be used from C, C++, and JavaScript. That means you can call JavaScript methods from C++ and vice versa. For more information on the workings of XPCOM look elsewhere. Development Setup The simplest way to get an XPCOM component built is to use the Gecko SDK. For example, XULRunner 1.8.0.4 which has a pre-built SDK at gecko-sdk-win32-msvc-1.8.0.4.zip.
You also need a couple of pre-built libraries (glib-1.2.dll & libIDL-0.6.dll) from the wintools.zip archive. Note: wintools.zip seems old and lots of newer MDC documentation refers to moztools.zip archive, but the version of xpidl.exe that comes with the gecko-sdk crashes with the DLL’s from moztools. Recap: Here is what the folder structure looks like: Create a VC++ Project Add ".. H file: CPP file: Windows Build Prerequisites - MDC Doc Center. This page covers the steps needed to prepare your machine to build a bleeding-edge, development version of Firefox and/or Thunderbird on Windows.
Hardware requirements Mozilla's software can take a long time to build, even on modern hardware. Minimal hardware required for Mozilla development is: At least 3 GB of RAM for recent Firefox builds; 4 GB or more is recommended. 20 GB free disk space (for Visual Studio 2010 Express, the SDKs, the MozillaBuild package, the source code and free space needed to compile.) Windows Vista or later is recommended, though it is possible to build on Windows XP.
Overview The Mozilla build process requires many tools that are not installed on most Windows systems. The Mozilla codebase works with Visual Studio 2010 (VC10) and Visual Studio 2012 (VC11) . Install build prerequisites Complete each of these steps, otherwise you may not be able to build successfully. Make sure your system is up-to-date through Windows Update. If you are using Visual Studio 2010: Simple Firefox build - MDC Doc Center. This page covers the basic steps needed to build a bleeding-edge, development version of Firefox.
For additional, more detailed information, see the build documentation. Build prerequisites Hardware Requirements: Recommended: 4GB of RAM (having only 2GB RAM and 2GB swap may give memory errors during compile) High speed internet Setup: Depending on your Operating System you will need to carry out a different process to prepare your machine. Windows build prerequisites [en-US] Linux and MacOS build preparation [en-US] Get the source Get the latest source code from Mozilla's Mercurial code repository. Hg clone If you are using a slow or unreliable internet connection, "hg clone" might fail because it gets interrupted. Building To start the build, cd into the mozilla-central subdirectory (created automatically by the hg clone command), and run:
Building Mozilla Firefox on Windows 7 « Syntax Error. I’d always thought it would be scary building a large application like Mozilla Firefox completely from source, but a few weeks ago I did some initial looking into it.
With a recent nudge from a professor, I went ahead and successfully retrieved the source and compiled Firefox. Here’s how I did it. Step 0: I read the documentation. Not just a little either, but everything you can to build Firefox on Windows. Mozilla Developer Central has an extensive series of wiki entries dedicated solely to multi-platform building.
Step 1: Review Build Preqrequisites. An extensive system has extensive prerequisites for various versions. Hardware Requirements Mozilla requires a “development-class system” to compile. AMD Phenom X3 84503 GB RAM100+ GB HDD spaceWindows 7 Professional 32-bit Software Requirements These are the tools required by the Mozilla build system.