eliemichel / OpenMfxForBlender

A branch of Blender featuring an OpenMfx modifier
Other
176 stars 19 forks source link

Build fails on Linux Mint 20 #80

Closed Swexti closed 1 year ago

Swexti commented 1 year ago

Hello! Trying to build this on my machine, but It doesn't want to build it.

Log file (enough of it, i think?), I'd be happy to share the rest of the log file, but there doesn't seem to be anything important there:

/home/swexti/git/blender/OpenMfxForBlender/intern/openmfx/blender/intern/BlenderMfxHost.cpp: In member function ‘OfxStatus BlenderMfxHost::setupRequestedAttributes(OfxMeshHandle, const std::vector<OfxAttributeStruct>&, CallbackList&) const’:
/home/swexti/git/blender/OpenMfxForBlender/intern/openmfx/blender/intern/BlenderMfxHost.cpp:935:35: error: ‘struct OfxAttributeSetStruct’ has no member named ‘ensure’
  935 |     int idx = ofxMesh->attributes.ensure(requestedAttrib.index());
      |                                   ^~~~~~
/home/swexti/git/blender/OpenMfxForBlender/intern/openmfx/blender/intern/BlenderMfxHost.cpp:936:24: error: no match for ‘operator[]’ (operand types are ‘OfxAttributeSetStruct’ and ‘int’)
  936 |     ofxMesh->attributes[idx].deep_copy_from(requestedAttrib);
      |                        ^
/home/swexti/git/blender/OpenMfxForBlender/intern/openmfx/blender/intern/BlenderMfxHost.cpp: In member function ‘OfxStatus BlenderMfxHost::extractExpectedAttributes(OfxMeshHandle, const std::vector<OfxAttributeStruct>&, const std::vector<blender::bke::OwnedAnonymousAttributeID<true> >&, Mesh*, const BlenderMfxHost::ElementCounts&) const’:
/home/swexti/git/blender/OpenMfxForBlender/intern/openmfx/blender/intern/BlenderMfxHost.cpp:1080:35: error: ‘struct OfxAttributeSetStruct’ has no member named ‘find’
 1080 |     int idx = ofxMesh->attributes.find(key);
      |                                   ^~~~
/home/swexti/git/blender/OpenMfxForBlender/intern/openmfx/blender/intern/BlenderMfxHost.cpp:1085:62: error: no match for ‘operator[]’ (operand types are ‘OfxAttributeSetStruct’ and ‘int’)
 1085 |     const OfxAttributeStruct &ofxAttrib = ofxMesh->attributes[idx];
      |                                                              ^
/home/swexti/git/blender/OpenMfxForBlender/intern/openmfx/blender/intern/BlenderMfxHost.cpp:1086:54: error: no match for ‘operator[]’ (operand types are ‘const OfxPropertySetStruct’ and ‘const char [22]’)
 1086 |     char *ofxAttribData = (char*)ofxAttrib.properties[kOfxMeshAttribPropData].value[0].as_pointer;
      |                                                      ^
/home/swexti/git/blender/OpenMfxForBlender/intern/openmfx/blender/intern/BlenderMfxHost.cpp:1087:47: error: no match for ‘operator[]’ (operand types are ‘const OfxPropertySetStruct’ and ‘const char [24]’)
 1087 |     int ofxAttribStride = ofxAttrib.properties[kOfxMeshAttribPropStride].value[0].as_int;
      |                                               ^
make[3]: *** [intern/openmfx/blender/CMakeFiles/bf_intern_openmfx.dir/build.make:76: intern/openmfx/blender/CMakeFiles/bf_intern_openmfx.dir/intern/BlenderMfxHost.cpp.o] Error 1
make[2]: *** [CMakeFiles/Makefile2:3781: intern/openmfx/blender/CMakeFiles/bf_intern_openmfx.dir/all] Error 2
make[1]: *** [Makefile:166: all] Error 2
make: *** [GNUmakefile:349: all] Error 2

Tried building with ninja by adding the ninja tag after it, same issue.

Not sure what else to add here, I usually do some troubleshooting myself before making a GitHub issue, but this doesn't exactly look like an issue I can troubleshoot nor fix, since I have never done any programming (except for VEX in Houdini lol) in forever.

eliemichel commented 1 year ago

Hey sorry for not getting back to you earlier, I was in the middle of an update of the upstream OpenMfx project. Could you try again with the last release tag mfx-v0.16.0-rc1?

tkarabela commented 1 year ago

For the record I was able to build mfx-v0.16.0-rc1 on Ubuntu 20.04.

Swexti commented 1 year ago

Yup, that works! Thanks! Closing this now.