Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
cl -nologo -MT -I"%RMANTREE%\include" -c myfunc.cpp
link -nologo -DLL -out:myfunc.dll myfunc.obj "%RMANTREE%\lib\libprman.lib"

Dynamic Loading RenderMan

In this case, the libprman library is loaded by the application at runtime from the RMANTREE environment variable. This is made possible by directly linking the libloadprman.a static library the static library into your application. When using the RenderMan API, a RixContext pointer may be obtained by calling RixGetContextViaRMANTREE.

...

Code Block
g++ -c -fPIC -I$RMANTREE/include myapp.cpp -o myapp.o
g++ myapp.o $RMANTREE/lib/libloadprman.a -o myapp

Mac OS-X

Code Block
languagebash
$ clang++ -std=c++11 -c -I$RMANTREE/include myapp.cpp -o myapp.o
$ clang++ myapp.o $RMANTREE/lib/libloadprman.a -o myapp

Windows

Code Block