diff options
author | Erik Kundiman <erik@megapahit.org> | 2023-09-10 18:42:56 +0800 |
---|---|---|
committer | Erik Kundiman <erik@megapahit.org> | 2023-09-10 18:42:56 +0800 |
commit | a4543cf3cd41a466599de61f02e6d3b3d09700c4 (patch) | |
tree | 6743beff840669800d4bdc445919bd8f09a06cd5 /README.md | |
parent | 52d973e95567efcb145ed0de1f4b6f0e19663776 (diff) | |
parent | 0797257992ee7f88456d3083ebf214485b75c139 (diff) |
Merge branch 'main' into DRTVWR-559
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 44 |
1 files changed, 41 insertions, 3 deletions
@@ -5,7 +5,7 @@ </picture> **[Second Life][] is a free 3D virtual world where users can create, connect and chat with others from around the -world.** This repository contains the source code for the official client. +world.** This repository contains a fork of the source code for the official client. ## Open Source @@ -28,9 +28,47 @@ Third party maintained forks, which include Linux compatible builds, are indexed [Windows](https://wiki.secondlife.com/wiki/Build_the_Viewer_on_Windows) -[Mac](https://wiki.secondlife.com/wiki/Build_the_Viewer_on_macOS) +### macOS -[Linux](https://wiki.secondlife.com/wiki/Build_the_Viewer_on_Linux) +``` +# port install git cmake pkgconfig apr-util boost collada-dom freealut hunspell jsoncpp libsdl2 uriparser VLC +$ export LL_BUILD="-DLL_DARWIN=1 -DPIC -fPIC -gdwarf-2 -stdlib=libc++ -iwithsysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -DLL_RELEASE=1 -DLL_RELEASE_FOR_DOWNLOAD=1" +``` + +### GNU/Linux + +``` +# apt install git cmake pkg-config libalut-dev libaprutil-dev libboost-fiber-dev libboost-program-options-dev libboost-regex-dev libcollada-dom-dev libcurl4-openssl-dev libexpat1-dev libglu1-mesa-dev libgtk2.0-dev libhunspell-dev libjsoncpp-dev libmeshoptimizer-dev libnghttp2-dev libopenjp2-dev libsdl2-dev liburiparser-dev libvlc-dev libvlccore-dev libvorbis-dev libxmlrpc-epi-dev libxxhash-dev +$ export LL_BUILD="-DLL_LINUX=1 -fPIC" +``` + +### FreeBSD + +``` +# portmaster devel/git devel/cmake devel/pkgconf devel/apr1 devel/collada-dom devel/sdl20 devel/xxhash audio/freealut audio/libvorbis graphics/openjpeg misc/meshoptimizer multimedia/vlc net/uriparser net/xmlrpc-epi textproc/hunspell x11-toolkits/gtk20 +$ setenv LL_BUILD "-DLL_FREEBSD=1 -fPIC" +``` + +### Common + +``` +$ cd viewer +$ git remote add megapahit https://megapahit.org/viewer.git +$ git fetch megapahit +$ git checkout megapahit/main +$ 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=ON -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 |