[jboss-user] [JBoss Tools] - Build XulRunner 1.9 on Linux

Yahor Radtsevich do-not-reply at jboss.com
Wed Mar 9 15:15:50 EST 2011


Yahor Radtsevich [http://community.jboss.org/people/yradtsevich] modified the document:

"Build XulRunner 1.9 on Linux"

To view the document, visit: http://community.jboss.org/docs/DOC-16537

--------------------------------------------------------------
*Q:* Why do we ever need to build XULRunner?
*A:* There is no official build of XULRunner for Linux x86-64. We have to build it ourself.

h3. Prerequisites
You need some libraries to build XULRunner. If you are using Ubuntu, execute:
> sudo apt-get build-dep firefox
> sudo apt-get install mercurial libasound2-dev libcurl4-openssl-dev libnotify-dev libxt-dev libiw-dev mesa-common-dev autoconf2.13 yasm

Prerequisites for other  https://developer.mozilla.org/En/Developer_Guide/Build_Instructions/Linux_Prerequisites Linux distributives and  https://developer.mozilla.org/en/Build_Documentation#Build_prerequisites OSes.
h3. Getting the source
To clone Mozilla 1.9.1 repository, execute:
> mkdir 191src
> hg clone  http://hg.mozilla.org/releases/mozilla-1.9.1/ http://hg.mozilla.org/releases/mozilla-1.9.1/ 191src
> cd 191src
You may find links to other Mozilla versions  https://developer.mozilla.org/en/Mozilla_Source_Code_(Mercurial)#mozilla-1.9.1_(Firefox_3.5) here.

Then you need to select a dotversion to build:
> hg tags
It prints a long list of tags:
...
FIREFOX_3_5_17_RELEASE         27311:d5eeb3c15214
...

Let's select the most recent release. In this case it is FIREFOX_3_5_17_RELEASE with revision number 27311.
Update to it:
> hg update 27311

h3. Creation of configuration file
Now you need to create '.mozconfig' file inside 191src folder with the following content:
##########################################################
ac_add_options --enable-application=xulrunner 
ac_add_options --disable-debug
ac_add_options --disable-tests
# the following line is needed for Ubuntu/Debian only
ac_add_options --disable-crashreporter
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../xulrunner_build191

#java
ac_add_options --with-java-include-path=/usr/lib/jvm/java-6-sun/include
ac_add_options --with-java-bin-path=/usr/lib/jvm/java-6-sun/bin
##########################################################
These options are tested under Ubuntu 10.10 x86-32 with Sun Java 6 installed. You may need to specify  https://developer.mozilla.org/en/Configuring_Build_Options other options for other systems.

h3. Building
>From 191src execute:
> make -f client.mk build

h3. Separating binaries
> cd ..
> cp -L -r ./xulrunner_build191/dist/bin/* xulrunner-1.9.1

That's it! Now you have XULRunner binaries inside xulrunner-1.9.1 folder.

h3. Useful stuff
Register xulrunner for user:
> ./xulrunner --register-user

Register xulrunner for system:
> sudo ./xulrunner --register-global

Information about xulrunner registred for user lies here:
/home/user_name/.gre.d/1.9.conf

Information about xulrunner registred globally lies here:
/etc/gre.d/1.9.conf

View Firefox/XULRunner build options:
about:buildconfig
--------------------------------------------------------------

Comment by going to Community
[http://community.jboss.org/docs/DOC-16537]

Create a new document in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&containerType=14&container=2128]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110309/f687f243/attachment.html 


More information about the jboss-user mailing list