2015年3月29日 星期日

SecondLife - browser - firestorm - build

http://wiki.phoenixviewer.com/fs_compiling_firestorm_mac


1. Homebrew

   To install homebrew, open Terminal and type :
   在 terminal 下執行這行指令:

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


2. mercurial / cmake


   brew install mercurial cmake



3. autobuild


mkdir ~/tmp
cd ~/tmp
hg clone http://hg.secondlife.com/autobuild/
cd autobuild
./setup.py build
sudo ./setup.py install

4. Xcode

    can install it from APP store


--------------------------------------------------------------------------------------------------------------------------

copy source code

hg clone http://hg.phoenixviewer.com/phoenix-firestorm-lgpl/


--------------------------------------------------------------------------------------------------------------------------

Install proprietary library
安裝相關的函式庫

1. 3p-fmodex

hg clone https://bitbucket.org/NickyD/3p-fmodex
cd 3p-fmodex
./build-cmd.sh
Near the top of the output you will see the package name written and the md5 hash below it:
wrote /Users/kittin/tmp/3p-fmod/fmod-3.75-darwin-20130105.tar.bz2' md5 3b0d38f2a17ff1b73c8ab6dffbd661eb'' 
Next, update Firestorms autobuild.xml file to use your FMOD Ex.
cd /firestorm/phoenix-firestorm-lgpl
cp autobuild.xml my_autobuild.xml
export AUTOBUILD_CONFIG_FILE=my_autobuild.xml
Copy the fmodex path and md5 value from the package process into this command:
autobuild installables edit fmodex platform=darwin hash= url=file:///
For example:
autobuild installables edit fmodex platform=darwin hash=c3f696412ef74f1559c6d023efe3a087 url=file://$HOME/firestorm/3p-fmodex/fmodex-3.75-darwin-20130105.tar.bz2
2. configure viewer

If you are building with Fmod and have followed the previous Fmod setup instructions AND you are now using a new terminal you will need to reset the environment variable with
export AUTOBUILD_CONFIG_FILE=my_autobuild.xml
Then:
cd ~/firestorm/phoenix-firestorm-lgpl
 autobuild configure -c ReleaseFS_open

3. compile viewer

cd ~/firestorm/phoenix-firestorm-lgpl
autobuild build -c ReleaseFS_open --no-configure

4. After build , the program will be at :

    build-darwin-i386/newview/Release/Firestorm

沒有留言:

熱門文章