Trying to build VLC for Unity3D

1.5k views Asked by At

I have been trying to get the VLC plugin for Unity3D to build. It is found here: https://code.videolan.org/videolan/vlc-unity/blob/master/README.md

I am trying to do this on Debian 10 (buster).

The first instruction was to: Download and install https://github.com/mstorsjo/llvm-mingw on latest Debian (WSL or otherwise). Add it to path.

I believe I have done that part successfully.

Next is to: Download VLC nightly build and adjust if need be vlc-4.0.0-dev/sdk/lib path to LDFLAGS in Common.mk

This is where my issue is. I've done the snap install of the nightly build, I've downloaded the source with a -dev in name from here: https://nightlies.videolan.org/build/source/

I've also tried to use the master-daily PPA.

But I still cannot find any vlc-4.0.0-dev/sdk/lib path.

I have tried to set the LDFLAGS to some of the vlc lib folders I have, but every time I build I get this error:

lld: error: unable to find library -lvlc
clang-10: error: linker command failed with exit code 1

My end goal, if I can get this VLC plugin working, is to stream one of my Unity3D virtual cameras to a viewer on the network via rtsp.

1

There are 1 answers

5
mfkl On BEST ANSWER

Since this plugin is currently Windows-only, I'm assuming you are targeting Windows.

Download a nightly from https://nightlies.videolan.org/build/win64-llvm/last/

You will find the libs at vlc-4.0.0-{date}-dev-win64.7z\vlc-4.0.0-dev\sdk\lib\