-
-
Notifications
You must be signed in to change notification settings - Fork 124
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
[Feature Request] Any chance for pre-built binaries for raspberry pi or arm? #25
Comments
Yeah, good idea! While we are at it, I should probably set up automated builds for various platforms (including ARM Linux and macOS). I am not familiar with raspberry pi. Are you using a 64-bit OS? |
All raspberry pi uses ARMv7. Would be great if you are able to do it!! Tested on my desktop, its everything i wanted. But having it run on my pi 24/7 is more ideal! |
I looked into it, and unfortunately I cannot provide an ARM binary at this moment :( In Crystal, in order to have a standalone binary with all libraries statically linked, the application must be compiled on Alpine. In our case, we need to compile it with an Alpine on ARM, but there's no official release for ARM systems yet. So to have a standalone binary, we would need to cross-compile and link on an Alpine system on ARM, which is not yet possible (see crystal-lang/crystal#5467). We can also cross-compile and link on other GNU-based Linux systems, but then the Mango binary would be dynamically linked and might not be portable. What I can do is create a special Dockerfile for ARM, and you can then follow the installation guide to install Mango with Docker. What do you think? |
Wow this will be great! I'm happy to test it for you |
Could you try and see if the following Dockerfile works?
The Dockerfile downloads the object file PS: The Docker image takes quite a while to build, so please be patient :P If it works I will further optimize it to improve the build time. |
This is after running cd crystal && git checkout 0.32.1 && make deps && cd .. |
Thanks! Please try the following (with updated llvm)
|
Hi, I got my hands on a raspberry pi 3 and tried the Dockerfile above. The docker image builds successfully, but Mango would crash whenever it queries the SQLite database. It works fine on amd64, so I guess it's caused by a bug in crystal-sqlite3 on ARM. I will try to submit an issue there, but I found another ARM related bug report from 2017 that's still open, so I am not sure if they will fix it. Unfortunately, there's nothing else I can do to help :( I will edit the README file to make it clear that ARM is not yet supported. |
That's a shame!! For the time being I'm using komga on my raspberry pi. Sadly, it doesn't have continuous scrolling unlike yours. =/ |
I guess that's the price I have to pay for using a "cool language" :P Anyway, I have submitted an issue there and will let you know if it's fixed or if they suggest any workaround. Closing this for now. |
Arm doesn't support crystal without jumping through hoops. Any chance you could create a binary for arm?
The text was updated successfully, but these errors were encountered: