注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

316Studio

分享资源,分享快乐··

 
 
 

日志

 
 

Naiad] Naiad Buddy For Arnold  

2011-11-11 22:01:44|  分类: CG资讯 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

[Naiad] Naiad Buddy For Arnold [复制链接] 

1.0 Installing the Build Tools And Configuring Your Environment
You only need to follow the instructions in this section 1.0 once (the first time you want to use the Naiad Buddy for Arnold). However, please follow the instructions in section 2.0 every time you need to update the Naiad Buddy for Arnold due to a new Naiad release.

Since you will be compiling and building the Naiad Buddy yourself, you will need the following tools and utilities installed:

 

 


a C++ compiler such as gcc/g++
cmake
git

These are very common tools you can find on any flavor of Linux.

Unfortunately, each Linux distribution handles the exact method of installation slightly differently. We will show how to install these using Ubuntu:

sudo apt-get install git-core gcc g++ cmake -y
复制代码

(for installing these common build tools on other Linux distros, please consult Google).

Next, you have to set up the environment for the plugin manually by editing the appropriate shell resource configuration file.

The first step is to determine which shell you are using; there are two main types: bash and tcsh/csh.

To determine which shell you're using, please type

$ echo $SHELL
复制代码

if you see /bin/bash - then you are using a bash shell. Otherwise it's tcsh/csh.

1.1 Bash Configuration
Please edit the .bashrc configuration file to add the necessary environment variables. The .bashrc configuration file is a text file which is located in your home directory. You can use any text editor (such as gedit) to edit the .bashrc file:

$ gedit ~/.bashrc
复制代码

Once inside the .bashrc file, please skip to the very end, and add the following lines:

export EM_COMPILER=gcc

export CC=gcc

export CXX=g++

export EM_PLAT=LINUX

export EM_ARCH=`uname -m`

export ARNOLD_ROOT=/path/to/where/arnold/is/installed
1.2 tcsh/csh Configuration

If you are NOT using a bash shell, you need to edit the .cshrc configuration file, which is located in your home directory. You can use any text editor (such as gedit) to edit the .cshrc file:

$ gedit ~/.cshrc
复制代码

Once inside the .cshrc file, please skip to the very end, and add the following lines:

setenv EM_COMPILER gcc

 

setenv CC gcc

 

setenv CXX g++

 

setenv EM_PLAT LINUX

 

setenv EM_ARCH `uname -m`

 

setenv ARNOLD_ROOT /path/to/where/arnold/is/installed
复制代码
1.3 Verifying Your Configuration

Quit the text editor and close the shell. Open a new shell, which should take into account the new variables you've added. You should verify this by typing:

$ echo $NAIAD_PATH
复制代码

This should print the path to your current Naiad installation.

$ echo $ARNOLD_ROOT
复制代码

That should print the correct path relative to your Arnold installation directory. If it does not, then you've made a mistake.

2.0 Compiling Naiad Buddy for Arnold
You need to do this every time a new version of Naiad is released that contains API changes. This is typically semi-major or major releases, such as 1.0 to 1.5 or 2.0, etc.

We assume the following:

 

 


Naiad and Arnold have been installed.
The environment variable $NAIAD_PATH points to the location of the Naiad installation and $ARNOLD_ROOT points to the location of the Arnold installation.
You want to keep the arnold-buddy source in your home directory, e.g., in the path /arnold-buddy.git. If you wish to use another location for the source code, then please make the appropriate substitutions in the commands shown below:

First, get a fresh copy of the latest Naiad Buddy for Arnold source code:

rm -rf ~/arnold-buddy.gitgit clone git://github.com/exoticmarcus/Naiad-Buddy-For-Arnold.git ~/arnold-buddy.git
Now, to compile this buddy, run the following commands:

cd ~/arnold-buddy.git
mkdir -p build && cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=$NAIAD_PATH ~/arnold-buddy.git
make
cd ..
rm -rf build


 
 

本文摘自: IDASR.com|数字艺术社区(www.ideasr.com) 详细出处请参考:http://www.ideasr.com/thread-4941-1-1.html

  评论这张
 
阅读(2988)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018