HDK: compiled plugins compatibility with later minor versions possible?

   1826   3   1
User Avatar
Member
30 posts
Joined: Oct. 2011
Offline
Is it possible to compile a plugin with a earlier minor build release (ex. 16.0.557) and use it with a later release of the same major version (ex. 16.0.600)? If so, what would one need to include?

Cheers
Edited by AlexLombardi - May 6, 2017 18:33:47
User Avatar
Member
1908 posts
Joined: Nov. 2006
Offline
It is possible but inconsistent between builds:

http://www.sidefx.com/docs/hdk/_h_d_k__intro__compatibility.html [sidefx.com]
Graham Thompson, Technical Artist @ Rockstar Games
User Avatar
Member
1743 posts
Joined: March 2012
Offline
We try to avoid too many binary compatibility breaks between builds, but it is often necessary to break binary compatibility in order to fix serious bugs.

If the HDK_API_VERSION value Graham linked to changes, you may or may not still be able to use the plugin built with the old version, depending on what interfaces your plugin uses and what structures or interfaces changed. For example, if the VRAY_PixelFilter structure changes, you wouldn't need to rebuild an HDK SOP, but you would probably need to rebuild an HDK pixel filter. If UT_PageArray changes, (which I think it did a few months ago, to fix a doubling of memory use on Linux in some fluid sims), pretty much every HDK SOP needs to be rebuilt, but if GU_IsoMeta changed, (which probably won't happen until the next major version), only HDK SOPs that use it would need to be rebuilt.
Writing code for fun and profit since... 2005? Wow, I'm getting old.
https://www.youtube.com/channel/UC_HFmdvpe9U2G3OMNViKMEQ [www.youtube.com]
User Avatar
Member
30 posts
Joined: Oct. 2011
Offline
great, thanks guys!
Will try out the HDK_API_VERSION Graham posted.
Cheers
  • Quick Links