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

Current instructions for building LibVLC were not clear and mentioned docker container failed to build.

Updated instructions using UWP docker image from CI that should work all the time.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
50 50 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`.
51 51 Then run `./compile.sh` with your target platform and configuration.
52 52
53 Use the docker image [here](https://code.videolan.org/videolan/docker-images/blob/master/vlc-winrt-x86_64/Dockerfile)
53 Or you can build LibVLC in a docker container that has environment pre-configured:
54
55 - Find the current docker image name that is used on CI for UWP - look for VLC_UWP_LLVM_IMAGE variable in
56 [gitlab-ci.yml](https://code.videolan.org/videolan/vlc-3.0/-/blob/master/extras/ci/gitlab-ci.yml) file.
57
58 - Start docker container using that image and one of the folders to host machine. From git shell you can do this as:
59 ```cmd
60 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
  • 50 50 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`.
    51 51 Then run `./compile.sh` with your target platform and configuration.
    52 52
    53 Use the docker image [here](https://code.videolan.org/videolan/docker-images/blob/master/vlc-winrt-x86_64/Dockerfile)
    53 Or you can build LibVLC in a docker container that has environment pre-configured:
    54
    55 - Find the current docker image name that is used on CI for UWP - look for VLC_UWP_LLVM_IMAGE variable in
    56 [gitlab-ci.yml](https://code.videolan.org/videolan/vlc-3.0/-/blob/master/extras/ci/gitlab-ci.yml) file.
    57
    58 - Start docker container using that image and one of the folders to host machine. From git shell you can do this as:
    59 ```cmd
    60 winpty docker run -it --rm --net=host -v /${PWD}:/vlc registry.videolan.org/vlc-debian-llvm-uwp:20200706065223
    61 ```
    62 - In your docker container clone repo as described above. If you clone on host Windows machine,
  • 50 50 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`.
    51 51 Then run `./compile.sh` with your target platform and configuration.
    52 52
    53 Use the docker image [here](https://code.videolan.org/videolan/docker-images/blob/master/vlc-winrt-x86_64/Dockerfile)
    53 Or you can build LibVLC in a docker container that has environment pre-configured:
    54
    55 - Find the current docker image name that is used on CI for UWP - look for VLC_UWP_LLVM_IMAGE variable in
    56 [gitlab-ci.yml](https://code.videolan.org/videolan/vlc-3.0/-/blob/master/extras/ci/gitlab-ci.yml) file.
    57
    58 - Start docker container using that image and one of the folders to host machine. From git shell you can do this as:
    59 ```cmd
    60 winpty docker run -it --rm --net=host -v /${PWD}:/vlc registry.videolan.org/vlc-debian-llvm-uwp:20200706065223
    61 ```
    62 - In your docker container clone repo as described above. If you clone on host Windows machine,
    63 you'll likely have CRLF line endings messed up.
    64 - cd to ```vlc-winrt/libvlc``` and run ``` ./compile.sh x86_64 win10``` or using different architecture.
  • added 1 commit

    Compare with previous version

  • Aleksey Vlasenko approved this merge request

    approved this merge request

  • Aleksey Vlasenko unapproved this merge request

    unapproved this merge request

  • Please register or sign in to reply
    Loading