Skip to content
Snippets Groups Projects

Added instructions describing how to build LibVLC in a docker container

Open Aleksey Vlasenko requested to merge vlasenkoalexey/vlc-winrt:master into master
3 unresolved threads
1 file
+ 13
1
Compare changes
  • Side-by-side
  • Inline
+ 13
1
@@ -52,7 +52,19 @@ If you want to make a release build, replace the `Debug` folder name by `Release
If you want to build libvlc yourself (instead of grabing a nightly build), aside from a lot of time and patience, you need to install and setup `mingw-w64`.
Then run `./compile.sh` with your target platform and configuration.
Use the docker image [here](https://code.videolan.org/videolan/docker-images/blob/master/vlc-winrt-x86_64/Dockerfile)
Or you can build LibVLC in a docker container that has environment pre-configured:
- Find the current docker image name that is used on CI for UWP - look for VLC_UWP_LLVM_IMAGE variable in
[gitlab-ci.yml](https://code.videolan.org/videolan/vlc-3.0/-/blob/master/extras/ci/gitlab-ci.yml) file.
- Start docker container using that image and one of the folders to host machine. From git shell you can do this as:
```cmd
winpty docker run -it --rm --net=host -v /${PWD}:/vlc registry.videolan.org/vlc-debian-llvm-uwp:20200706065223
    • IIRC, winpty is only needed if you run that command from git bash, but then, doesn't it interpret the / with its path expansion features?

      I tend to run my docker commands from a PowerShell to avoid such conflicts. Do you know what would need to be changed there ?

      • Interactive mode didn't work without winpty in neither cmd nor git bash. Didn't try PowerShell, I don't use it. Extra / is required here because it expects host folder path to be in a format //c/Projects/vlc... at least for bash.

      • Please register or sign in to reply
Please register or sign in to reply
```
- In your docker container clone repo as described above. If you clone on host Windows machine,
Please register or sign in to reply
you'll likely have CRLF line endings messed up.
- cd to `/vlc/vlc-winrt/libvlc` and run `./compile.sh x86_64 win10` or using different architecture.
- Compiled libraries will be dropped under one of `vlc-winrt/libvlc/vlc/winrt-...` folders depending on the architecture.
## Contribute
Loading