Installing Erlang Graphical Drawer

petros

Petros Amoiridis

Posted on July 13, 2021

Installing Erlang Graphical Drawer

I was following an identicon generation tutorial using Elixir.

The project was a bit older and used egd as if it was available by default in the project.

Erlang Graphical Drawer

Erlang Graphical Drawer is an interface for 2d-image rendering and is used by Percept to generate dynamic graphs to its web pages. All code is pure erlang, no drivers needed.

Build

$ rebar3 compile



I discovered egd is not part of the standard library anymore. One needs to install it separately in Elixir.

Step 1: Refresh rebar

mix local.rebar --force
Enter fullscreen mode Exit fullscreen mode

Step 2: Add egd to the dependencies

defp deps do
  [
    {:egd, github: "erlang/egd"}
    # ...
  ]
end
Enter fullscreen mode Exit fullscreen mode

Step 3: Install dependencies

mix deps.get
Enter fullscreen mode Exit fullscreen mode

I hope that helps.

馃挅 馃挭 馃檯 馃毄
petros
Petros Amoiridis

Posted on July 13, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related