Second Life Logo **[Second Life][] is a free 3D virtual world where users can create, connect and chat with others from around the world.** This repository contains a fork of the source code for the official client. ## Open Source Second Life provides a huge variety of tools for expression, content creation, socialization and play. Its vibrancy is only possible because of input and contributions from its residents. The client codebase has been open source since 2007 and is available under the LGPL license. The [Open Source Portal][] contains additional information about Linden Lab's open source history and projects. ## Download Most people use a pre-built viewer release to access Second Life. Windows and macOS builds are [published on the official website][download]. More experimental viewers, such as release candidates and project viewers, are detailed on the [Alternate Viewers page](https://releasenotes.secondlife.com/viewer.html). ### Third Party Viewers Third party maintained forks, which include Linux compatible builds, are indexed in the [Third Party Viewer Directory][tpv]. ## Build Instructions [Windows](https://wiki.secondlife.com/wiki/Build_the_Viewer_on_Windows) ### macOS ``` # port install git cmake pkgconfig freealut +universal apr-util +universal boost +universal collada-dom +universal hunspell +universal jsoncpp +universal openjpeg +universal libsdl2 +universal uriparser +universal $ export LL_BUILD="-O3 -gdwarf-2 -stdlib=libc++ -iwithsysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -std=c++17 -fPIC -DLL_RELEASE=1 -DLL_RELEASE_FOR_DOWNLOAD=1 -DNDEBUG -DPIC -DLL_DARWIN=1 -arch arm64" ``` ### Debian/Ubuntu ``` # apt install git cmake pkg-config libalut-dev libaprutil1-dev libboost-fiber-dev libboost-program-options-dev libboost-regex-dev libcollada-dom-dev libexpat1-dev libfltk1.3-dev libfontconfig-dev libfreetype-dev libglu1-mesa-dev libhunspell-dev libjpeg-dev libjsoncpp-dev libmeshoptimizer-dev libnghttp2-dev libpng-dev libpipewire-0.3-dev libsdl2-dev liburiparser-dev libvlc-dev libvlccore-dev libvorbis-dev libxft-dev libxmlrpc-epi-dev libxxhash-dev # apt install libnanosvg-dev $ export LL_BUILD="-O3 -std=c++17 -fPIC -DLL_LINUX=1" ``` libnanosvg-dev is not available yet on Debian 12.5. libfontconfig-dev, libfreetype-dev, libjpegdev, libpng-dev, and libxft-dev may not be pulled in automatically by another package already on a minimal debootstrapped system. ### Fedora ``` # dnf install git gcc-c++ cmake zstd freealut-devel apr-util-devel boost-devel collada-dom-devel expat-devel fltk-devel hunspell-devel jsoncpp-devel libcurl-devel libnghttp2-devel libvorbis-devel mesa-libGLU-devel nanosvg-devel openjpeg2-devel openssl-devel pipewire-devel pulseaudio-libs-devel SDL2-devel uriparser-devel vlc-devel xmlrpc-epi-devel xxhash-devel $ export LL_BUILD="-O3 -std=c++17 -fPIC -DLL_LINUX=1" ``` ### FreeBSD ``` # portmaster devel/git devel/cmake-core devel/pkgconf audio/freealut devel/apr1 devel/collada-dom x11-toolkits/fltk textproc/hunspell misc/meshoptimizer graphics/nanosvg graphics/openjpeg devel/sdl20 net/uriparser multimedia/vlc audio/libvorbis net/xmlrpc-epi devel/xxhash $ setenv LL_BUILD "-O3 -std=c++17 -fPIC" ``` ### Common ``` $ cd viewer $ git remote add megapahit git://megapahit.org/viewer.git $ git fetch megapahit $ git checkout megapahit/main $ git switch -c megapahit $ mkdir -p build $ cd build $ cmake -DCMAKE_BUILD_TYPE:STRING=Release -DADDRESS_SIZE:INTERNAL=64 -DUSESYSTEMLIBS:BOOL=ON -DUSE_OPENAL:BOOL=ON -DLL_TESTS:BOOL=OFF -DNDOF:BOOL=OFF -DVIEWER_CHANNEL:STRING=Megapahit -DVIEWER_BINARY_NAME:STRING=megapahit -DBUILD_SHARED_LIBS:BOOL=OFF -DPACKAGE:BOOL=OFF -DINSTALL:BOOL=ON ../indra $ make -j12 $ sudo make install $ megapahit ``` ## Example ![FreeBSD](doc/freebsd.jpg) Running natively on FreeBSD (not with Linux binary compatibility). ## Contribute Help make Second Life better! You can get involved with improvements by filing bugs, suggesting enhancements, submitting pull requests and more. See the [CONTRIBUTING][] and the [open source portal][] for details. [Second Life]: https://secondlife.com/ [download]: https://secondlife.com/support/downloads/ [tpv]: http://wiki.secondlife.com/wiki/Third_Party_Viewer_Directory [open source portal]: http://wiki.secondlife.com/wiki/Open_Source_Portal [contributing]: https://github.com/secondlife/viewer/blob/main/CONTRIBUTING.md