Install compiler and libraries (as mentioned here)
(CENTOS)
$ sudo yum install tcsh gcc-c++ mesa-libGL-devel mesa-libGLU-devel Xi-devel
(if yum cannot find Xi-devel, try libXi-devel)
(UBUNTU)
$sudo apt-get libgl-dev libglu-dev libxi-dev
To initialize houdini environment variables and commands:
$ cd /opt/hfs12.5.371/
$ source houdini_setup
The Houdini 12.5.371 environment has been initialized.
Now you'll be able to use the command houdini, houdinifx, hcustom, etc.
The command hcustom is a little wrapper to g++ that will take care of searching for houdini sdk headers and linking with the correct libraries:
$ hcustom SOP_mynode.C
... if we need OpenVDB (see below for installing OpenVDB headers)
$ hcustom -I /tmp/OpenVDB/include/
When you try to compile the first time you might get this error:
...
...
/usr/bin/ld: cannot find -lXi
which might be related to the fact yum wasn't able to install the library Xi-devel in the first step. In that happens, try this:
sudo yum install libXi-devel
OpenVDB
If you plan to use OpenVDB you've to install the OpenVDB headers , cause they are not shipped with Houdini (12.5.xxx) so far.
Download the library and unzip it somewhere (for instance in /home/$USER/Download).
$ cd /home/alex/Download/openvdb
$ make clean
$ make install
... this will install the libraries into /tmp/OpenVDB
You might get the following errors:
error:
io/Compression.cc:35:18: error: zlib.h: No such file or directory
fix:
- edit the file /openvdb/io/Compression.cc
- change the line
from
#include <zlib.h>to
#include </opt/hfs12.5.371/toolkit/include/zlib/zlib.h>
error:
cmd/openvdb_view/Viewer.h:50:21: error: GL/glfw.h: No such file or directory
fix:
- edit the file /openvdb/Makefile
- search for line starting with
install:
and remove vdb_view (it's on the same line of "install :")
error:
/bin/bash: doxygen: command not found
fix:
- $ sudo yum install doxygen
No comments:
Post a Comment