[vlc-devel] [PATCH 1/7] configure: detect if we can run win32 executables

Steve Lhomme robux4 at ycbcr.xyz
Tue May 12 12:44:31 CEST 2020


On 2020-05-12 12:38, Martin Storsjö wrote:
> On Tue, 12 May 2020, Steve Lhomme wrote:
> 
>> It is possible to run win32 executables when cross compiling with 
>> mingw64. It's
>> even mandatory to build contribs as it needs to call fxc.exe (currently
>> hardcoded to use wine).
> 
> Keep in mind that there's a bit of complication regarding this. We can't 
> generally assume/hope to be able to run the compiled applications - if 
> compiling for windows/arm64, we won't be able to run the apps we build 
> for the target architecture. But e.g. fxc.exe is explicitly built for an 
> x86 windows architecture in these cases.
> 
> Not sure how it works for WIX for building MSI files (I haven't tried 
> that), but if that's existing binaries that are run in wine, it should 
> work fine - even if this configure test would fail when targeting arm64.

Yes, for now the goal is only to support WIX.

I gave vlc-cache-gen a try, but I forgot the PATH needs to include 
src/.libs and lib/.libs so that it can find the DLLs and run properly 
(something I set in my dev environment).

I may run it via the win32 packaging makefile, once the EXE and DLLs are 
in a proper place. There is no need to generate a plugins.dat or it 
would be invalid in the installed version. But it should be possible to 
create it just before doing the .7z, .exe and .msi.


More information about the vlc-devel mailing list