分享

Cortex-vfx Installation on RHEL

 Tech-d 2012-10-26

Cortex-vfx Installation on RHEL

By  in Uncategorized

Finally, I had success installation on CentOS 5.6.

My workstaion had pre-installed packgages that listed below.

  • Python 2.6.5 (compiled) : /usr/local/bin
  • Houdini 12.1.77 : /opt/hfs12.1.77
  • Prman 16.3 : /opt/pixar/RendermanProServer-16.3
  • Nuke 6.3v4 : /usr/local/Nuke6.3v4

 

1. Scons 
Sortex-vfx uses python based installation script that called ‘scons’ (file:’SConstruct’)
it make similar to ‘CMake’, but it has library exist checking with compile attempting.
Download Here: http://www.

$sudo python setup.py install

2. Boost
I was hope that I dont want install boost, because there are some binary boost-libs in Houdini DSO directory. ($HFS/dsolibs)
unfortunally, there is not entire boost-libs. therefore so scons can’t found boost.
Download Here: http://www.

$./boostrap.sh
$./bjam
$sudo ./bjam install

Installed here.

  • /usr/local/includeboost
  • /usr/local/lib

3. OpenEXR & TDD 
there are binary libraries and header files in Houdini 12.

4. GLUT
just install using yum or rpm distributor.
freeglut-2.4.0-7.1.eel5.x86_64
freeglut-devel-2.4.0.07.1.el5.x86_64

5. GLEW
GLEW RPM version has problem recognize in scons.
just download and install : http://glew.


$make
$make install

Installed Here.
-> /usr/include/GL
-> /usr/lib64

6. Freetype2 
there is binary libary but no headers in houdini toolkit. 
just download it and install


$./configure
$make
$sudo make install

7. Cortex Compile
we need use scons options. (or modify SConstruct file)
most options about Library Pathes.
in Houdini Header compile process, maybe it should make some errors. therefore it need HOUDINI_CXX_FLAGS


$scons WITH_GL=True \
BOOST_INCLUDE_PATH='/usr/local/include' BOOST_LIB_PATH='/usr/local/lib' BOOST_LIB_SUFFIX='' \
OPENEXR_LIB_PATH='/opt/hfs12.1.77/dsolib' OPENEXR_INCLUDE_PATH='/opt/hfs12.1.77/toolkit/include' \
GLEW_LIB_PATH='/usr/lib64' GLEW_INCLUDE_PATH='/usr/include/GL' \
GLUT_LIB_PATH='/usr/lib64' GLUT_INCLUDE_PATH='/usr/include/GL' \
HOUDINI_ROOT='/opt/hfs12.1.77' \
NUKE_ROOT='/usr/local/Nuke6.3v4' \
MAYA_ROOT='/usr/autodesk/maya2011-x64' \
RMAN_ROOT='/opt/pixar/RenderManProServer-16.3' \
HOUDINI_CXX_FLAGS='-DDLLEXPORT= -D_GNU_SOURCE -DLINUX -DAMD64 -m64 -fPIC -DSIZEOF_VOID_P=8 -DSESI_LITTLE_ENDIAN -DENABLE_THREADS -DUSE_PTHREADS -D_REENTRANT -D_FILE_OFFSET_BITS=64 -c -DGCC4 -DGCC3 -O2'

[HIT ENTER]
.. bla bla..

maybe over 1 hour. have a coffee break with beautiful artist.

8. Coretex Compile – Test Units

$ scons test # same options above!

if raise error about ‘undefined … libboost-python’, it’s local python problem

$python
>>import sys
>>sys.maxunicde
65535

if you see it, you need recompile the python. must use –enable-unicode=ucs4

the scons has a problem that luanch default installed python. (/usr/bin or /usr/local/bin)
my problem is defualt python version is 2.4 (CentOS 5.x Default), so this raise syntax error in SConstruct.

9. Cortex Install 

$sudo scons install # same options above!

Installed here.

-> /usr/local/lib
-> /usr/local/include
-> /usr/local/lib/python2.6/site-packages

10. Test

$export PYTHONPATH=/usr/local/lib/python2.6:$HFS/houdini/python2.6libs
$export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HFS/dsolib:$HFS/python/lib:$RMANTREE/lib

$python
$import IECore
$import IECoreRI
$import IECoreHoudini

Done!

[Reference] http://forums./index.php?/topic/8419-makefiles/page__st__12

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多