Re: Compiling OpenShadingLanguage under Windows
Wormszer <worm...@...>
I finally have it all building on windows and can run the testshade program.
toggle quoted message
Show quoted text
I had to create some new OSL_DLLPUBLIC defines and place them around, OSLCOMP_DLLPUBLIC, OSLEXEC_DLLPUBLIC liboslcomp exports some of the base types, and common functions. Basically if oslcomp uses it, then it exports it and anything that was duplicated in oslexec now imports it from oslcomp. liboslexec uses the objects exported from oslcomp, typespec and a few others. liboslquery now has dependencies on oslexec, oslcomp. I don't believe this will affect the GCC build since they are defined to nothing, other than the source has more OSLCOMP_DLLPUBLIC, OSLEXEC_DLLPUBLIC in it. I did move typespec.cpp to liboslcomp since its used there first. Due to the way testshader is it makes use of oslexec private includes and I had to basically export a bunch of classes in oslexec private and public headers. I guess for a test program this is ok, but to me it seems like its breaking the rules, by using classes in oslexec_pvt.h, and if they are indeed public should be moved to the public header PVT does mean private right? :). I am probably going to redo everything I did and then submit a patch. If anyone else has found any issues or a better solution for some of the issues in this thread please let me know. Jeremy
On Fri, Jan 22, 2010 at 12:15 PM, Wormszer <worm...@...> wrote: I have been trying to get the shaders test to build but I have run into lots of issues with linking dependencies, exports imports etc. |
|