LexActivator_thunk_maci64.dylib for ARM

Is there a LexActivator_thunk dylib that is compatible with ARM macs?

Error using loadlibrary
There was an error loading the library “libs/clang/arm64/LexActivator.dylib”
dlopen(libs/clang/arm64/LexActivator.dylib, 0x0006): tried: ‘libs/libs/clang/arm64/LexActivator.dylib’ (fat file, but missing compatible
architecture (have ‘arm64’, need ‘x86_64’)), ‘libs/clang/arm64/LexActivator.dylib’ (no such file), ‘libs/clang/arm64/LexActivator.dylib’ (fat file, but missing compatible architecture (have ‘arm64’, need ‘x86_64’))

Error in FCMPASS_License_Registration (line 34)
loadlibrary(sSharedLibrary,@LexActivatorPrototype);

Error in Master_Startup (line 38)
[status] = FCMPASS_License_Registration(app,startupData);

Hi,

It seems your app is looking for x86_64 architecture and you are passing the path of arm64 arch dylib. Try passing x86_64 lib, or the universal build which contains both the archs.

Hi,
have a (maybe) similar issue with matlab R2023b on macOS (Sonoma 14.3, Apple M2, Xcode15).

The matlab code:

sHeaderFile = "/LexActivator-Mac/headers/LexActivator.h";
sStatusHeaderFile = "LexActivator-Mac/headers/LexStatusCodes.h";
sSharedLibrary = 'LexActivator-Mac/libs/clang/arm64/LexActivator';
loadlibrary(sSharedLibrary,sHeaderFile, 'addheader',sStatusHeaderFile);

The error:

Error using loadlibrary
Building LexActivator_thunk_maca64 failed.  Compiler output is:
/usr/bin/xcrun -sdk macosx14.0 clang -I"/Applications/MATLAB_R2023b.app/extern/include" -fno-common -arch arm64
-mmacosx-version-min=11.0 -fexceptions -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -fwrapv
-I"/Users/dyna/Library/CloudStorage/Dropbox/052010-DRN-FIM-ACS+Service-WORK/BDT_repo/cryptlex"
-I"/Users/dyna/Library/CloudStorage/Dropbox/052010-DRN-FIM-ACS+Service-WORK/BDT_repo/cryptlex/LexActivator-Mac/headers"
"LexActivator_thunk_maca64.c" -o "LexActivator_thunk_maca64.dylib" -bundle
LexActivator_thunk_maca64.c:33:30: error: expected parameter declarator
EXPORT_EXTERN_C  (visibility("default")))intSetProductFile(CSTRTYPEfilePathThunk(void fcn(),const char *callstack,int
stacksize)
                             ^
LexActivator_thunk_maca64.c:33:30: error: expected ')'
LexActivator_thunk_maca64.c:33:29: note: to match this '('
EXPORT_EXTERN_C  (visibility("default")))intSetProductFile(CSTRTYPEfilePathThunk(void fcn(),const char *callstack,int
stacksize)
                            ^
LexActivator_thunk_maca64.c:33:41: error: expected function body after function declarator
EXPORT_EXTERN_C  (visibility("default")))intSetProductFile(CSTRTYPEfilePathThunk(void fcn(),const char *callstack,int
stacksize)
                                        ^
LexActivator_thunk_maca64.c:39:1: error: extraneous closing brace ('}')
}
^
LexActivator_thunk_maca64.c:42:30: error: expected parameter declarator
EXPORT_EXTERN_C  (visibility("default")))intSetProductData(CSTRTYPEproductDataThunk(void fcn(),const char *callstack,int
stacksize)
                             ^
LexActivator_thunk_maca64.c:42:30: error: expected ')'
LexActivator_thunk_maca64.c:42:29: note: to match this '('
EXPORT_EXTERN_C  (visibility("default")))intSetProductData(CSTRTYPEproductDataThunk(void fcn(),const char *callstack,int
stacksize)
                            ^
LexActivator_thunk_maca64.c:42:41: error: expected function body after function declarator
EXPORT_EXTERN_C  (visibility("default")))intSetProductData(CSTRTYPEproductDataThunk(void fcn(),const char *callstack,int
stacksize)
                                        ^
LexActivator_thunk_maca64.c:48:1: error: extraneous closing brace ('}')
}
^
LexActivator_thunk_maca64.c:51:30: error: expected parameter declarator
EXPORT_EXTERN_C  (visibility("default")))intSetDataDirectory(CSTRTYPEdirectoryPathThunk(void fcn(),const char
*callstack,int stacksize)
                             ^
LexActivator_thunk_maca64.c:51:30: error: expected ')'
LexActivator_thunk_maca64.c:51:29: note: to match this '('
EXPORT_EXTERN_C  (visibility("default")))intSetDataDirectory(CSTRTYPEdirectoryPathThunk(void fcn(),const char
*callstack,int stacksize)
                            ^
LexActivator_thunk_maca64.c:51:41: error: expected function body after function declarator
EXPORT_EXTERN_C  (visibility("default")))intSetDataDirectory(CSTRTYPEdirectoryPathThunk(void fcn(),const char
*callstack,int stacksize)
                                        ^
LexActivator_thunk_maca64.c:57:1: error: extraneous closing brace ('}')
}
^
LexActivator_thunk_maca64.c:60:30: error: expected parameter declarator
EXPORT_EXTERN_C  (visibility("default")))intSetDebugMode(uint32_tenableThunk(void fcn(),const char *callstack,int
stacksize)
                             ^
LexActivator_thunk_maca64.c:60:30: error: expected ')'
LexActivator_thunk_maca64.c:60:29: note: to match this '('
EXPORT_EXTERN_C  (visibility("default")))intSetDebugMode(uint32_tenableThunk(void fcn(),const char *callstack,int
stacksize)
                            ^
LexActivator_thunk_maca64.c:60:41: error: expected function body after function declarator
EXPORT_EXTERN_C  (visibility("default")))intSetDebugMode(uint32_tenableThunk(void fcn(),const char *callstack,int
stacksize)
                                        ^
LexActivator_thunk_maca64.c:66:1: error: extraneous closing brace ('}')
}
^
LexActivator_thunk_maca64.c:69:30: error: expected parameter declarator
EXPORT_EXTERN_C  (visibility("default")))intSetCustomDeviceFingerprint(CSTRTYPEfingerprintThunk(void fcn(),const char
*callstack,int stacksize)
                             ^
LexActivator_thunk_maca64.c:69:30: error: expected ')'
LexActivator_thunk_maca64.c:69:29: note: to match this '('
EXPORT_EXTERN_C  (visibility("default")))intSetCustomDeviceFingerprint(CSTRTYPEfingerprintThunk(void fcn(),const char
*callstack,int stacksize)
                            ^
LexActivator_thunk_maca64.c:69:41: error: expected function body after function declarator
EXPORT_EXTERN_C  (visibility("default")))intSetCustomDeviceFingerprint(CSTRTYPEfingerprintThunk(void fcn(),const char
*callstack,int stacksize)
                                        ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.


Error in check_license_0_mac (line 16)
   loadlibrary(sSharedLibrary,sHeaderFile, 'addheader',sStatusHeaderFile);
 

I tried also with matlab R2022b and ‘universal’ or ‘x86_64’ libs. same error.

Thanks for helping if possible.

Hi,

Please use the header file from matlab example:

The header in the SDK has some symbols which matlab doesn’t support.