User:Alissa Sabre/Building viewer 1.21.6 on Linux

From Second Life Wiki
Jump to navigation Jump to search

A memo to build SL viewer 1.21.6 on Linux (Fedora 9 x86). This memo is primariry for myself.

gcc/g++

Fedora 9's gcc/g++ 4.3.0 works fine.

Python

Python 2.5 or later is required.

If two or more versions of python are installed, the build fails. Even if the PATH environment variable did not contain the directory where the alternate python instance resides, it somehow affect the build process. Be sure to remove all python instances except one for SL development.

CMake

Use cmake 2.6.2 binary package for Linux.

distcc

For whatever reason, distcc doesn't work for me to build SL viewer 1.21.6.

Third party libraries

Use LL supplied pre-build libraries. That is, never specify --standalone.

Internet connection

During the configuration and building, the scrip eventually tries to access to the net. The build machine should always be connected to the Internet.

FMOD

Download and copy selected files into locations as before. The copy should take place after expanding tar/zip files and before running develop.py script.

First time build and run

  1. Download and expand source, library, and artwork bundles.
  2. Copy selected files from FMOD distribution.
  3. cd to linden/indra directory.
  4. Go into the C locale by export LANG=C. If LANG is set to ja_JP.utf8 (my default), the build script works strangely.
  5. Run develop.py as python develop.py configure.
  6. cd to linden/indra/viewer-linux-i686 subdirectory.
  7. Build as make -k -j 2.
  8. cd to linden/indra/viewer-linux-i686/newview/packaged and run secondlife to run.