<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Build XulRunner 1.9 on Linux
</h3>
<span style="margin-bottom: 10px;">
    modified by <a href="http://community.jboss.org/people/yradtsevich">Yahor Radtsevich</a> in <i>JBoss Tools</i> - <a href="http://community.jboss.org/docs/DOC-16537">View the full document</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p><strong>Q:</strong> Why do we ever need to build XULRunner?</p><p><strong>A:</strong> There is no official build of XULRunner for Linux x86-64. We have to build it ourself.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h3 style="color: #333333; font-weight: bold; margin-left: 0pt; padding-top: 10px; padding-bottom: 4px; font-size: 14pt;">Prerequisites</h3><p>You need some libraries to build XULRunner. If you are using Ubuntu, execute:</p><p>&gt; sudo apt-get build-dep firefox</p><p>&gt; sudo apt-get install mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13 yasm</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Prerequisites for other <a class="jive-link-external-small" href="https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Linux_Prerequisites">Linux distributives</a> and <a class="jive-link-external-small" href="https://developer.mozilla.org/en/Build_Documentation#Build_prerequisites">OSes</a>.</p><h3>Getting the source</h3><p>To clone Mozilla 1.9.1 repository, execute:</p><p>&gt; mkdir 191src</p><p><span>&gt; hg clone </span><a class="jive-link-external-small" href="http://hg.mozilla.org/releases/mozilla-1.9.1/" target="_blank">http://hg.mozilla.org/releases/mozilla-1.9.1/</a><span> 191src</span></p><p>&gt; cd 191src</p><p>You may find links to other Mozilla versions <a class="jive-link-external-small" href="https://developer.mozilla.org/en/Mozilla_Source_Code_(Mercurial)#mozilla-1.9.1_(Firefox_3.5)">here</a>.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Then you need to select a dotversion to build:</p><p>&gt; hg tags</p><p>It prints a long list of tags:</p><p>...</p><p>FIREFOX_3_5_17_RELEASE&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 27311:d5eeb3c15214</p><p>...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Let's select the most recent release. In this case it is FIREFOX_3_5_17_RELEASE with revision number 27311.</p><p>Update to it:</p><p>&gt; hg update 27311</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h3>Creation of configuration file</h3><p>Now you need to create '.mozconfig' file inside 191src folder with the following content:</p><p>##########################################################</p><p>ac_add_options --enable-application=xulrunner </p><p>ac_add_options --disable-debug</p><p>ac_add_options --disable-tests</p><p># the following line is needed for Ubuntu/Debian only</p><p>ac_add_options --disable-crashreporter</p><p>mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../xulrunner_build191</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>#java</p><p>ac_add_options --with-java-include-path=/usr/lib/jvm/java-6-sun/include</p><p>ac_add_options --with-java-bin-path=/usr/lib/jvm/java-6-sun/bin</p><p>##########################################################</p><p>These options are tested under Ubuntu 10.10 x86-32 with Sun Java 6 installed. You may need to specify <a class="jive-link-external-small" href="https://developer.mozilla.org/en/Configuring_Build_Options">other options</a> for other systems.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h3>Building</h3><p>From 191src execute:</p><p>&gt; make -f client.mk build</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h3>Separating binaries</h3><p>&gt; cd ..</p><p>&gt; cp -L -r ./xulrunner_build191/dist/bin/* xulrunner-1.9.1</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>That's it! Now you have XULRunner binaries inside xulrunner-1.9.1 folder.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><h3>Useful stuff</h3><p>Register xulrunner for user:</p><p>&gt; ./xulrunner --register-user</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Register xulrunner for system:</p><p>&gt; sudo ./xulrunner --register-global</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Information about xulrunner registred for user lies here:</p><p>/home/user_name/.gre.d/1.9.conf</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Information about xulrunner registred globally lies here:</p><p>/etc/gre.d/1.9.conf</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>View Firefox/XULRunner build options:</p><p>about:buildconfig</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Comment by <a href="http://community.jboss.org/docs/DOC-16537">going to Community</a></p>

        <p style="margin: 0;">Create a new document in JBoss Tools at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2128">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>