Personal media in Second Life

February 15, 2007

Compiling Second Life First Look 1.13.3.58018

Filed under: Linux — Signore Iredell @ 7:47 pm

UPDATE – new build: no better results, and I filed my first bug for SL.

Here is my system specs and here’s what I did:

tar xzf slviewer-src-FL-1.13.3.58018.tar.gz
unzip slviewer-artwork-FL-1.13.3.58018.zip
tar xzf slviewer-linux-libs-FL-1.13.3.58018.tar.gz
tar xzf fmodapi375linux.tar.gz

cd fmodapi375linux/
cp api/inc/* ../linden/libraries/i686-linux/include/
cp api/libfmod-3.75.so ../linden/libraries/i686-linux/lib_release_client/

export SLSRC=~/Desktop/sl/Opensource/1.13.3.58018/linden
cp -a /usr/include/atk-1.0 ${SLSRC}/libraries/i686-linux/include/
cp -a /usr/include/gtk-2.0 ${SLSRC}/libraries/i686-linux/include/
cp -a /usr/lib/gtk-2.0/include/* ${SLSRC}/libraries/i686-linux/include/gtk-2.0/
cp -a /usr/include/glib-2.0 ${SLSRC}/libraries/i686-linux/include/
cp -a /usr/lib/glib-2.0/include/* ${SLSRC}/libraries/i686-linux/include/glib-2.0/
cp -a /usr/include/pango-1.0 ${SLSRC}/libraries/i686-linux/include/
cp -a /usr/include/cairo/* ${SLSRC}/libraries/i686-linux/include/

cd ../linden/indra/
vim newview/linux_tools/client-manifest-i686
(I uncomment the two lines corresponding to libllkdu and libkdu – then they should be automatically copied into the right place in the runtime directory as I’m following the ‘Packaging the client’ instructions)

scons DISTCC=no BTARGET=client BUILD=releasefordownload

First Look binary gave me great improvements on Linux (60%-100% more FPS), so I’m going now building the sources of 1.13.3.58018. Here is the Wiki page with useful info.

I’ll try to solve the partial problem I met last month using BUILD=releasefordownload scon option (that builds a complete tarball for the end-user, similarly to the ones we download from the Linden website). After the building, I extract the resulting .bz2 archive, but the viewer didn’t start – the app_settings directory lacked lots of files. Instead, i could successfully run the viewer from the source tree…and it worked fine.
I probably misunderstood the Wiki instructions here…then Tofu Linden cleared to me that BUILD=releasefordownload is supposed to work with the slviewer-linux-libs bundle as well.

However, this time I have installed via apt-get these libraries:

  • libboost-dev libboost-regex-dev libapr1.0-dev libaprutil1.0-dev libjpeg62-dev libsdl1.2-dev libvorbis-dev libexpat1-dev.

then uncompressed the viewer tar.gz:

  • tar xzf slviewer-src-FL-1.13.3.58018.tar.gz

defined the location of the sources (“linden” dir.):

  • export SLSRC=./linden (change this according to your case)

I was going to install all the additional dependencies (the last ones in the Prerequisites section of the Wiki page) but I stopped trying to patch xmlrpc-epi.

I continue then as described in the article of the last month. This will need a couple of hours – I go to eat now! 🙂

( … )

The result:

objcopy –keep-global-symbols newview/linux_tools/exposed-symbols.txt newview/secondlife-i686-bin-globalsyms newview/secondlife-i686-bin
strip -S -o newview/secondlife-i686-bin-stripped newview/secondlife-i686-bin
objcopy –keep-global-symbols newview/linux_tools/exposed-symbols.txt linux_crash_logger/linux-crash-logger-i686-bin-globalsyms linux_crash_logger/linux-crash-logger-i686-bin
strip -S -o linux_crash_logger/linux-crash-logger-i686-bin-stripped linux_crash_logger/linux-crash-logger-i686-bin
rm -rf newview/SecondLife_i686_1_13_3_3* && newview/linux_tools/package-client.sh linux_tools/client-manifest-i686 SecondLife_i686_1_13_3_3 default
Checking manifest…
Done.
[: 49: SecondLife_i686_1_13_3_3: unexpected operator
Building newview/SecondLife_i686_1_13_3_3 directory…
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
cp: target `SecondLife_i686_1_13_3_3/app_settings/*’ is not a directory
[: 91: ==: unexpected operator
cp: target `SecondLife_i686_1_13_3_3/character/*’ is not a directory
[: 91: ==: unexpected operator
cp: target `SecondLife_i686_1_13_3_3/fonts/*’ is not a directory
[: 91: ==: unexpected operator
cp: target `SecondLife_i686_1_13_3_3/help/*’ is not a directory
[: 91: ==: unexpected operator
cp: target `SecondLife_i686_1_13_3_3/skins/*’ is not a directory
[: 91: ==: unexpected operator
cp: target `SecondLife_i686_1_13_3_3/res-sdl/*’ is not a directory
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
[: 91: ==: unexpected operator
Done.
Pruning CVS directories from newview/SecondLife_i686_1_13_3_3 directory…
Done removing CVS directories.
Pruning .svn directories from newview/SecondLife_i686_1_13_3_3 directory…
Done removing .svn directories.
Stripping bundled libraries for compactness…
Done stripping bundled libraries.
[: 125: ==: unexpected operator
[: 125: ==: unexpected operator
Creating gridargs.dat for package, grid default
[: 134: SecondLife_i686_1_13_3_3.tar.bz2: unexpected operator
Creating tarball newview/SecondLife_i686_1_13_3_3.tar.bz2…
Done.
scons: done building targets.

As the last month, it works only from inside the sources tree. But it rocks! 😉

Advertisements

4 Comments »

  1. Ubuntu uses ‘dash’ instead of ‘bash’.

    Change the /bin/sh symlink to /bin/bash or edit the first line of any build scripts from ‘#!/bin/sh’ to ‘#!/bin/bash’

    That will get rid of these lines and might get the rest of the package built correctly:

    [: 91: ==: unexpected operator

    Comment by sdssdf — February 21, 2007 @ 10:17 pm

  2. […] kindly suggested in a comment to previous article, i’m going to edit the first line of any build scripts from ‘#!/bin/sh’ to […]

    Pingback by Compiling Second Life First Look 1.13.3.58018 on Ubuntu, again « Personal media in Second Life — February 21, 2007 @ 11:57 pm

  3. Hi all. Cool site Google
    Thank.

    Comment by Diot — February 11, 2008 @ 10:47 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: