Re: Compiling OpenShadingLanguage under Windows
toggle quoted message Show quoted text
I have mcpp integrated into the compiler now. Working like CPP and writing everything to stdout.
A few things, the binary available for download at least on windows doesn't support forcing an include file.
So i had to build it from source, luckily it wasn't to difficult to create a new project for it.
I built it as VS for VS. Now that I think about it I bet I could build it as VS for GCC so that it would support the same command line options.
Another weird issue was I guess the lexer doesn't support c-style /* comments? These might not be defined in the osl language, and if so probably should be removed from the stdosl.h.
Its the only difference i could see, that could of been causing the error.
CL would remove the */ */ comments at the end of the math defines in stdosl.h even though i told it to preserve comments.
mcpp when i told it to leave comments would actually leave them in there(seems like correct behavior), and then the lexer would crash.
I am not sure why comments are needed really at this point, and i think i must of included them for my own debugging, i don't think CPP was set to output them.
Thanks for the suggestions on a easier solution to the pre-processor issue.
I looked real quick for the boost but mcpp seemed easier since i could just get a binary and set it in my path. (but then i had to rebuild it)
Well now to see if I can get anything to happen with my compiled shaders.
On Wed, Jan 20, 2010 at 9:03 PM, Wormszer <worm...@...> wrote:
I am fine with either one. I think having something embedded or buildable would be usefull.