Problems compiling with gen

Hello everybody, I’m trying to upload my first patches made with gen but I keep getting the same error with everything I do:
In file included from /tmp/owl/owl-build-vRzn5f/registerpatch.h:1:0, from ./Source/PatchProgram.cpp:8: /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp: In member function ‘void GenParameter::configure(CommonState*, PatchParameterId, const char*)’: /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:28:32: error: ‘getparametername’ is not a member of ‘gen’ if(strcasecmp(name, gen::getparametername(context, i)) == 0){ ^~~~~~~~~~~~~~~~ /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:28:32: note: suggested alternative: ‘getparameter’ if(strcasecmp(name, gen::getparametername(context, i)) == 0){ ^~~~~~~~~~~~~~~~ getparameter /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:30:10: error: ‘getparameterhasminmax’ is not a member of ‘gen’ if(gen::getparameterhasminmax(context, index)){ ^~~~~~~~~~~~~~~~~~~~~ /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:30:10: note: suggested alternative: ‘getparameter’ if(gen::getparameterhasminmax(context, index)){ ^~~~~~~~~~~~~~~~~~~~~ getparameter /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:31:15: error: ‘getparametermin’ is not a member of ‘gen’ min = gen::getparametermin(context, index); ^~~~~~~~~~~~~~~ /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:31:15: note: suggested alternative: ‘getparameter’ min = gen::getparametermin(context, index); ^~~~~~~~~~~~~~~ getparameter /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:32:15: error: ‘getparametermax’ is not a member of ‘gen’ max = gen::getparametermax(context, index); ^~~~~~~~~~~~~~~ /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:32:15: note: suggested alternative: ‘getparameter’ max = gen::getparametermax(context, index); ^~~~~~~~~~~~~~~ getparameter /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp: In member function ‘void GenButton::configure(CommonState*, PatchButtonId, const char*)’: /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:56:32: error: ‘getparametername’ is not a member of ‘gen’ if(strcasecmp(name, gen::getparametername(context, i)) == 0){ ^~~~~~~~~~~~~~~~ /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:56:32: note: suggested alternative: ‘getparameter’ if(strcasecmp(name, gen::getparametername(context, i)) == 0){ ^~~~~~~~~~~~~~~~ getparameter /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:58:10: error: ‘getparameterhasminmax’ is not a member of ‘gen’ if(gen::getparameterhasminmax(context, index)){ ^~~~~~~~~~~~~~~~~~~~~ /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:58:10: note: suggested alternative: ‘getparameter’ if(gen::getparameterhasminmax(context, index)){ ^~~~~~~~~~~~~~~~~~~~~ getparameter /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:59:15: error: ‘getparametermin’ is not a member of ‘gen’ min = gen::getparametermin(context, index); ^~~~~~~~~~~~~~~ /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:59:15: note: suggested alternative: ‘getparameter’ min = gen::getparametermin(context, index); ^~~~~~~~~~~~~~~ getparameter /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:60:15: error: ‘getparametermax’ is not a member of ‘gen’ max = gen::getparametermax(context, index); ^~~~~~~~~~~~~~~ /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:60:15: note: suggested alternative: ‘getparameter’ max = gen::getparametermax(context, index); ^~~~~~~~~~~~~~~ getparameter /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp: In constructor ‘GenPatch::GenPatch()’: /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:92:39: error: ‘getparametername’ is not a member of ‘gen’ registerParameter(params[i].id, gen::getparametername(context, params[i].index)); ^~~~~~~~~~~~~~~~ /tmp/owl/owl-build-vRzn5f/Source/GenPatch.hpp:92:39: note: suggested alternative: ‘getparameter’ registerParameter(params[i].id, gen::getparametername(context, params[i].index)); ^~~~~~~~~~~~~~~~ getparameter make[1]: *** [/tmp/owl/owl-build-vRzn5f/PatchProgram.o] Error 1 make: *** [patch] Error 2 ERROR: Patch build failed.
CLOSE

Moreover I don’t have a “slide” object inside of gen, any clue about what’s happening there?
Thank you in advance!

What version of Max are you using?

Hi, thank you for your answer, I’m currently using Max 7.0

I think at least v7.3 is required for gen export to OWL. I know there’s been many other improvements too - are you able to upgrade?

Yeah, you were right, with v7.3.4 it works perfectly well, thank you very much!

1 Like