Makie Static Install

1.
Interaction

pkg"add PackageCompiler#sd-pkg3 StatsMakie#sd-toml MakieGallery#master GeometryTypes ImageCore ImageTransformations ImageMagick AbstractPlotting#master GLMakie#master Makie#master ColorTypes Colors ColorVectorSpace FixedPointNumbers Documenter ModernGL MeshIO ImageMagick ImageTransformations GDAL FileIO ImageFiltering DataFrames RDatasets BinaryProvider"
using PackageCompiler

additional_packages = PackageCompiler.recursive_install_dependencies(:MakieGallery)
precompile.jl
using PackageCompiler
path = precompile.jl
sys_so = PackageCompiler.default_sysimg_path() * "/sys.so"
run(`julia -C native --output-o sys-o.a -J $sys_so -O3 -g1 -e "Base.reinit_stdio(); include($(repr(path)))"`)
run(`g++ -m64 -shared -fPIC -L$(dirname(sys_so)) -o sys.so -Wl,--whole-archive sys-o.a -Wl,--no-whole-archive`)
mv("sys.so", sys_so, force = true)

run(`julia -C native --output-o sys-o.a -J $sys_so -O3 -g1 --project=/root/.julia/environments/v1.0/Project.toml -e "Base.reinit_stdio();Base.init_load_path();Base.init_depot_path();using Pkg"`)
VERSION |> println
using Libdl
sys_so = Libdl.dlpath("sys")
sys_so
julia -output-o sys-o.a -J /usr/local/julia/lib/julia/sys.so -e "Base.reinit_stdio(); Base.init_load_path();Base.init_depot_path(); using Pkg"
© 2018 Nextjournal GmbH