[sldev] compiling the viewer

Charles Krinke cfk at pacbell.net
Sat Jun 9 08:31:36 PDT 2007


Dear Max:

I was able to compile the 1.17.0.9 viewer in Linux thanks to your kind efforts. There were three minor issues which I am including here for reference.

1. Makefile uses "g++-3.4" and compat-gcc-34-c++ installs "g++34", so I added a softlink in my /usr/bin for this name.
2. Makefile uses /local/home/linden/distfiles and ./distfiles works better on a system without this hard-coded path.
3. The compilation needed the .supp file in the linden/indra/newview directory
4. both libtcmalloc.so.0 & libstacktrace.so.0 could not be found in the link stage and I put copies of both of them into the linden/libraries/i686-linux/lib_release_client directory. LD_LIBRARY_PATH did not seem to find these in /usr/lib

Now, that I have a complete compile, this leads to a few other questions.

a. Can we expect to run ddd/gdb on this binary and are there any nuances in getting this working in Linux?
b. I see hints of a similar script/batch file notion for Cygwin on windows. Are there any hints for getting the Windows compile working with Cygwin?

Again, thank you and I look forward to our next exchange.

Charles

p.s. As soon as possible, I also am anticipating working through Nicholas notes.

Hi Charles,



Since I'm using FC6 too so that should make it easier.  I'm attaching
the Makefile that I use to download and build

the 1.17.0.9 binary that I am using.



There are a few things missing, that they will fix in the next release
of the tar files.  But I will attach the missing on that

rob posted today.



As a normal user copy the Makefile into a directory,  create a subdir
called distfiles and copy the secondlife-i686.supp files into that. 
And if you have already downloaded the tar files from the second life
site you can put them into the distfiles directory too.

Then type:



% script -f -c make build.log



Then wait a long time depending on your system. :-)

If the build works you will end up with a
linden/indra/newview/SecondLife_i686_1_17_0_9.tar.bz2 file.

Untar that file and run your new viewer.



I have added some info to the wiki about google-perftools which contain
both tcmalloc and stacktrace libraries.



                Max





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.secondlife.com/pipermail/sldev/attachments/20070609/ccc37a88/attachment.htm


More information about the SLDev mailing list