RenderMan & RISpec >> Compiling Renderman C programs using XCode on OSX

by Pangaea » Wed, 11 Jul 2007 01:04:44 GMT

Hi all. I have finally got around to buying 'The Renderman Companion"
I have coded the first example program and had some errors, which I
reduced to 1, by including the full path to the ri.h header. I still
have one error regarding the RI_P string token.

Here is the XCode Run Log

[Session started at 2007-07-10 17:55:58 +0100.]
ZeroLink: unknown symbol '_RI_P'

rendermanProg has exited due to signal 6 (SIGABRT).

here is the program

#include </Applications/Graphics/3Delight-6.5.0/include/ri.h>

RtPoint Square[4] = {{.5,.5,.5}, {.5,-.5,.5}, {-.5,-.5,.5}, {-.
5,.5,.5}};

main()
{

RiBegin(RI_NULL); //start the render
RiWorldBegin();
RiSurface("constant", RI_NULL);
RiPolygon(4, RI_P,(RtPointer) Square, RI_NULL);
RiWorldEnd();
RiEnd(); //clean up
}


RenderMan & RISpec >> Compiling Renderman C programs using XCode on OSX

by Nicholas » Wed, 11 Jul 2007 11:10:40 GMT



You have to set the library path to point to 3Delight library location


While you are at it, avoid hard coded absolute path. You can't reuse
your code with other developers and you are tied to a version.

My advice is to also set the include path.

So in XCode:
1. Set DELIGHT to /Applications/Graphics/3Delight-6.5.0
2. Set include path to $DELIGHT/include
3. Set library path to $DELIGHT/library

If you are not familiar with XCode settings, a simple Makefile might
be easier.

Regards

RenderMan & RISpec >> Compiling Renderman C programs using XCode on OSX

by Michel Joron » Thu, 12 Jul 2007 18:07:33 GMT

Assuming you C file is named constant.c; a makefile could look like this:

constant: constant.c
gcc -I$(DELIGHT)/include constant.c -L$(DELIGHT)/lib -l3delight
-o constant

assuming you change the line
#include </Applications/Graphics/3Delight-6.5.0/include/ri.h>
for
#include <ri.h>


In article < XXXX@XXXXX.COM >,

Similar Threads

1. compile on osx cvs version (GIF support) 4.1

hello everybody,

I need animated gif support... I had it working on linux and now I'm
trying to compile from cvs source (5 minutes ago)

when I try to configure it with the command (libs are a little bit
messy on osX!)

./configure --with-readline=/sw/lib/ --enable-history-file
--with-gd=/Users/tommaso/src/gd-2.0.33 --prefix=/sw
CPPFLAGS=-I/sw/include LDFLAGS=-L/sw/lib --x-libraries=/usr/X11R6/lib/
--x-includes=/usr/include/X11

of course libgd are at the leatest version gd-2.0.33
at a certain point I get:

checking for gdlib-config... /sw/bin/gdlib-config
checking for gdImageCreate in -lgd... no

if I type
gdlib-config --features
I get:
GD_XPM GD_JPEG GD_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF

so I can generate GIF.... and the version of the gd-library is ok....


so what?!?!

I really hope someone can help me!

thanks

2. Compiling on osx, something that might help and something not working still

3. renderman OpenEXR Display driver compile in cgwin.

4. No Drag & Drop: CS/OSX 10.3

5. Compiling release of directx program

Are you sure you're correctly linking to D3DX.lib?

-- 
Wessam Bahnassi
Microsoft DirectX MVP,
Lead Programmer
In|Framez

"vaughan" < XXXX@XXXXX.COM > wrote in message 
news: XXXX@XXXXX.COM ...
>I am trying to compile a release version of my directx C++ project in
> the Microsoft VC++ Visual Studio.  The project works fine when compiled
> in debug format.  However, whenever I compile in release I get the
> following errors:
>
> Cuboid.obj : error LNK2019: unresolved external symbol
> _D3DXCreateTextureFromFileA@12 referenced in function "public: bool
> __thiscall CCuboid::SetTexture(char const *)"
> (?SetTexture@CCuboid@@QAE_NPBD@Z)
>
> Game.obj : error LNK2019: unresolved external symbol
> _D3DXMatrixPerspectiveFovLH@20 referenced in function "private: void
> __thiscall CGame::SetupCamera(void)" (?SetupCamera@CGame@@AAEXXZ)
>
> Game.obj : error LNK2019: unresolved external symbol
> _D3DXVec3TransformCoord@12 referenced in function "public: void
> __thiscall CGame::rC(void)" (?rC@CGame@@QAEXXZ)
>
> etc.
> 


6. Delphi compiled programs and ATI graphics card

7. Using Lightwave with Renderman Question

greets all,

Could someone please point me to documentation or a website which
explains how to use Lightwave with Renderman (using the Lightman
plugin).

I'm currently running:

Lightwave v7.5
Renderman  v5.5
Lightman plugin v1.1

I'm going through some of the documentation I have, but it's skimpy
and doesn't explain a lot. Any help would be much appreciated.

MJ

8. odd imagebased lighting artifact using renderman studio - RenderMan & RISpec