Skip to content

Commit

Permalink
update readme build guide (#96)
Browse files Browse the repository at this point in the history
update readme build instructions with windows specific instructions
  • Loading branch information
CypherpunkSamurai authored and asticode committed Nov 7, 2024
1 parent cfdc7f1 commit 1841ad5
Showing 1 changed file with 23 additions and 1 deletion.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,32 @@ export CGO_CFLAGS="-I{{ path to your working directory }}/tmp/n7.0/include/",
export PKG_CONFIG_PATH="{{ path to your working directory }}/tmp/n7.0/lib/pkgconfig",
```

## Building on Windows

Building on Windows requires msys2 / mingw64 gcc toolchain. Read the [Quickstart guide](https://www.msys2.org) to install Msys2.

Once complete run the Mingw64 shell from the installation folder, run the below commands:

```shell
# Update Packages
pacman -Syu
# Install Requirements to Build
pacman -S --noconfirm --needed git diffutils mingw-w64-x86_64-toolchain pkg-config make yasm
# Clone the repository using git
git clone https://github.com/asticode/go-astiav
cd go-astiav
```

Then once you clone this repository, follow along the build instructions above.

> **Notes:**
> For `pkg-config` use `pkgconfiglite` from choco.
> Remember to set `CGO` and `PKG_CONFIG` env vars properly to point to the folder where ffmpeg was built.
# Why astiav?

After maintaining for several years the most starred [fork](https://github.com/asticode/goav) of [goav](https://github.com/giorgisio/goav), I've decided to write from scratch my own C bindings to fix most of the problems I still encountered using `goav`.

# Breaking changes

You can see the list of breaking changes [here](BREAKING_CHANGES.md).
You can see the list of breaking changes [here](BREAKING_CHANGES.md).

0 comments on commit 1841ad5

Please sign in to comment.