-
Notifications
You must be signed in to change notification settings - Fork 56
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
Install and Use on Apple Silicon #109
Comments
Hi! Great app idea! I'd love to help as I've been looking for an app like this. Have you tried If you're willing to use Docker in unusual ways, maybe this can interest you: https://github.com/tonistiigi/xx#external-sdk-support |
The first issue is that I can't install the toolchain locally on and ARM system.
Which is kinda expected, given the Short of having an |
@GioCirque - the readme has two ways of building libremarkable:
You shouldn't need the remarkable toolchain at all for 2! Mostly all you need is a functional docker setup, which ought to work fine on M1. I'll second the recommendation of (Rebuilding the toolchain for ARM sounds like a pain in comparison; glad you shouldn't have to!) |
I see, I might have conflated two issues. When I look at other projects using [target.armv7-unknown-linux-gnueabihf]
linker = "/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc"
rustflags = [
"-C", "link-arg=-march=armv7-a",
"-C", "link-arg=-marm",
"-C", "link-arg=-mfpu=neon",
"-C", "link-arg=-mfloat-abi=hard",
"-C", "link-arg=-mcpu=cortex-a9",
"-C", "link-arg=--sysroot=/usr/local/oecore-x86_64/sysroots/cortexa9hf-neon-oe-linux-gnueabi",
]
|
Using a fresh project with a normal
I think this is something that a toolchain would provide, and I assumed the |
Just |
Then I guess this
|
Ah interesting. I've found cross-rs/cross#508 (comment) which mention you need to bring the macOS SDK yourself (given licensing). The |
I was able to skip those steps when I followed the earlier advice of using cross without all the cargo config. It's now building, running on rm2, and rendering basic app chrome. I need to tweak the CI of it because warnings are errors right now ... some yet unused functions. Thanks for all of your help getting it running! |
Hi! Thanks for all the work you've done on this library. I spent the day trying to make sense of it on an
Apple M1
chip. I thought it would be easier since the ARM architecture seems to run through it all. Unfortunately, the scripts for the toolchain installation all require anx86_64
architecture. I spent some time googling. When I didn't find much, I just jumped into creating anx86_64
development container in VS Code using docker desktop for Mac. I got pretty far but couldn't make it work out in the end. I've made the repo for this public if anyone wants to take a look.GioCirque/harmonizers
I would appreciate any pointers, and would be willing to author an Apple Silicon Setup Guide for the readme.
The text was updated successfully, but these errors were encountered: