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

Package request: Crystal #3401

Closed
ravener opened this issue Feb 27, 2019 · 8 comments · Fixed by #17428
Closed

Package request: Crystal #3401

ravener opened this issue Feb 27, 2019 · 8 comments · Fixed by #17428
Labels
crystal help wanted Help is wanted in order to solve the issue package request A new package was requested

Comments

@ravener
Copy link
Contributor

ravener commented Feb 27, 2019

It would be nice to have the crystal programming language compiler on Termux, it uses LLVM and is also self-hosted/bootstrapped but since Rust is on Termux while its also self-hosted it should also be possible, via cross-compilation and stuff.

Some hardcoded prefix paths would also need to be patched.
See also This PR for ideas of more patches that might be needed.

Website: https://crystal-lang.org
Source: https://github.com/crystal-lang/crystal
See also for building: Building, Required Libraries, Cross-Compilation

@ghost ghost added the package request A new package was requested label Feb 27, 2019
@PibePlayer
Copy link

I second the request

@ghost ghost added the help wanted Help is wanted in order to solve the issue label May 6, 2020
@Mhowser
Copy link

Mhowser commented Sep 11, 2020

I'm trying to build Crystal myself on termux, but I can't get all the required dependencies.

@alexanderadam
Copy link

alexanderadam commented Sep 12, 2020

I'm trying to build Crystal myself on termux, but I can't get all the required dependencies.

Okay, but maybe someone would have an idea if you would

  1. document the steps
  2. what's currently missing

@Mhowser
Copy link

Mhowser commented Sep 12, 2020

I followed the instructions here https://github.com/crystal-lang/crystal/wiki/All-required-libraries#general

When I got to sudo make install, I had to do ./configure --prefix=/data/data/com.termux/files/usr/bin and then do make install which worked.

I failed at getting the dependencies here https://github.com/crystal-lang/crystal/wiki/All-required-libraries#ubuntu

@antonl05
Copy link

antonl05 commented Aug 1, 2021

if you want to get the thing done, using alpinelinux from proot-distro run

apk add crystal shards musl-dev

musl-dev is the culprit that solves all the missing .so file errors

@HertzDevil
Copy link
Contributor

A while ago I managed to get it working (Crystal could even build itself on Termux), but I forgot the exact list of dependencies: https://forum.crystal-lang.org/t/running-crystal-on-termux/3880

leap0x7b added a commit to leap0x7b/termux-packages that referenced this issue Dec 17, 2021
Fixes termux#3401

Signed-off-by: Leap of Azzam <leapofazzam@gmail.com>
@leap0x7b

This comment was marked as abuse.

@HertzDevil
Copy link
Contributor

HertzDevil commented Mar 9, 2023

Heads up: Crystal's master branch now has support for AArch64 Android (via --target=aarch64-linux-android), but not LLVM 15+ nor API levels 24 - 27 yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crystal help wanted Help is wanted in order to solve the issue package request A new package was requested
Projects
None yet
8 participants