PDA

View Full Version : 3Delight Renderman


vigneshwarv
05-25-2010, 07:00 PM
Hi Could any one tell me how to setup 3Delight with visual studio for programming in RiAPI.

Advance thank you.

Gravedigger
05-26-2010, 06:19 AM
hi man

that should be pretty simple. with 3deligth you got the devkit including the headers and libraries needed to work with the API

what i would do is simply open the visual studio options. there you can set the VC directories. add a folder in the include and point that to your 3delight include directory. add a folder in the libraries tab and point it to the libraries

then you simply can start coding. use the right headers and make sure you link against the right libraries

grs
Gravedigger

vigneshwarv
05-26-2010, 10:37 AM
my code and errors
http://codepad.org/ONw8Fk5l

I get the linking errors

=++++++++
I went to vc++ directories and included the include and lib directory of 3Delight

then in the
properties->Linker settings->input->additional dependencies i have added 3Delight.lib

i compiled and still got linking errors

_____________
then after that i had a dll file,i copied that to my project directory.But still i get errors.


Can somebody help me out

Advance thank you

Gravedigger
05-26-2010, 01:42 PM
don't have 3delight installed here


error: ri.h: No such file or directory


seems as if it hasn't found the right include file. are you sure you set the directories correctly?

yes the unresolved symbols really come from that the library doesn't get linked correctly...

do you have installed 64bit 3delight? make sure to keep this in mind

grs
Gravedigger

//EDIT:
just saw that you did try do get the headers and libraries set. what are the errors you still have? unresolved symbols?

vigneshwarv
05-26-2010, 02:28 PM
in program wise,its completely fine.I dont have any error.but i do have some errors regarding the header files n linking errors as i told u before.

and s it is 64 bit 3Delight only..

noizFACTORY
05-27-2010, 05:10 AM
You have probably been working on a Win32 project so far (which is what Visual Studio creates by default). You can change it to a 64 bit project from your project settings. Follow this link and once you've done the changes, things should compile alright.

http://msdn.microsoft.com/en-us/library/9yb4317s(VS.80).aspx

-Sachin

Gravedigger
05-27-2010, 07:33 AM
yeah this is why i asked for 64bit too. make sure if you changed your project that in your VC directories you've set the includes and libraries for 64bit projects. then everything should work

hope you will have as much fun as i do programming renderman ;-)

vigneshwarv
05-27-2010, 02:53 PM
hi i still get errors after going to config manager to change it 64 bit..


1>------ Build started: Project: Renderman, Configuration: Debug x64 ------
1>MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol WinMain referenced in function __tmainCRTStartup
1>C:\Users\Vigneshwar V\Documents\Visual Studio 2010\Projects\Renderman\x64\Debug\Renderman.exe : fatal error LNK1120: 1 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

vigneshwarv
05-27-2010, 02:59 PM
yeah this is why i asked for 64bit too. make sure if you changed your project that in your VC directories you've set the includes and libraries for 64bit projects. then everything should work

hope you will have as much fun as i do programming renderman ;-)


how to chngetthe lib n include also to 64 bit prjcts. I have changed to 64 bit project by going to properties->configuration manager.

please let me know

Advance thank u

Gravedigger
05-27-2010, 05:55 PM
when you change your vc directories you have a tab where you can change to 64 bit. this has nothing to do with your project setting but instead that you can set different include and library directories for 32bit and 64bit

you did set the project correctly if you have done it in the configuration manager. why does it have winmain as unresolved? your doing a dll right? so do you have configured the project to be dll (may have reset when changed to 64bit)

vigneshwarv
05-27-2010, 06:02 PM
when you change your vc directories you have a tab where you can change to 64 bit. this has nothing to do with your project setting but instead that you can set different include and library directories for 32bit and 64bit

you did set the project correctly if you have done it in the configuration manager. why does it have winmain as unresolved? your doing a dll right? so do you have configured the project to be dll (may have reset when changed to 64bit)

can u have a look at this screen,where can i find a tab to change to 64 bit

vigneshwarv
05-27-2010, 06:03 PM
can u have a look at this screen,where can i find a tab to change to 64 bit
http://yfrog.com/jm22783020p

Gravedigger
05-27-2010, 06:07 PM
ah ok see the problem. whe are talking of different vc directory settings. theres also a global setting so you don't have to set it again.

you find it under tools->options->projects and solutions->vc++ directories

vigneshwarv
05-27-2010, 06:10 PM
there is no option for that in visual studio 2010

http://yfrog.com/2076032216j

What am i to do :sad:

Gravedigger
05-27-2010, 06:18 PM
ok thats fine. haven't used this version but it should work anyway. make sure your directory is set correctly in this section

then what i think the error comes from is that you haven't set to dll, have you?
it should be in the property page under the tab general

vigneshwarv
06-11-2010, 01:31 PM
ok thats fine. haven't used this version but it should work anyway. make sure your directory is set correctly in this section

then what i think the error comes from is that you haven't set to dll, have you?
it should be in the property page under the tab general

What did you tell me to set..Is there anything that needs to be changed in here?
http://yfrog.com/mg39501836j

Gravedigger
06-12-2010, 11:00 AM
you should set the configuration type to dll

the most important stuff is happening in the linker->input tab for the errors your getting

vigneshwarv
06-12-2010, 11:15 AM
I have set the project to dll type in configurations

But still i get an error message
"Unable to start program c:\users\vigneshwarv\documents\visual studio 2010\Renderman2\x64\Debug\Renderman2.dll"

I have been messing this up for a long time..Please try to make it work for me

Sincerely,
Vigneshwarv

Gravedigger
06-12-2010, 11:57 AM
its difficult to help without having a look at all your settings

the error you're getting means that it does call your output file .dll but does not think its a dll (because it tries to execute it). a dll is not directly executed but called from other processes.

can you create a summary of your settings?

vigneshwarv
06-12-2010, 01:29 PM
its difficult to help without having a look at all your settings

the error you're getting means that it does call your output file .dll but does not think its a dll (because it tries to execute it). a dll is not directly executed but called from other processes.

can you create a summary of your settings?

1)Configuration type-Dynamic library dll
2) Project->r.clicked->VC++ directories
include directories C:\Program Files\3Delight\include;
library directories C:\Program Files\3Delight\libraries;

3) then linker-> Input-> Additional dependencies 3Delight.dll

4)then i copied a dll file from C:\Program Files\3Delight\lib to the project directory

5) then i set to 64 bit windows thing by going into properties

CGTalk Moderation
06-12-2010, 01:29 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.