Skip to content

Commit

Permalink
(fix) Fix up README
Browse files Browse the repository at this point in the history
  • Loading branch information
rrw-zilliqa committed Jun 27, 2024
1 parent 30e1075 commit 0eec21f
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,33 +39,49 @@ export SCILLA_REPO_ROOT=/where/you/checked/out/scilla
apt install libgmp-dev patchelf
```

Now install the opam dependencies:

```sh
make opamdep
eval $(opam env)
```

Now install packages and try to build the first time:

```shl
make
```

If `vcpkg` installation fails, you'll need to set:

```sh
export VCPKG_ALWAYS_INSTALL=true
```

To force vcpkg to try again. You'll also need to do:
and run `make` again.

The first build will fail, because `Snark.h` doesn't include `<cstdio>` properly. You now need to fix this:

```
make opamdep
eval $(opam env)
sed -i '1s;^;#include <cstdint>\n;' vcpkg_installed/x64-linux-dynamic/include/Snark/Snark.h
```

To make opam dependencies. You may well need to:
And you may well need to:

```
touch scilla/_build/default/vcpkg-ocaml/vcpkg-secp256k1/src/c_flags.exp
```

And retry to persuade `secp256k1` to rebuild.

Now, to build the project from the root folder:
Now build again:

```
make
```

and this time the build should succeed!

### Installation

Scilla can be installed into your opam switch as
Expand Down

0 comments on commit 0eec21f

Please sign in to comment.