Monday 20 September 2010

New viewer - standalone or not?

When you build an SL viewer, you have to decide whether you want to build in "standalone" mode or not. What does this mean? Well, this helpful link explains it:

"A standalone build of the viewer refers to building a viewer against the shared libraries that are installed on your system instead of using precompiled libraries provided by Linden Lab."

For our new viewer project, the ideal build would be a combination of the two, so we have some hacking to do! Why would it be a combination? For the following reasons:

  • If a library exists as a system package, it saves us from building it ourselves, making the build quicker
  • System packages are often newer than the library versions that Linden Labs ships, meaning more bugfixes and features if we use them
  • Conversely, if a library does not exist as a system package, we must build against the version included in the source tree instead of failing with an error message. A non-root user cannot install a library as a system package, and if we only have one command to build the viewer it must do the build for the missing libraries too.

None of the viewers that I've seen so far support this kind of "mixed" mode, so we need to tweak the build system in order to pass the "I have a dream" test. However, it should hopefully be possible to do so without too much trouble.

No comments:

Post a Comment