Not working with Mac M1 Chip
sebicas opened this issue · 9 comments
Hello, amazing plug-in thank so much!
But is not working with Apple M1 Silicion, here is the error:
Loaded: /Users/sebicas/X-Plane 12/Resources/plugins/rfxpl/64/mac.xpl (net.remoteflight.rfserver).
dlerror:dlopen(/Users/sebicas/X-Plane 12/Resources/plugins/xgs/64/mac.xpl, 0x0006): tried: '/Users/sebicas/X-Plane 12/Resources/plugins/xgs/64/mac.xpl' (mach-o file, but is an incompatible architecture (have (x86_64), need (arm64e)))
Any idea how can this be fixed?
I need a volunteer with appropriate knowledge and hardware to compile the plugin for all Apple platforms.
@hotbso I was just able to compile with -arch arm64
and works great on my MacBook Pro M1
Happy to contribute the compiled file if you like... let me know.
Thanks!
Send the binary (or a link) and will put it into the download kit.
So you used the Makefile.mac64 and just replaced the -arch argument?
So you used the Makefile.mac64 and just replaced the -arch argument?
Yes, correct... that is the only change I made
Will research a bit more what @Rodeo314 mentions and try to make it compatible with Intel+ARM
https://developer.apple.com/documentation/apple-silicon/building-a-universal-macos-binary
https://gist.github.com/Rodeo314/cbc1221e3e93ca100960236226902e3c quick and dirty example
any chance I can get a copy of the complied M1 version? I have no idea how to do this myself.