Difference between revisions of "User:Cron Stardust"
(Gentoo AMD64 compilation steps) |
|||
Line 2: | Line 2: | ||
Also I'm another URU immigrant. Started playing Unti'l URU about 3 months after D'Mala was put up, now playing here after D'Mala was shutdown for Live. I love the Myst universe, but I have yet to pay for any online game. Even one that good. | Also I'm another URU immigrant. Started playing Unti'l URU about 3 months after D'Mala was put up, now playing here after D'Mala was shutdown for Live. I love the Myst universe, but I have yet to pay for any online game. Even one that good. | ||
== Compiling on Gentoo AMD64 == | |||
=== Needed packages === | |||
Make sure the following packages are installed: | |||
* dev-libs/boost | |||
* dev-util/scons | |||
* media-libs/gstreamer | |||
* media-libs/gst-plugins-base | |||
(More will be found when I study my world file, and maybe when I rebuild my system... If you know a package is needed, by all means append it to the list!) | |||
=== Get source and "accessories" === | |||
If this reads like a script, it's because that's what I built for myself and this was taken from the process I use there. | |||
# Make a directory to put all the stuff into... | |||
#* mkdir SLDev64 | |||
#* cd SLDev64 | |||
# Get the source. | |||
#* mkdir linden | |||
#* svn checkout --non-interactive "https://svn.secondlife.com/svn/linden/trunk" linden/ | |||
# Get the latest artwork. | |||
#* file_url="$(grep -m 1 "^SLASSET_ART=" "$SL_SVN_CO_DIR/doc/asset_urls.txt" | cut -d= -f2)" | |||
#* file_name="$(basename "$file_url")" | |||
#* wget -nc "$file_url" | |||
#* unzip -oq "$file_name" | |||
# Get the libs | |||
#* file_url="$(grep -m 1 "^SLASSET_LIBS_LINUXI386=" "$SL_SVN_CO_DIR/doc/asset_urls.txt" | cut -d= -f2)" | |||
#* file_name="$(basename "$file_url")" | |||
#* wget -nc "$file_url" | |||
#* tar -xf "$file_name" | |||
# Get glh_linear. For some reason it's not auto-included when building stand-alone! | |||
#* file_url="$(xml select -t -c "//key[text()='glh_linear']/following-sibling::map[1]/key[text()='packages']/following-sibling::map[1]/key[text()='linux64']/following-sibling::map[1]/uri/text()" "$SL_SVN_CO_DIR/install.xml")" | |||
#* file_name="$(basename "$file_url")" | |||
#* wget -nc "$file_url" | |||
#* cd "linden" | |||
#* tar -xf "../$file_name" | |||
#* cd .. | |||
# Now for a library that is not included by default, but is needed, NDOF. | |||
#* file_url="http://www.aaue.dk/~janoc/files/software/linux/spacenav/libndofdev-0.2.tar.gz" | |||
#* file_name="$(basename "$file_url")" | |||
#* wget -nc "$file_url" | |||
#* tar -xf "$file_name" | |||
#* cd "libndofdev" | |||
#* make | |||
#* cd .. | |||
#* cp libndofdev/*.[hao] "linden/indra/newview/" | |||
# Finally, apply any patches to the source you feel like... | |||
=== Building the viewer === | |||
Also from a process worked out in a script... | |||
# Configure the tree | |||
#* cd "linden/indra" | |||
#* ./develop.py --standalone -t Release -N | |||
#* cd ../.. | |||
# Find out what OpenGL library you are using, and switch to the xorg-x11 implementation. | |||
#* opengl_lib="$(eselect opengl show)" | |||
#* sudo eselect opengl set xorg-x11 | |||
# Compile the viewer | |||
#* cd "linden/indra/viewer-linux-$(arch)-release" | |||
#* make | |||
# Switch back to your old OpenGL library. | |||
#* sudo eselect opengl set $opengl_lib | |||
And you should be done... Admittedly this only took me to 99% so far... More debugging... |
Revision as of 20:22, 1 January 2009
Just another scripter about trying to make things better.
Also I'm another URU immigrant. Started playing Unti'l URU about 3 months after D'Mala was put up, now playing here after D'Mala was shutdown for Live. I love the Myst universe, but I have yet to pay for any online game. Even one that good.
Compiling on Gentoo AMD64
Needed packages
Make sure the following packages are installed:
- dev-libs/boost
- dev-util/scons
- media-libs/gstreamer
- media-libs/gst-plugins-base
(More will be found when I study my world file, and maybe when I rebuild my system... If you know a package is needed, by all means append it to the list!)
Get source and "accessories"
If this reads like a script, it's because that's what I built for myself and this was taken from the process I use there.
- Make a directory to put all the stuff into...
- mkdir SLDev64
- cd SLDev64
- Get the source.
- mkdir linden
- svn checkout --non-interactive "https://svn.secondlife.com/svn/linden/trunk" linden/
- Get the latest artwork.
- file_url="$(grep -m 1 "^SLASSET_ART=" "$SL_SVN_CO_DIR/doc/asset_urls.txt" | cut -d= -f2)"
- file_name="$(basename "$file_url")"
- wget -nc "$file_url"
- unzip -oq "$file_name"
- Get the libs
- file_url="$(grep -m 1 "^SLASSET_LIBS_LINUXI386=" "$SL_SVN_CO_DIR/doc/asset_urls.txt" | cut -d= -f2)"
- file_name="$(basename "$file_url")"
- wget -nc "$file_url"
- tar -xf "$file_name"
- Get glh_linear. For some reason it's not auto-included when building stand-alone!
- file_url="$(xml select -t -c "//key[text()='glh_linear']/following-sibling::map[1]/key[text()='packages']/following-sibling::map[1]/key[text()='linux64']/following-sibling::map[1]/uri/text()" "$SL_SVN_CO_DIR/install.xml")"
- file_name="$(basename "$file_url")"
- wget -nc "$file_url"
- cd "linden"
- tar -xf "../$file_name"
- cd ..
- Now for a library that is not included by default, but is needed, NDOF.
- file_url="http://www.aaue.dk/~janoc/files/software/linux/spacenav/libndofdev-0.2.tar.gz"
- file_name="$(basename "$file_url")"
- wget -nc "$file_url"
- tar -xf "$file_name"
- cd "libndofdev"
- make
- cd ..
- cp libndofdev/*.[hao] "linden/indra/newview/"
- Finally, apply any patches to the source you feel like...
Building the viewer
Also from a process worked out in a script...
- Configure the tree
- cd "linden/indra"
- ./develop.py --standalone -t Release -N
- cd ../..
- Find out what OpenGL library you are using, and switch to the xorg-x11 implementation.
- opengl_lib="$(eselect opengl show)"
- sudo eselect opengl set xorg-x11
- Compile the viewer
- cd "linden/indra/viewer-linux-$(arch)-release"
- make
- Switch back to your old OpenGL library.
- sudo eselect opengl set $opengl_lib
And you should be done... Admittedly this only took me to 99% so far... More debugging...