I have a translator that used to work fine when compiling with gcc 4.9.2, but when compiled with gcc 5.30 or gcc 6.3.0, crashes maya when loaded.
It seems very similar in nature to:
https://answers.arnoldrenderer.com/questions/886/mtoa-api-cextensionattrhelper-error.html
The NodeInitializer method of the translator is:
void CABCViewerTranslator::NodeInitializer(CAbTranslator context)
{
CExtensionAttrHelper helper(context.maya, "procedural"); CShapeTranslator::MakeCommonAttributes(helper);
CAttrData data;
data.defaultValue.BOOL() = false;
data.name = "overrideGlobalShader";
data.shortName = "ogs"; helper.MakeInputBoolean(data) ;
}
When compiling with gcc 5/6, commenting out CShapeTranslator::MakeCommonAttributes(helper);, allows the translator to load fine.
Compiling against Arnold 5.0.2.3, MtoA 1.2.0.2 and Maya 2018.
Hi, MtoA for Maya 2018 is compiled with gcc 4.8.2, and since there are STL symbols in the API it's normal that it breaks with gcc 5/6.
(btw, I'm assuming you meant MtoA 2.1.0.2 and not 1.2.0.2 which is several years old)
Hi Sebastien,
Yes, I meant 2.1.0.2!
I thought it might have something to do with the compiler that you use, so I grabbed the HB-2.1.0.2 tarball from gitlab and compiled it with gcc 5.3.0. Perhaps that doesn't remove those STL symbols though.
Mtoa loaded and rendered ok in maya, but the problem with the translator persisted.
Is there anything to be done about this?
thanks