m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.51k stars 261 forks source link

mpv needs libwaio in order to work with some 3rd party clients (like Syncplay) #47

Closed wiiaboo closed 9 years ago

wiiaboo commented 9 years ago

See: https://github.com/mpv-player/mpv/blob/master/DOCS/crosscompile-mingw.md#additional-dependencies

Example: https://github.com/lachs0r/mingw-w64-cmake/blob/master/packages/libwaio.cmake

cd $LOCALBUILDDIR

do_git "git://midipix.org/waio" waio-git

if [[ $compile == "true" ]]; then
    if [ -f lib/libwaio.a ]; then
        ./build-mingw-nt64 clean
    fi
    sed -i "s/AR=x86_64-w64-mingw32-ar/AR=x86_64-w64-mingw32-gcc-ar" ./config-mingw-nt64.mak
    ./build-mingw-nt64 lib-static
    cp -r ./include/waio/ /local64/include/waio/
    cp -r ./lib64/libwaio.a /local64/lib/libwaio.a

    sed -i "s/AR=x86_64-w64-mingw32-gcc-ar/AR=x86_64-w64-mingw32-ar" ./config-mingw-nt64.mak
    do_checkIfExist waio-git lib/libwaio.a
    compile="False"
fi
jb-alvarado commented 9 years ago

Thank you Ricardo! I have include now libwaio, with a little modification. It doesn't need the sed command, with the right build flag:

build-mingw-nt64 AR=x86_64-w64-mingw32-gcc-ar LD=ld STRIP=strip lib-static