Unable to build plug-ins that use MPxGeometryFilter / MPxDeformerNode

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi ,
I have a bit of experience with the Maya C++ API and want to keep learning more so I'm trying to set it up a project on my new computer.
I've managed to setup my configuration so it builds the FootPrintNode plugin from the Maya DevKit but unfortunately this is not the case for plugin-ins that use MPxGeometryFilter / MPxDeformerNode. (like the Y-Twist example plugin).
It keeps throwing LNK errors at me like this on (this one is from MPxGeometryFilter but they are similar for MPxDeformerNode) :
Severity Code Description Project File Line Suppression State Error LNK2019 unresolved external symbol "__declspec(dllimport) public: virtual __cdecl Autodesk::Maya::OpenMaya20190000::MPxGeometryFilter::~MPxGeometryFilter(void)" (__imp_??1MPxGeometryFilter@OpenMaya20190000@Maya@Autodesk@@UEAA@XZ) referenced in function "public: virtual __cdecl yTwist::~yTwist(void)" (??1yTwist@@UEAA@XZ) testProject C:\Users\User\devkitBase\plug-ins\plug-ins\testProject\testProject\yTwistNode.obj 1
I'm unable to figure out why it doesn't work specifically with MPxDeformerNode/MPxGeometryFilter while MPxNode , MPxLocatorNode etc all work.
My include directories is : C:\Program Files\Autodesk\Maya2019\include; while my additional library directories is : C:\Program Files\Autodesk\Maya2019\lib; .
The additional dependencies in Linker->input are :
OpenMaya.lib
OpenMayaRender.lib
OpenMayaUI.lib
Foundation.lib
opengl32.lib
(the above settings are all set for "All configurations"/ "All platforms" in visual studio)
I've been staring at this for quite a bit of time today and haven't found the reason for the errors even though I'm aware that it's probably something small/stupid., especially since this all works on my other computer.
Hopefully somebody here can tell me what I'm doing wrong.
Thank you !