Alas, the viewer (even the official one) is far from easy to build, due to a dirty mix of build tools (scons or cmake, python scripts, shell (batch) scripts, Visual C++, etc).
I will assume that your system is already configured to properly build an official viewer (see the
SL Wiki for details), with fmod and the QuickTime SDK also properly installed (normally in "C:\Program Files\fmodapi375win" and "C:\Program Files\QuickTime SDK" respectively)
The Cool VL Viewer is developed under Linux, so the sources are also adapted for a Linux build environment, and building the viewer in such an environment is just a matter of invoking (c)make-SL and letting the script do all the dirty work for me...
When I build for Windows, I first prepare the sources under Linux using
make-SL (for the v1.19.2 branch) or
cmake-SL (for the v1.23.5 branch), then I export the prepared source tree to a Windows virtual machine (using
VirtualBox) and build the viewer there with Visual Express C++ 2005.
You first need to download all the files linked from the download section of the
main site, in the "(source files used to build this release: main sources, artwork files, libraries, fmod, patches)" line corresponding to the branch you wish to build.
Put all the files inside a single directory. For v1.19.2, delete the two slviewer-8-v11905-gcc42-Warnings-libs.patch.bz2 and slviewer-8-v11905-gcc42-Warnings.patch.bz2 patch files, since Visual C++ doesn't like them at all... For both v1.19.2 and v1.23.5, make sure to put the supplementary Windows patch (available
here for v1.19.2 and
here for v1.23.5) in the same directory as the other patches.
For preparing the source tree, you have then two choices:
1.- The quick and easy way: by using the (c)make-SL scripts under Linux.
For v1.19.2, type:
and, for v1.23.5, type:
2.- The slow and hard way: if you don't want to prepare the source tree under Linux, then you will have to find the way to do it with Windows tools, but I can't point you to them since I don't know them (search for "diff patch windows" in Google). With the build environment installed for building the viewer, you may already have "patch", "bzcat", "tar", etc as cygwin tools...
Once you got the tools and learned how to use them, you then have to proceed as follow, in this exact order:
- Untar the *.tar.gz files (these are the official viewer sources and "libraries"): it should create a "linden" directory.
- Unzip the slviewer-artwork-*.zip file (this is the official viewer artwork): it should uncompress in the same "linden" directory as for the sources above.
- Unzip the slviewer-*-patch.zip files in alphabetical order: they should uncompress in the same "linden" directory as for the sources above. Do allow unzip to overwrite any existing file.
- Apply all the *.patch.bz2 patch files in alphabetical order from inside the "linden" directory. Under Linux, for a given patch, this is done with a command line such as:
Do not worry about the few rejects as they are taken care of by the "AdjustRejects" patch (note however, that if you remove or add new patches from/to the standard patch set, you will have to check for the possible supplementary rejects...).
You now have a source tree, ready to build for Windows. Let's do it:
- Open the linden\indra directory under the Explorer, and double-click on "winbuild.bat" (note that you may want to check first for the fmod and Quicktime SDK directory names in this script if you did not install these in C:\Program Files).
- Launch Visual Express C++ 2005.
- For v1.19.2, follow the detailed instructions given in linden\doc\VS2005conversionInstructions.txt
- For v1.23.5, open the linden\indra\build-VC80\viewer.vcproj project, select the Release configuration, and hit F7 to build.
Good luck !
