Getting started

First you need to install the dependencies, which are listed in the Open Shading Language Specification and get the source code from the repository. I will not describe this process here, since it is described elsewhere.

After that you also need to compile and install the open shading language libraries. You can do that using the make command, then you also need to copy the headers and binaries to a suitable location (I selected /usr/local):
# cd OpenShadingLanguage
# make
# sudo cp -r dist/linux/* /usr/local

When you checked out the source coude, you will got a file structure that looks like this.
We will keep working in this file tree:

build
CHANGES
dist
INSTALL
LICENSE
Makefile
README
site
src
testsuite

Change the current working directory to src
# cd src

Now create a new directory here called vtrace and set it as the current working directory:
# mkdir vtrace
# cd vtrace

You also need to create a cmake file here, in order to compile the files we will create later. I will just copy and existing one for now:
cp ../testshade/CMakeLists.txt .

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License