Hi, I am trying to create node with cpp, I have never tried this before. I am getting error while compiling I don't know what mistake I am doing, I think I am getting linker error.
below is the drive link for my folders and cmakeFiles. (I have reduced folder structure. and I am using cmake file which chad has provided on git.) https://drive.google.com/drive/folders/1gAhdhoG6XOWM8uZorrupFYXnMLeQKP8b I am attaching my build log file to understand the error I am getting. Any help would be really appreciated. Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/7cbe5143-b31c-424b-8c34-abfb1c00714dn%40googlegroups.com.
[main] Building folder: spDev [build] Starting build [proc] Executing command: /usr/local/bin/cmake --build /Users/soham/Documents/work/riggingDev/spDev/build --config Debug --target all -- -j 14 [build] [ 50%] Linking CXX shared library libsp_riggingPlugins.dylib [build] Undefined symbols for architecture x86_64: [build] "MPxDeformerNode::weightValue(MDataBlock&, unsigned int, unsigned int)", referenced from: [build] sp_blendshape::deform(MDataBlock&, MItGeometry&, MMatrix const&, unsigned int) in sp_blendshape.cpp.o [build] "MPxDeformerNode::~MPxDeformerNode()", referenced from: [build] sp_blendshape::~sp_blendshape() in sp_blendshape.cpp.o [build] "MPxGeometryFilter::outputGeom", referenced from: [build] sp_blendshape::initialize() in sp_blendshape.cpp.o [build] "MPxGeometryFilter::accessoryNodeSetup(MDagModifier&)", referenced from: [build] vtable for sp_blendshape in sp_blendshape.cpp.o [build] "MPxGeometryFilter::setModifiedCallback(MSelectionList&, bool)", referenced from: [build] vtable for sp_blendshape in sp_blendshape.cpp.o [build] "MPxGeometryFilter::envelope", referenced from: [build] sp_blendshape::deform(MDataBlock&, MItGeometry&, MMatrix const&, unsigned int) in sp_blendshape.cpp.o [build] "MObject::MObject()", referenced from: [build] ___cxx_global_var_init.1 in sp_blendshape.cpp.o [build] "MObject::~MObject()", referenced from: [build] sp_blendshape::initialize() in sp_blendshape.cpp.o [build] ___cxx_global_var_init.1 in sp_blendshape.cpp.o [build] "MObject::operator=(MObject const&)", referenced from: [build] sp_blendshape::initialize() in sp_blendshape.cpp.o [build] "MPxDeformerNode::type() const", referenced from: [build] vtable for sp_blendshape in sp_blendshape.cpp.o [build] "MPxGeometryFilter::accessoryAttribute() const", referenced from: [build] vtable for sp_blendshape in sp_blendshape.cpp.o [build] "typeinfo for MPxDeformerNode", referenced from: [build] typeinfo for sp_blendshape in sp_blendshape.cpp.o [build] ld: symbol(s) not found for architecture x86_64 [build] clang: error: linker command failed with exit code 1 (use -v to see invocation) [build] make[2]: *** [rigging/sp_utils/sp_riggingNodesCPP/source/libsp_riggingPlugins.dylib] Error 1 [build] make[1]: *** [rigging/sp_utils/sp_riggingNodesCPP/source/CMakeFiles/sp_riggingPlugins.dir/all] Error 2 [build] make: *** [all] Error 2 [cmakefileapi-parser] Code model version (2.1) of cmake-file-api is unexpected. Expecting (2.0). IntelliSense configuration may be incorrect. [cmakefileapi-parser] Code model version (2.1) of cmake-file-api is unexpected. Expecting (2.0). IntelliSense configuration may be incorrect. [build] Build finished with exit code 2
