Linux下OpenImageIO的安装

来自:http://wiki.blender.org/index.php/Dev:2.6/Source/Render/Cycles/Building

For OpenImageIO, we need to install Git, e.g. on Ubuntu:

sudo apt-get install git-core

Create Folders:

mkdir blender-cycles
cd blender-cycles
mkdir boost
cd boost

Download a recent version of boost, e.g. version 1.47, and move the .zip file into the boost folder in the blender-cycles folder.

Build Boost:

tar xzf boost_1_47_0.tar.gz
cd boost_1_47_0/
./bootstrap.sh
./bjam -j4 variant=release link=static threading=multi --with-filesystem --with-thread --with-regex --with-system --with-date_time stage install --prefix=../
cd ../..

Build OpenImageIO:

git clone git://github.com/OpenImageIO/oiio.git
cd oiio
git checkout RB-0.10
mkdir -p build/linux
cd build/linux
cmake ../../src/ -DBUILDSTATIC=1 -DBOOST_CUSTOM=1 -DBoost_INCLUDE_DIRS=`pwd`/../../../boost/include/ -DBoost_LIBRARY_DIRS=`pwd`/../../../boost/lib -DBoost_LIBRARIES="boost_date_time;boost_filesystem;boost_thread;boost_regex;boost_system" -DCMAKE_INSTALL_PREFIX=`pwd`/../../dist/linux
make -j4 install
cd ../../..

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值