Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Linux Source Info

Fluf Fredriksson
Registered User
Join date: 8 Feb 2007
Posts: 248
08-28-2007 07:10
Heya penguin fans!

I recently took the plunge and tried compiling the Linux SL client using the instructions here:
https://wiki.secondlife.com/wiki/Compiling_the_viewer_(Linux)
If you have kind of average Penguin KungFu it's quite easy to edit Henri Beauchamp's automated setup script towards the bottom of that page. Make sure you paste it into an editor that won't truncate the lines though (kedit worked fine for me).

Install as many of the native "dev" packages as you dare (I couldn't get the GTK part to compile so just uninstalled the relevant dev packages, re-ran Henri's script and fell back on the provided libs).

It was also worth tweaking the processor options in the script. Running on my dual core desktop I used :
"TUNE_FLAGS="-fomit-frame-pointer -frename-registers -fweb -fexpensive-optimizations -march=prescott -pipe -O2"
If you google "gcc march ____" where ___ is your type of processor, you should find what you need pretty quick.

And the end result? I swear it's faster and more stable than the public release. I've had one crash since I started running the re-compiled source. Object textures seem to load quicker when I hover the mouse over them as well. But that might just be a case of a fevered imagination.

Anyway. If you have an afternoon to spare, follow the wiki guide, fire up your package installer and give it a go.
Drake Bacon
Linux is Furry
Join date: 13 Jul 2005
Posts: 443
08-28-2007 15:40
What's your setup?
_____________________
Drake Bacon/Drake Winger
Home: Custom AMD X2 (65nm) 5000+, 4 Gig RAM, Gentoo amd64, NVidia GeForce 8600GT PCIe
Mobile: Dell Inspiron E1505 (Core Duo 1.6GHz, 1 gig RAM, Gentoo x86, NVidia GeForce Go 7300 PCIe)
Backup: iMac (Core 2 Duo 2.4GHz, 4 gig RAM, ATI Radeon HD 2400, MacOS X Leopard)
Don't Ask: Asus EeePC 900A (Atom 1.6Ghz, 1 gig RAM, Intel graphics, Gentoo x86)
Fluf Fredriksson
Registered User
Join date: 8 Feb 2007
Posts: 248
08-29-2007 02:26
Does a quick re-check...
Pentium D 840 (2x3.2GHz) - 2GB Ram - GeForce 6200 (NV43 256MB) - CMedia8738 Audio
Debian testing 2.6.21 - Current uptime 31 days 21 hours! Woo!

Does that help??

BTW: Make it 2 crashes now in 4 days. Still not bad.

And if anyone recompiles with the -Os flag, I'd be interested to know how it goes...
Boroondas Gupte
Registered User
Join date: 16 Sep 2005
Posts: 186
08-29-2007 06:18
From: Fluf Fredriksson
And if anyone recompiles with the -Os flag, I'd be interested to know how it goes...


If I remember correctly this has been done already. Maybe it can be found somewhere in the SLDev mailing list archive.
Fluf Fredriksson
Registered User
Join date: 8 Feb 2007
Posts: 248
08-30-2007 01:48
Thanks for the tip, but I had a dig around the SLDev archive (google style), and couldn't find anything very relevant. It has however made me wonder if using any -o? flags is wise.

There seems to be some gulf between the level of knowledge in SLDev, the relevant parts of the wiki and here.

Wouldn't it be smarter to move SLDev to forums.secondlife.com? More so now the source is more freely available and more people are tinkering with it...
Fluf Fredriksson
Registered User
Join date: 8 Feb 2007
Posts: 248
08-30-2007 11:02
Ah well.
All that optimistic stuff above now seems a little out of place since the latest release candidate doesn't seem to want to compile at all!
Sighs ... ok ... can I be bothered to track down the errors in the setup that worked fine compiling the last version yesterday?
Asriazh Frye
Smart Cookie
Join date: 30 Sep 2006
Posts: 173
08-30-2007 14:59
Hi there ^_^
I compiled the 1.18.3.2 source today, but only after i ironed out some quirks.
The first one lies in floatergroups.cpp line 85. there you have to replace line 85-88 with:

LLFloaterGroupPicker::LLFloaterGroupPicker(const LLSD& seed) :
mPowersMask(GP_ALL_POWERS),
mSelectCallback(NULL),
mCallbackUserdata(NULL)

There should be spaces in front of "mPoerMask, mSelectCallback and mCallbackUserdata, which are tabs.
The second quirk was, that the glib libraries the lindens provided werent compatible with my gthread.so the source tried to use. So i just replaced the glib headers inside the SL client source (at "libraries/i686-linux/include/glib-2.0";) with mine, as well as "libglib-2.0.so" "libglib-2.0.so.0" "libglib-2.0.so.0.1400.0" (goes into "libraries/i686-linux/lib_release_client";).

After that the source compiled just fine. have fun recooking the recipe ^_^

-Asriazh
Fluf Fredriksson
Registered User
Join date: 8 Feb 2007
Posts: 248
08-30-2007 17:28
Asriazh!
You smart cookie!
Heh!
Am sure that glib hint should squash the bug I was getting. Thanks!
I'm mashing up my own version of an "auto compile" beasty ... looks like I'll need to re-write it each time huh? :)
Boroondas Gupte
Registered User
Join date: 16 Sep 2005
Posts: 186
glib error
08-31-2007 09:42
http://jira.secondlife.com/browse/VWR-2275
Boroondas Gupte
Registered User
Join date: 16 Sep 2005
Posts: 186
build scripts
08-31-2007 09:52
From: Fluf Fredriksson

I'm mashing up my own version of an "auto compile" beasty ... looks like I'll need to re-write it each time huh? :)

You might want to use
https://wiki.secondlife.com/wiki/Compiling_the_viewer_(Linux)#Automated_libraries_and_headers_adjustments.2C_compilation_and_packaging
or
https://lists.secondlife.com/pipermail/sldev/2007-June/002229.html

The first is even updated sometimes :-)
Jayyall Klaar
Registered User
Join date: 11 Aug 2007
Posts: 21
09-01-2007 08:08
From: Drake Bacon
What's your setup?


Is anyone compiling on Gentoo using Matsuu's ebuild?
Asriazh Frye
Smart Cookie
Join date: 30 Sep 2006
Posts: 173
09-01-2007 10:06
From: Jayyall Klaar
Is anyone compiling on Gentoo using Matsuu's ebuild?


I never got that one to work for me. I guess it's cause i used a x64 version of gentoo. Compiling the source manually worked fine tho, if i changed g++-3.4 to g++-32 inside SConstruct file.

-Asriazh ^_^