User:Dzonatas Sol/Snowglobe

From Second Life Wiki
Jump to navigation Jump to search

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