Red Hat scene3D installation

From VISTA LAB WIKI

Revision as of 15:27, 10 August 2015 by Rjpatruno (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The ISET-Depth installation instructions for Red Hat's Fedora OS is below.

There is a remote package management system for Red Hat like the apt-get process for Ubuntu. I wonder if that method wouldn't be easier than this?

Contents

[edit] Radiance

- Download the source to the Radiance program from the following source distribution location. (rad4R0all.tar.gz (14.9 Megs - 15,579,458 bytes))

- On our systems we normally place the radiance tar package into /usr/local/software. To do this, you may need root permission.

-Extract the package, and read the README for installation details for Radiance (more details to be given later). To extract, we typically use gunzip, as in "gunzip rad4R0all.tar.gz" and "tar xf rad4R0all.tar". This produces a directory named 'ray', for radiance or ray trace or something.

- Change into the ray directory and you will find a file called "makeall". You can make the radiance package by typing:

./makeall install

should be sufficient. This program asks you a series of questions including your favorite editor (mine is emacs, the default is vi), and various locations for placing executables (/usr/local/bin) and libraries (/usr/local/lib/ray). To write into these directories, you will probably need root (sudo) permission.

Thus, if you use sudo, you should type

sudo ./makeall install

-To verify the installation, cd into obj/misc, and run:

cd obj/misc
rad daf.rif &

and see if it runs to completion. If it does, a file named "daf_close.hdr" will be created. You can delete this file (or not).

At the end, you might want to clean up the object files created by the compilation. You can do this by changing back to the top "ray" directory and typing

sudo ./makeall clean

[edit] Ilmbase

- Ilmbase is a prerequisite for OpenEXR.

If you don't have it, you can download and install version 1.0.2 from the following location: Ilmbase download

On our system we did the following

placed the library (ilmbase-1.0.2.tar.gz) in /usr/local/software.
tar xv ilmbase-1.0.2.tar.gz
cd into the directory
sudo ./configure
sudo make
sudo make install
sudo ldconfig

You could be a good citizen and do this

sudo make clean

[edit] Zlib

- Zlib is a prerequisite for OpenEXR, download and install version 1.2.5 from the following location: Zlib download

Many versions of Linux come with Zlib library already installed. If, for you example, you have /usr/include/zlib.h, then you don't need to make this shared library.

The instructions for making and installing are in the FAQ link.

In the FAQ you will find the following.

How can I make a zLib Unix shared library?
make clean
./configure -s
make
After the above, then:
make install

In the Ubuntu case, zlib.h was already in /usr/include. But stuff didn't work with Ilm and openexr. So, we downloaded and ran

sudo ./configure; make test
sudo make install

We didn't get any complaints. We then typed

ldconfig

[edit] OpenEXR

The general idea is:

- Download OpenEXR version 1.6.1 from OpenEXR version 1.6.1 download. This site is the same as the ilmbase site (see above). It's just a different download.


Again, you download, move it to, say, /usr/local/software, and run

tar xvf openexr-1.6.1.tar.gz 

Then change into the directory and proceed as usual

cd openexr-1.6.1/
./configure
make
make install

[edit] PsychToolbox

One possibility is

- Download the Psychtoolbox installer from the Psychtoolbox org site.

The installer will be a Matlab .m file, DownloadPsychtoolbox.m

- In Matlab, Run:

DownloadPsychtoolbox


[edit] RenderToolbox and SimToolbox

- To install RenderToolBox and SimToolbox, you must have SVN installed on your machine. Most Linux implementations do.

- Create a new directory for RenderToolbox, and a directory for SimToolbox

- Run:

svn co https://platypus.psych.upenn.edu/repos/rendertoolbox/trunk /path/to/RenderToolbox/folder
svn co https://platypus.psych.upenn.edu/repos/simtoolbox/trunk /path/to/SimToolbox/folder

On Ubuntu, we did this

sudo svn co https://platypus.psych.upenn.edu/repos/rendertoolbox/trunk /usr/share/RenderToolbox
sudo svn co https://platypus.psych.upenn.edu/repos/rendertoolbox/trunk /usr/share/SimToolbox

[edit] ISET

See the ISET page.

Personal tools