Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple M1 chip issues #8

Open
The-MG opened this issue Jun 11, 2021 · 2 comments
Open

Apple M1 chip issues #8

The-MG opened this issue Jun 11, 2021 · 2 comments

Comments

@The-MG
Copy link

The-MG commented Jun 11, 2021

When doing the command make all, it doesn't do anything, instead, it gives out this error
/Library/Developer/CommandLineTools/usr/bin/make -C Util all make[1]: Nothing to be done for 'all'. /Library/Developer/CommandLineTools/usr/bin/make -C CycleQuickLooks all clang -o mac.xpl plugin.c -Wall -DAPL -O2 ../XP/Libs/XPLM ../Util/util.a -dynamiclib -fvisibility=hidden plugin.c:89:21: warning: cast to smaller integer type 'int' from 'void *' [-Wvoid-pointer-to-int-cast] int index = (int) param; ^~~~~~~~~~~ 1 warning generated. ld: warning: ignoring file ../XP/Libs/XPLM, building for macOS-arm64 but attempting to link with file built for macOS-x86_64 Undefined symbols for architecture arm64: "_XPLMCommandOnce", referenced from: _cycle_quick_look_cb in plugin-84ff49.o "_XPLMCreateCommand", referenced from: _cycle_quick_look_cb in plugin-84ff49.o _cmd_create in util.a(cmd.o) "_XPLMDebugString", referenced from: __log in util.a(log.o) __debug in util.a(log.o) "_XPLMEnableFeature", referenced from: _XPluginStart in plugin-84ff49.o _get_plugin_dir in util.a(path.o) _get_data_path in util.a(path.o) "_XPLMGetMyID", referenced from: _get_plugin_dir in util.a(path.o) _get_plugin_name in util.a(path.o) _get_data_path in util.a(path.o) "_XPLMGetNthAircraftModel", referenced from: _get_quick_looks in plugin-84ff49.o "_XPLMGetPluginInfo", referenced from: _get_plugin_dir in util.a(path.o) _get_plugin_name in util.a(path.o) _get_data_path in util.a(path.o) "_XPLMRegisterCommandHandler", referenced from: _cmd_create in util.a(cmd.o) "_XPLMUnregisterCommandHandler", referenced from: _cmd_free in util.a(cmd.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[1]: *** [mac.xpl] Error 1 make: *** [CycleQuickLooks] Error 2

Any ideas? Or fixes?

@matatata
Copy link

Your machine tries to build the arm64 architecture, but the SDK ist intel only. You either need to switch to the latest SDK (XP12) which includes arm64 support or convince make to build x84_64.

@matatata
Copy link

I've upgraded to the newest SDK in my fork https://github.com/matatata/XPPlugins. It builds an runs natively on arm64 in XP12. I only tried BEtterMouseYoke, CycleQuickLooks and MouseButtons (I had to make a fix in the code)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants