Last active
May 2, 2019 07:16
-
-
Save terasakisatoshi/00fa7d7b81b7c6748f2298f6ff65bf6e to your computer and use it in GitHub Desktop.
Cross Compile Julia For RaspberryPi3 using Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JULIA_CPU_TARGET=cortex-a7 | |
MARCH=armv7-a | |
prefix=/home/pi/work/julia-1.1.0 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update | |
apt-get install build-essential libatomic1 python gfortran perl wget m4 cmake pkg-config git | |
git clone --depth=1 -b v1.1.0 https://github.com/JuliaLang/julia.git | |
cp Make.user julia/Make.user | |
Appendix
For raspberrypi zero user
$ sudo docker run --rm -it -v $PWD:/home/pi/work -w /home/pi/work balenalib/raspberry-pi:stretch bash
Make.user
JULIA_CPU_TARGET=arm1176jzf-s
make OPENBLAS_USE_THREAD=0
prefix=/home/pi/work/julia-1.1.0
Binary
here is my google drive link that provides julia binary (NOT OFFICIAL) for Raspberry Pi series
License
This instruction how to build julia is licensed under the terms of MIT License.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
References
julia/README.arm.md
Balena base images
Which image should i use ?
Both
Dockerfile of base-images/balena-base-images/armv7hf/debian/stretch
and
Dockerfile of base-images/balena-base-images/device-base/raspberrypi3/debian/stretch
came from same base image of
arm32v7/debian:stretch-slim
. This means we can use both.