Use BinaryBuilder.jl to package dependencies

Open
#447 80 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
28/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
julia
Domain
build-system

Research direction

Start with GMT.jl's dependency-loading path and the GMT tests, then review how BinaryBuilder.jl packages GMT and its native dependencies. Done means users can install the package with GMT and its dependencies shipped through the Julia package ecosystem, without relying on incompatible system libraries, and the GMT tests pass.

Written by the indexing model from the issue text.

Description

I have tried three times to install the GMT dependency for GMT.jl and so far have not been successful. On my first try, the version of GMT in the package repos of my OS (MX Linux/Debian) was too old (v5.4). Then I attempted to build GMT from source and ran into other issues regarding (I think) GDAL, which was also an older version (v2.3). Finally, on my new OS (Ubuntu 20.04) I have GMT version 6.0.0 and GDAL version 3.0.4, but trying to run the GMT tests gives me the following error message:

ERROR: LoadError: LoadError: could not load library "/usr/lib/x86_64-linux-gnu/libgmt.so"
/home/michael/.local/julia-1.5.2/bin/../lib/julia/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /lib/libgdal.so.26)

Note, each time I did end up with a working version of GMT, and the only problem appears be with GMT.jl reading the dependencies.

It would be hugely beneficial for users if GMT.jl to use BinaryBuilder.jl to ship GMT and its other dependencies with the code. This would greatly simplify the process for interested users.

Dominant language
Julia
Stars
222
Forks
35
Avg merge
8h 1m
Merged PRs (30d)
9

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenericMappingTools/GMT.jl

All issues in GenericMappingTools/GMT.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.