Xpra: Ticket #440: upgrade libvpx to 1.2.0 on win32

So we end up with:

./configure --enable-pic --disable-install-docs  --enable-shared \
   --enable-static --enable-vp8 --enable-realtime-only \

So we have to add the undocumented --disable-unit_tests:

./configure --libdir=${JHBUILD_PREFIX}/lib --prefix=${JHBUILD_PREFIX} \
    --enable-vp8 --target=x86-darwin8-gcc --disable-install-docs \
    --enable-runtime-cpu-detect --disable-unit_tests --enable-pic

But for win32, the problems are deeper: the build files have been modified and I cannot find the vpxmt and vpxmtd libraries we want to link against. There are no binary downloads either.. Time to fire up Visual Studio :(

Fri, 18 Oct 2013 06:41:39 GMT - Antoine Martin: owner changed

Here's how we upgrade the win32 build (edit: requires r4548 for better backwards build compatibility):

(make only creates the build files - I couldn't get it to build everything)

Verify that we can build the vpx codec against the new version and that it loads OK (requires r4547 or later):

Optional steps for building a DLL. For reference only as we do not use the DLL ourselves:

Please confirm that this all works and close this ticket.

Fri, 06 Dec 2013 21:05:15 GMT - Smo: status changed; resolution set

Followed all the steps and found one error.

When building it looks for the header files in include\vpx so I just had to move them to that directory

Xpra built fine afterwards and ran Encoding_info.exe and got the desired result

Closing ticket

Thu, 16 Jan 2014 10:47:37 GMT - Antoine Martin:

Building libvpx-v1.3.0 is hard on win32 and probably not worth the effort right now. It would have been nice if it had been just a matter of adding --enable-vp9... but no.

I had to fix build issues, which I have documented here and ended up using visual studio to build the DLL (pretty much as per the instruction above, but with the extra patches and somehow ended up having to edit the project files by hand to fix some paths - just horrible)

Tue, 09 Dec 2014 22:46:53 GMT - Antoine Martin:

I couldn't find it documented anywhere and it is painful to build, so here it is (libvpx 1.3.0 and ffmpeg 2.4.4) from a mingw shell:

See above for the strip and strtok problem (my answer from stackoverflow).

Sat, 23 Jan 2021 04:55:34 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/440