compile a jitter exemple with the 8.2.0 Max SDK
I tried to compile the jit.hello example and I have a lot of interogations.
the firsts of them are the deprecated functions in the max.jit.hello.c file :
line 29 : 'setup' is deprecated.
line 32 : 'max_jit_classex_standard_wrap' is deprecated
...
at the end the project can be succesfully compiled but when I try to use the fresh new compiled object in Max ( 8.6.5 version and 9.0.8 ) the object is not loaded....
jit.hello : could not load due to incorrect architecture
Are the two things linked ? if this is the case, what are the functions we should use to update the code with the good functions?
Thanks a lot!
Laurent
Yes, there are unfortunately several examples in the sdk that use the old deprecated setup code. While it is still supported, you are probably better starting from an example that uses the updated API. Search the SDK for max_jit_class_obex_setup, e.g., for newer examples. If you provide more details on the external you are intending to develop, I'd be happy to suggest which example to look at.
That being said, incorrect architecture is usually the result of running arm64 on intel or vice versa. I'm not sure at what point the cmake scripts defaulted to building fat builds, but I'd recommend you clone the SDK from the github to get the latest : https://github.com/cycling74/max-sdk
I believe the latest version of the SDK will attempt to build Fat binaries if supported, as added in this commit : https://github.com/Cycling74/max-sdk/commit/40de718fe2d7bb655d9c349a17cbf8c26614ff38
Thank a lot for your answer Rob!
I think that my SDK version is the last one (the 8.2.0) and I had modified the the architecture to the (Apple silicon, Intel) in the Xcode project before trying the compilation.
I'll gonna have a look to the max_jit_class_obex_setup example and I'll let you know how it'll have turn...