Difference between revisions of "User:Dzonatas Sol/Snowglobe"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with '== Step-by-Step 32bit Chroot Compile == === Base 32 bit chroot setup === On Debian, bootstrap your 32bit chroot: <code>$ sudo debootstrap --arch i386 lenny /var/chroot/lenny-i...')
 
Line 70: Line 70:
We can use the <code>/tmp</code> directory for this example, and download the sources.
We can use the <code>/tmp</code> directory for this example, and download the sources.


<code>$ cd /tmp</code>
<code>$ cd /tmp</code><br/>
<code>$ svn export https://svn.secondlife.com/svn/linden/projects/2009/snowglobe/trunk snowglobe</code>
<code>$ svn export https://svn.secondlife.com/svn/linden/projects/2009/snowglobe/trunk snowglobe</code><br/>
<code>$ cd snowglobe</code>
<code>$ cd snowglobe</code><br/>
<code>$ ln -s . linden</code>
<code>$ ln -s . linden</code><br/>
<code>$ . doc/asset_urls.txt</code>
<code>$ . doc/asset_urls.txt</code><br/>
<code>$ wget $SLASSET_LIBS_LINUXI386</code>
<code>$ wget $SLASSET_LIBS_LINUXI386</code><br/>
<code>$ wget $SLASSET_ART</code>
<code>$ wget $SLASSET_ART</code><br/>
<code>$ wget $SLASSET_MD5</code>
<code>$ wget $SLASSET_MD5</code><br/>
<code>$ unzip slviewer-artwork*zip</code>
<code>$ unzip slviewer-artwork*zip</code><br/>
<code>$ tar xzf slviewer-linux-libs*tar.gz</code>
<code>$ tar xzf slviewer-linux-libs*tar.gz</code><br/>


=== Run the Compile ===
=== Run the Compile ===

Revision as of 19:05, 21 March 2010

Step-by-Step 32bit Chroot Compile

Base 32 bit chroot setup

On Debian, bootstrap your 32bit chroot:

$ sudo debootstrap --arch i386 lenny /var/chroot/lenny-ia32 http://ftp.debian.org/debian/

Or, for sid:

$ sudo debootstrap --arch i386 sid /var/chroot/sid-ia32 http://ftp.debian.org/debian/

Once done, make sure you have your schroot entry set properly, mine looks like this

[lenny]
description=Debian lenny (stable)
location=/var/chroot/lenny-ia32
priority=3
groups=dzonatas,root
root-groups=root
aliases=stable,ia32
personality=linux32
type=plain
run-setup-scripts=true
run-exec-scripts=true
[sid]
description=Debian sid (unstable)
location=/var/chroot/sid-ia32
priority=3
groups=dzonatas,root
root-groups=root
aliases=unstable,default,ia32
personality=linux32
type=plain
run-setup-scripts=true
run-exec-scripts=true

Now you can log into your chroot to setup the base packages:

$ sudo linux32 schroot -c lenny -u root

Or, for sid:

$ sudo linux32 schroot -c sid -u root

Initialize the packages: $ apt-get update

Install these packages:

$ apt-get install python g++ subversion unzip bzip2 libx11-dev libxrender-dev libgl1-mesa-dev libxft-dev libxrandr-dev libxcursor-dev libglu-dev libsdl-dev libgtk2.0-bin

For sid, you can just install cmake:

apt-get install cmake

For lenny, you have to modify /etc/apt/sources.list to insert squeeze into the list in order to get version 2.8+. It should look like:

deb http://ftp.debian.org/debian lenny main
deb http://ftp.debian.org/debian squeeze main

Then you can do:

apt-get install cmake

Sources Setup

We can use the /tmp directory for this example, and download the sources.

$ cd /tmp
$ svn export https://svn.secondlife.com/svn/linden/projects/2009/snowglobe/trunk snowglobe
$ cd snowglobe
$ ln -s . linden
$ . doc/asset_urls.txt
$ wget $SLASSET_LIBS_LINUXI386
$ wget $SLASSET_ART
$ wget $SLASSET_MD5
$ unzip slviewer-artwork*zip
$ tar xzf slviewer-linux-libs*tar.gz

Run the Compile

$ cd indra $ ./develop.py $ cd viewer-linux-i686-relwithdebinfo $ make

After that completes, you should have a packaged compile in newview/Snowglobe-i686-1.4.0.0.tar.bz2