Help Me Run a VLC Build Inside Docker

0
5
Asked By TechieNerd42 On

I'm trying to execute a command for building VLC using Docker based on some build guidance, but I'm stuck! Here's what I'm doing: I'm running the command `docker run -it -v C:Sourcevlc:/vlc registry.videolan.org/vlc-debian-llvm-uwp:20200706065223`, and then I change the directory to `cd /vlc`. After that, I attempt to run `extras/package/win32/build.sh -a x86_64 -z -r -u -w -D=C:/Source/vlc`, but it gives me a 'file not found' error. This happens because the Docker image doesn't have access to that file path. However, if I open a new terminal and try it there, it works fine. I'm lost – what am I missing here? You can also check the project link [here](https://github.com/UnigramDev/Unigram).

2 Answers

Answered By CodeNavigator88 On

Make sure to follow the [correct build instructions](https://github.com/UnigramDev/Unigram/blob/develop/Documentation/Build-instructions.md#vlc). You need to clone both the Unigram and the VLC repositories first. In the VLC repo, switch to the `3.0.x` branch, then return to the Unigram repo directory to apply any necessary patches. It sounds like you might not be completing those initial steps before running the Docker container.

Answered By DevGuru99 On

The issue is with the path you’re using. When you run `-D=C:/Source/vlc`, that path doesn’t exist inside the Docker container. You’re mapping your host path with `-v C:Sourcevlc:/vlc`, so inside the container, you should use `-D=/vlc` instead. Additionally, you can exec into the running container to check existing paths using `docker exec -it `. Just a heads up, Docker can be tricky on Windows, so using a Linux host or a VM might be a better option.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.