Building libdvdcss DLL for Windows using MinGW

  1. On Ubuntu 18.04, install the MinGW development environment for Windows:
    $ sudo apt install mingw-w64 build-essential
    

  2. Download and build the latest libdvdcss for 64-bit Windows:
    $ cd
    $ mkdir mingw && cd mingw
    $ wget https://download.videolan.org/pub/libdvdcss/1.4.2/libdvdcss-1.4.2.tar.bz2
    $ tar jxvf libdvdcss-1.4.2.tar.bz2
    $ cd libdvdcss-1.4.2
    $ ./configure --host=x86_64-w64-mingw32
    $ make
    $ make DESTDIR=~/mingw install-strip
    

    The resulting DLL is saved at ~/mingw/usr/local/bin/libdvdcss-2.dll.

    Note: For a 32-bit build, use the configure option "--host=i686-w64-mingw32" instead.

Leave a Reply

Your email address will not be published. Required fields are marked *

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