redox-os / orbtk

The Rust UI-Toolkit.
MIT License
3.78k stars 188 forks source link

fix compile on m1 mac #493

Closed HanYunChenLuo closed 1 year ago

HanYunChenLuo commented 2 years ago

Context:

fix compile on m1 mac.

jackpot51 commented 2 years ago

This should be fixed already if you do a cargo update and pull the latest orbclient

HanYunChenLuo commented 2 years ago

This should be fixed already if you do a cargo update and pull the latest orbclient

I Just do the action you mentioned. But still has a error with log below. this commit is for this error.

= note: Undefined symbols for architecture x86_64: "_CHHapticDynamicParameterIDHapticIntensityControl", referenced from: -[SDL_RumbleMotor setIntensity:] in libsdl2_sys-d99d3cb13bd69586.rlib(SDL_mfijoystick.m.o) "_CHHapticEventParameterIDHapticIntensity", referenced from: -[SDL_RumbleMotor setIntensity:] in libsdl2_sys-d99d3cb13bd69586.rlib(SDL_mfijoystick.m.o) "_CHHapticEventTypeHapticContinuous", referenced from: -[SDL_RumbleMotor setIntensity:] in libsdl2_sys-d99d3cb13bd69586.rlib(SDL_mfijoystick.m.o) "_OBJCCLASS$_CHHapticDynamicParameter", referenced from: objc-class-ref in libsdl2_sys-d99d3cb13bd69586.rlib(SDL_mfijoystick.m.o) "_OBJCCLASS$_CHHapticEvent", referenced from: objc-class-ref in libsdl2_sys-d99d3cb13bd69586.rlib(SDL_mfijoystick.m.o) "_OBJCCLASS$_CHHapticEventParameter", referenced from: objc-class-ref in libsdl2_sys-d99d3cb13bd69586.rlib(SDL_mfijoystick.m.o) "_OBJCCLASS$_CHHapticPattern", referenced from: objc-class-ref in libsdl2_sys-d99d3cb13bd69586.rlib(SDL_mfijoystick.m.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: could not compile orbtk due to previous error

jackpot51 commented 2 years ago

Please try a cargo update again. orbclient should be at version 0.3.35 to have the fix.

hardBSDk commented 1 year ago

Redox moved to GitLab years ago, thus if you still want to merge it, move this pull request to there.

If you still want to contribute to Redox, talk with us in the Matrix chat.