01-22-2022, 08:37 PM
(01-21-2022, 05:28 PM)Rick Johnson Wrote: Ah, that works! Do I understand correctly that these vectors no longer need to be sent to cleanupVector?
Correct
(01-21-2022, 05:28 PM)Rick Johnson Wrote: If a variable tempArt is defined an ArtSP and I use it as a prep_ object in Art.duplicate, is it OK to pass tempArt.get() as an Art*? I see that I need to be mindful that Art.duplicate returns a unique pointer, not a shared pointer.
It should be, yes.
(01-21-2022, 05:28 PM)Rick Johnson Wrote: I'm getting close to a successful Mac build, but am stumped by a few surprises. I started with the Panel sample project, and replaced the sources and headers with my 0.7.8 project files. The plugin I'm updating uses the SDK, so I've added those paths and defined HDI_CORE_DONT_DECLARE_AI_TYPES. That might affect these errors, but removing this flag and/or including headers with AI or HDI_CORE types doesn't seem to help.
hdicorePlugin.h:93:13: Unknown type name 'SPPluginRef'
hdicoreArt.h:327:15: Unknown type name 'AIArtHandle'
hdicoreArt.h:336:15: Unknown type name 'AISafeArtHandle'
You just need to #include the proper headers from the Adobe SDK that define/declare these things before you #include e.g. hdicoreArt.h