ynput / ayon-usd-resolver

Home of AYON USD resolver plugin
Apache License 2.0
5 stars 0 forks source link

Version of boost lib not compliant with Houdini's boost (1.72) #4

Closed bhaveshpandey closed 1 year ago

bhaveshpandey commented 1 year ago

The version of boost libs used for the project is not same as that of Houdini. I think houdini uses 1.72.0-8 which doesn't have any headers for json/*.

If the plugin is required to be used in Houdini, the resolver needs to be compiled with same version of boost lib. We have been able to build this for stand-alone USD but not for houdini.

Minkiu commented 1 year ago

Does adding the compiled standalone to the PXR_PLUGINPATH_NAME within the houdini environment makes Houdini crash or hang?

~Which version of Houdini is this?~ According to the vfxplatform, boost-1.76+ should have been in place since year 2021 You are right, they use 1.72 https://www.sidefx.com/docs/houdini/licenses/index.html even tho it's not really compliant with vfxplatform 2022

Update: Hey, so just tested it and it's safe to remove the #include <boost/json.hpp> in the https://github.com/ynput/ayon-usd-resolver/blob/main/src/AYON_AssetResolvingProvider_REST.h#L9 which I believe I must have left when iterating on a previous approach, and the <boost/property_tree/json_parser.hpp> its in the above version (since 1.67) and the resolver should still work.

Minkiu commented 1 year ago

Hello again,

I tested this, and I pushed the new changes, you should be able to build it with USD now.

I'll close the issue, but feel free to comment if there's any other problem.