Setting up Build Environment in Ubuntu 11.10 for building Firestorm Viewer

After recently installing Ubuntu 11.10 and figuring out how to get latest Nvidia drivers setup and successfully building Firestorm on it, i thought some others may find this short guide useful, especially as Linux doesn’t seem to be affected by any of the Nvidia problems that have been a pain on Windows recently since the Mesh code was added. (Nvidia 285.05.09 runs perfectly on a GTX460M in Ubuntu 11.10)…;):

First, Download the latest Ubuntu 11.10 32-bit ISO from here: http://www.ubuntu.com/start-download?distro=desktop&bits=32&release=latest

Once Ubuntu-11.10 LiveCD or USB is loaded:

Click “Install Ubuntu 11.10”.
Follow steps and when prompted Tick the 2 boxes to install 3rd party drivers.

Once installed and rebooted:
Open Terminal and type:

sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-common nvidia-settings

Click Gear icon in top right of screen and click “Updates Available…”, and install updates.

Once completed press CTRL + ALT + F1 to open true Terminal and type:

sudo service lightdm stop

then:

sudo nvidia-xconfig

Once it say a message abount writing a new X-config file, type:

sudo service lightdm start

Then Reboot computer.

———-

To fix boot splash screen resolution:

sudo apt-get install v86d hwinfo
sudo hwinfo --framebuffer

(take note of resolutions as highest one might not work…so may need to try a lower one).

sudo gedit /etc/default/grub

Search for: GRUB_GFXMODE=
And replace line with: GRUB_GFXMODE=1280×800 (<- your-resolution-here)
Below this you need to type: GRUB_GFXPAYLOAD_LINUX=1280×800 (<- your-resolution-here)
Save file and close it.

echo FRAMEBUFFER=y | sudo tee /etc/initramfs-tools/conf.d/splash
sudo update-grub2
sudo update-initramfs -u

———

Open Ubuntu Software centre.
Install the following:

mercurial

g++
distcc
ccache
tortoisehg-nautilus

———-

Make a folder called “Src” in your Home Folder.
Open terminal and navigate to it, then type:

hg clone http://hg.secondlife.com/autobuild
cd autobuild
sudo python setup.py install

Sometimes autobuild doesn’t install the first time, so check to be sure you have it in /usr/local/bin with this command:

which autobuild

If it isn’t there, run “sudo python setup.py install” again and do the which command again.

Reboot computer.

———

Open Terminal and go to /Home/Src folder and type:

sudo apt-get install libc6-dev libstdc++6 libx11-dev libxrender-dev nvidia-current-dev
sudo apt-get install libglu1-mesa-dev zlib1g-dev libssl-dev libogg-dev libpng12-dev libdbus-glib-1-dev libgtk2.0-dev
sudo apt-get install subversion cmake gcc-4.4 g++-4.4 build-essential bison flex libc6-dev libstdc++6 libx11-dev libxrender-dev libxml2-dev libgl1-mesa-dev libglu1-mesa-dev zlib1g-dev libssl-dev libogg-dev libpng12-dev libdbus-glib-1-dev libgtk2.0-dev python-pip

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.4 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.4 --slave /usr/bin/gcov gcov /usr/bin/gcov-4.4

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

Pull latest updates:

If you’re familiar with using TortoiseHG GUI then type the following to open it and pull latest updates or apply patches you have:

sudo thg

(It seems to only see the Linux folders and not the other drives i have in sudo mode, but simply copy any patches you want to apply into the same folder using Nautilus file browser and it will find them.)

OR if you dont use TortoiseHG GUI then type:

hg pull
hg update

Go back to Terminal at /Home/Src/phoenix-firestorm-lgpl/ and type:

sudo autobuild configure -c ReleaseFS_open

Once completed type:

sudo autobuild build -c ReleaseFS_open

If all goes well, and you used the folder structure i used then you can find your built package (tar.bz2 file) in “/Home/Src/phoenix-firestorm-lgpl/build-linux-i686/newview/”.

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

10 Responses to Setting up Build Environment in Ubuntu 11.10 for building Firestorm Viewer

  1. Thank You !!! works perfect 😀 never get it working before i read this 🙂

  2. Matto says:

    Hi, great blog but i seem to have a issue. It builds and packages fine but the viewer will not run with
    ./firestorm: line 89: ./etc/register_hopprotocol.sh: No such file or directory
    ./firestorm: line 139: 4813 Illegal instruction LD_LIBRARY_PATH=”`pwd`”/lib:”${LD_LIBRARY_PATH}” $LL_WRAPPER bin/do-not-directly-run-firestorm-bin
    *** Bad shutdown. ***
    And the source is only a weeks old from post date of this.
    I have tried on various versions of Ubuntu 32bit but all with same result. If you can shed some light on this i would be grateful Thanks.

    • forestaurora says:

      To run the viewer i manually navigate to the folder where you extract the viewer package to then type “sudo sh ./firestorm” and it runs fine for me.

      • Kidder says:

        Doesn’t work for me, note I am booting from a flash drive andit works fine on another computer

  3. Matto says:

    Hiya, yeah i tried that and was same and also i downloaded there 3.2.2 Release and getting same error as above. Maybe somethings missing on my system?, i have asked in IRC but getting knowhere fast 😦

    • forestaurora says:

      Not sure what to suggest as havent seen that message before. Your not on 64-bit Linux by any chance?…think 64-bit linux has issues running SL…if your on Ubuntu 11.10 32-bit then should run ok. Might wanna ask in Firestorm user group in-world, maybe someone can help you there.

  4. Daneel says:

    Firestorm also complains to me about a missing .sh file. I do run a 64 bits Ubuntu. It used to work fine with Natty though, only with Oneiric I get errors.

  5. Matto says:

    Yeah i saw the missing .sh file too but also found out my issue was my machine is not sse2 compliant which is needed especially now with Mesh code.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s