PDA

View Full Version : compiling MR Shader error ...??


devdoka
06-30-2004, 02:14 AM
Hi all,
So I finally intalled the MS Visual C++ Toolkit 2003 .
I tried to compile the gg_ambientoclusion.cpp from mr_classes.

This is what i typed in the command prompt :

cl /c /MD /nologo gg_ambientoclusion.cpp

and these are the errors i`m getting :


C:\Program Files\Microsoft Visual C++ Toolkit 2003\compiling test>cl /c /MD /nologo gg_ambientocclusion.cpp
gg_ambientocclusion.cpp
C:\Program Files\Microsoft Visual C++ Toolkit 2003\include\ostream(574) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
C:\Program Files\Microsoft Visual C++ Toolkit 2003\include\istream(828) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
C:\Program Files\Microsoft Visual C++ Toolkit 2003\include\istream(1064) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
c:\Program Files\Microsoft Visual C++ Toolkit 2003\compiling test\mrStream.h(45) : fatal error C1083: Cannot open include file: 'geoshader.h': No such file or directory


anyone knows what am i doing wrong ?

TIA

P.S
I`m using the MS VC++ Tollkit 2003 and Maya 5.01
.

thebigMuh
06-30-2004, 02:56 AM
Hehe, I know this might sound stupid, but...

...did you try doing what the error tells you, and specify /EHsc as command line option?

Ciao, ¡muh!

devdoka
06-30-2004, 03:19 AM
Hey stop laughing at me !!! :) :scream: :blush:

Just tried what you said and didnt work.
TheBibMuh, how would you do this,on the command prompt ?

As you all now I have zero knowledge on this subject
so please....pardon me.
Oh man,this is a big mess,and no one seems to help on this topic,
like its a conspiracy theory or something.....


.

Pixero
06-30-2004, 05:56 AM
I have a compiled version of the gg_shaders here:
www.sandstrom.on.to (http://www.sandstrom.on.to/)

Edit: A friend of mine helpt me to compile the gg_shaders with visual studio net 2003.
Im not sure it will work with the Visual C++ Toolkit.
It didnt work with Visual C++ 6.

If you want to learn to write and compile shaders take a look here:
www.anibbu.com/hwee/mentalray/ (http://www.anibbu.com/hwee/mentalray/)

devdoka
06-30-2004, 06:12 AM
thx pixero!
I know you have it compiled,
however i`m doing it for learning purposes.
and yes this is the page (http://www.anibbu.com/hwee/mentalray/)
i`m getting help from, but i get errors no matter what.Even when i do the tutorials in the site.
Probably i`m doing something wrong.
so far `im interesting in compiling(cause writing its hard for me now,no time to learn c)

gga
07-01-2004, 12:57 AM
The warnings you get are more or less ignorable. They mean you have turned C++ exceptions off. Turning them off can make code a tad faster, but if some C++ code raises an exception, the result will most likely be undefined behavior (read crash) instead of a std. microsoft pop up problem window, previous to a crash.

Your shader is simply not compiling because you are missing one of mray's standard include files (geoshader.h). In maya5, alias forgot to include some files. You can get them from their website in the support area or from mental images ftp site. You should then place it in the same place you keep shader.h.

CGTalk Moderation
01-18-2006, 03:00 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.