[FFmpeg-devel] [PATCH] Build scripts for WinRT

2015-03-24 Thread Simon Ferquel
Hi all,


I have needed libavformat/libavcodec for a drone piloting app project 
targetting (among others) the Windows modern platform (Win81 modern, Windows 
Phone, and Xbox one in a near future).

To make it easier to generate static libs for all the combinations of os 
(win81/wp81), architecture (armv7, x86, x64) and C runtime configurations 
(debug CRT DLL or release CRT DLL), I wrote some bash scripts automating the 
setup of the environment variables needed for msvc, as well as the different 
flags to pass to the compiler to generate valid libraries for the modern 
windows app platform.

This patch adds a bldwinrt folder with only bash scripts in it. They must be 
run in the msys2 environment and have been tested on Windows 8.1 64bit.


A following patch will come with build scripts targetting the newly released 
Windows 10 common sdk (no more separate libs for Windows, Windows Phone and 
Xbox one with this one).


Simon

bin8GkKc6ZC9Z.bin
Description: 0001-Build-for-WinRT-bash-scripts-for-easing-the-build-fo.patch
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


Re: [FFmpeg-devel] [PATCH] Build scripts for WinRT

2015-03-24 Thread Simon Ferquel
Axtually I don't know the meaning of enable thumb (it was in the ffmpef winrt 
compilation guide I followed).
I also found some strange linking issues when building with 
disable-optimizations and / or as static libs. So, I'll resubmit the patch when 
these issues are fixed.

De : Reimar Döffinger<mailto:reimar.doeffin...@gmx.de>
Envoyé : ‎24/‎03/‎2015 21:56
À : FFmpeg development discussions and patches<mailto:ffmpeg-devel@ffmpeg.org>
Objet : Re: [FFmpeg-devel] [PATCH] Build scripts for WinRT

On Tue, Mar 24, 2015 at 08:07:28AM +, Simon Ferquel wrote:
> I have needed libavformat/libavcodec for a drone piloting app project 
> targetting (among others) the Windows modern platform (Win81 modern, Windows 
> Phone, and Xbox one in a near future).
>
> To make it easier to generate static libs for all the combinations of os 
> (win81/wp81), architecture (armv7, x86, x64) and C runtime configurations 
> (debug CRT DLL or release CRT DLL), I wrote some bash scripts automating the 
> setup of the environment variables needed for msvc, as well as the different 
> flags to pass to the compiler to generate valid libraries for the modern 
> windows app platform.
>
> This patch adds a bldwinrt folder with only bash scripts in it. They must be 
> run in the msys2 environment and have been tested on Windows 8.1 64bit.

One question: You are aware that --enable-thumb is not the default on
purpose/for good reasons?
I wonder why you are using it.
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


Re: [FFmpeg-devel] [PATCH] Build scripts for WinRT

2015-03-25 Thread Simon Ferquel
>Please avoid top-posting on this list, thanks.


Sorry about that, I'm not really used to mailing lists


>On 24.03.2015, at 22:14, Simon Ferquel  wrote:
>> Axtually I don't know the meaning of enable thumb (it was in the ffmpef 
>> winrt compilation guide I followed).
>It generates smaller but somewhat slower code.
>IMHO unless instruction cache misses are a major issue (and even then) it 
>doesn't make sense unless you optimize the code for size in general - which 
>you clearly are not doing.
>Admittedly I do not know if anyone benchmarked it lately.
>Btw. do you know anything concerning armv8 support? Would be good to get 
>testing of that early on as well (though of course not possible before 
>official support, but with even the low-end making the transition on Android I 
>would expect support for it soonish).


About enable-thumb, I'll give a try without (won't be able to test it on 
Windows, only have a phone arm device for now).
About armv8, there is actually a ./lib/arm64 in the windows 10 dev kit, but no 
public compiler for this atm. I'll keep you posted if I get any news on that 
(and would be glad to help target this architecture on Windows 10).


>> I also found some strange linking issues when building with 
>> disable-optimizations and / or as static libs. So, I'll resubmit the patch 
>> when these issues are fixed.


I'm giving some more tries, but I am close to having a fully functionnal build, 
with both win81/wp81 target and win10 preview. New patch soon.


>> 
>> De : Reimar Döffinger<mailto:reimar.doeffin...@gmx.de>
>> Envoyé : ‎24/‎03/‎2015 21:56
>> À : FFmpeg development discussions and 
>> patches<mailto:ffmpeg-devel@ffmpeg.org>
>> Objet : Re: [FFmpeg-devel] [PATCH] Build scripts for WinRT
>> 
>> On Tue, Mar 24, 2015 at 08:07:28AM +, Simon Ferquel wrote:
>>> I have needed libavformat/libavcodec for a drone piloting app project 
>>> targetting (among others) the Windows modern platform (Win81 modern, 
>>> Windows Phone, and Xbox one in a near future).
>>> 
>>> To make it easier to generate static libs for all the combinations of os 
>>> (win81/wp81), architecture (armv7, x86, x64) and C runtime configurations 
>>> (debug CRT DLL or release CRT DLL), I wrote some bash scripts automating 
>>> the setup of the environment variables needed for msvc, as well as the 
>>> different flags to pass to the compiler to generate valid libraries for the 
>>> modern windows app platform.
>>> 
>>> This patch adds a bldwinrt folder with only bash scripts in it. They must 
>>> be run in the msys2 environment and have been tested on Windows 8.1 64bit.
>> 
>> One question: You are aware that --enable-thumb is not the default on
>> purpose/for good reasons?
>> I wonder why you are using it.
​
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel