hdBlackbird icon indicating copy to clipboard operation
hdBlackbird copied to clipboard

Cannot build with OSL enabled Cycles

Open trebconnell opened this issue 4 years ago • 2 comments

Need to link against OSL libs

trebconnell avatar Aug 20 '20 19:08 trebconnell

I have this working, but it was non-trivial because OSL and Cycles link to static OIIO and Usd links to dynamic OIIO.

Previously I had switched Cycles to also link to dynamic OIIO, but OSL with Cycles is pre-built to static link OIIO.

I found a somewhat painful workaround, but I'm going to try again for a cleaner one...

trebconnell avatar Aug 21 '20 15:08 trebconnell

@trebconnell Can't you link against statically built cycles libs?

There has been some considerable changes on the Cycle side recently and except openvdb and tbb, everything seems statically linkable:

I also wrote a Github CI to build Cycles, maybe this can help you there: https://github.com/grische/cycles/actions/runs/240177182

grische avatar Sep 06 '20 00:09 grische