Skip to content

Instantly share code, notes, and snippets.

@TonyWhitley
Last active April 1, 2022 18:01
Show Gist options
  • Save TonyWhitley/298984fbc71e184b8eb676f458d033e0 to your computer and use it in GitHub Desktop.
Save TonyWhitley/298984fbc71e184b8eb676f458d033e0 to your computer and use it in GitHub Desktop.
VLC install and build under WSL, written by a Unix newbie. Doesn't work of course
#! /bin/sh
apt-get install gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 mingw-w64-tools
apt-get install lua5.2 libtool automake autoconf autopoint make gettext pkg-config
apt-get install qt4-dev-tools qt5-default git subversion cmake cvs
apt-get install wine64-development-tools libwine-dev zip p7zip nsis bzip2
apt-get install yasm ragel ant default-jdk protobuf-compiler dos2unix
git clone http://git.videolan.org/git/vlc.git vlc
cd vlc
apt-get install subversion yasm cvs cmake ragel autopoint
mkdir -p contrib/win32
cd contrib/win32
../bootstrap --host=x86_64-w64-mingw32
make fetch
make
rm -f ../i686-w64-mingw32/bin/moc ../i686-w64-mingw32/bin/uic ../i686-w64-mingw32/bin/rcc
cd -
./bootstrap
mkdir win32
cd win32
#Set your PKG_CONFIG_LIBDIR (Adapt the path to reflect your local setup)
export PKG_CONFIG_LIBDIR=/home/tony/vlc/contrib/x86_64-w64-mingw32/lib/pkgconfig
../extras/package/win32/configure.sh --host=x86_64-w64-mingw32 --build=x86_64-pc-linux-gnu
# checking for LUA... no
# configure: WARNING: No package 'lua5.2' found, trying lua 5.1 instead
# checking for LUA... no
# configure: WARNING: No package 'lua5.1' found, trying lua >= 5.1 instead
# checking for LUA... no
# configure: WARNING: No package 'lua' found, trying manual detection instead
# checking for luaL_newstate in -llua5.2 ... no
# checking for luaL_newstate in -llua5.1 ... no
# checking for luaL_newstate in -llua51 ... no
# checking for luaL_newstate in -llua ... no
# configure: error: Could not find lua. Lua is needed for some interfaces (rc, telnet, http) as well as many other custom scripts.
# Lua 5.2.4 Copyright (C) 1994-2015 Lua.org, PUC-Rio
../configure --host=x86_64-w64-mingw32 --build=x86_64-pc-linux-gnu
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment