Commit f2b75ae7 authored by Martin Finkel's avatar Martin Finkel
Browse files

Update README

parent e28956ae
UnityPluginWithWSL
==================
# Building
![screenshot](https://i.imgur.com/JbbioDQl.png)
## Windows
This is an example that shows how to build a Unity native plugin with using a
WSL (Windows Subsystem for Linux) development environment.
How to build the plugin
-----------------------
- Enable WSL and install a distro (any distro is fine; Ubuntu is recommended).
- Install `make`.
- `sudo apt install make`
- Install `mingw-w64` (development toolchain targeting 64-bit Windows).
- `sudo apt install mingw-w64`
- Execute `make` in the `Plugin` directory.
WSL? MinGW? Isn't it better to use Visual Studio?
-------------------------------------------------
I just prefer UNIX-style CLI development environment.
If so, why don't you use Cygwin/MSYS?
-------------------------------------
I used to do. I switched to use WSL because it's matured enough for practical
use.
- Download and install https://github.com/mstorsjo/llvm-mingw on latest Debian (WSL or otherwise). Add it to path.
- Download VLC nightly build and adjust if need be `vlc-4.0.0-dev/sdk/lib` path to `LDFLAGS` in `Common.mk`
- Build with
```
./build.sh
```
This will produce a `RenderingPlugin.dll` which you can use with LibVLCSharp in your Unity project
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment