Re: [Mingw-w64-public] [PATCH] headers/mfidl: Import mftransform.idl instead of header.

2020-09-30 Thread Martin Storsjö

On Wed, 30 Sep 2020, Biswapriyo Nath wrote:


Would you like to provide the configure command to build ffmpeg as per
your need? ffmpeg has thousands of configure options and I am not
familiar with all of them.


Cross compiling, you'd build it like this:

./configure --arch=x86_64 --target-os=mingw32 
--cross-prefix=x86_64-w64-mingw32- --enable-cross-compile
make

(Or replacing both instances of x86_64 with aarch64 if you want that.)

If building in a separate directory, you'd do "../path/to/src/configure 
..." instead.


For a non-cross build, it's enough with just "./configure; make".

// Martin



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] headers/mfidl: Import mftransform.idl instead of header.

2020-09-30 Thread Biswapriyo Nath
Would you like to provide the configure command to build ffmpeg as per
your need? ffmpeg has thousands of configure options and I am not
familiar with all of them.


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] headers/mfidl: Import mftransform.idl instead of header.

2020-09-30 Thread Martin Storsjö

On Wed, 30 Sep 2020, Nikolay Sivov wrote:




On 9/30/20 1:09 PM, Martin Storsjö wrote:

On Wed, 30 Sep 2020, Biswapriyo Nath wrote:





BTW, an unrelated point, but - if working on the mediafoundation
headers, ffmpeg is a project happens to use them a bit, so if doing
changes, I'd appreciate if you'd check that ffmpeg still builds (and
ends up with mediafoundation enabled).

The ffmpeg mediafoundation code also happens to use local
redeclarations of many mediafoundation constants (to allow it to build
with older versions of mingw-w64 and WinSDK) - so if working on header
changes, it can also be useful to try building with a modified version
that actually use the SDK headers properly:
https://github.com/mstorsjo/ffmpeg/commits/mfenc-use-sdk

(With current mingw-w64, all constants that are used are available,
except for CODECAPI_AVScenarioInfo.)

// Martin




No, it is very much related. Thanks for that. This could probably be
expanded to other major projects too, for validation before major
mingw-w64 updates are released.


Indeed - I run a nightly build consisting of a bunch of multimedia 
projects (VLC and all of their 100 dependency libraries, including Qt, and 
a few others, and a full test of ffmpeg) with latest mingw-w64, so 
generally that's at least build tested regularly (and I try to get that 
tested before major releases as well). But for wrangling header updates 
here, it's even nicer if the header changes are tested with a project 
known to exercise them - instead of finding out potential breakage after 
the fact.


// Martin

___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] headers/mfidl: Import mftransform.idl instead of header.

2020-09-30 Thread Nikolay Sivov


On 9/30/20 1:09 PM, Martin Storsjö wrote:
> On Wed, 30 Sep 2020, Biswapriyo Nath wrote:
>
>>
>
> BTW, an unrelated point, but - if working on the mediafoundation
> headers, ffmpeg is a project happens to use them a bit, so if doing
> changes, I'd appreciate if you'd check that ffmpeg still builds (and
> ends up with mediafoundation enabled).
>
> The ffmpeg mediafoundation code also happens to use local
> redeclarations of many mediafoundation constants (to allow it to build
> with older versions of mingw-w64 and WinSDK) - so if working on header
> changes, it can also be useful to try building with a modified version
> that actually use the SDK headers properly:
> https://github.com/mstorsjo/ffmpeg/commits/mfenc-use-sdk
>
> (With current mingw-w64, all constants that are used are available,
> except for CODECAPI_AVScenarioInfo.)
>
> // Martin
>
>

No, it is very much related. Thanks for that. This could probably be
expanded to other major projects too, for validation before major
mingw-w64 updates are released.


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] headers/mfidl: Import mftransform.idl instead of header.

2020-09-30 Thread Martin Storsjö

On Wed, 30 Sep 2020, Biswapriyo Nath wrote:





BTW, an unrelated point, but - if working on the mediafoundation headers, 
ffmpeg is a project happens to use them a bit, so if doing changes, I'd 
appreciate if you'd check that ffmpeg still builds (and ends up with 
mediafoundation enabled).


The ffmpeg mediafoundation code also happens to use local redeclarations 
of many mediafoundation constants (to allow it to build with older 
versions of mingw-w64 and WinSDK) - so if working on header changes, it 
can also be useful to try building with a modified version that actually 
use the SDK headers properly: 
https://github.com/mstorsjo/ffmpeg/commits/mfenc-use-sdk


(With current mingw-w64, all constants that are used are available, except 
for CODECAPI_AVScenarioInfo.)


// Martin



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] headers/mfidl: Import mftransform.idl instead of header.

2020-09-30 Thread Biswapriyo Nath
OK, as you wish.


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] headers/mfidl: Import mftransform.idl instead of header.

2020-09-30 Thread Nikolay Sivov
For Media Foundation headers I think we should work towards importing
them from Wine, after backporting whatever it's missing comparing to
mingw-w64 ones.


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public