[x265] [PATCH] cross compile visual studio builds from msys bash shell

Mahesh Pittala mahesh at multicorewareinc.com
Fri Nov 3 06:36:06 CET 2017


resent the patch, Thanks

On Fri, Nov 3, 2017 at 10:53 AM, Pradeep Ramachandran <
pradeep at multicorewareinc.com> wrote:

> On Thu, Nov 2, 2017 at 6:08 PM, <mahesh at multicorewareinc.com> wrote:
>
>> # HG changeset patch
>> # User Mahesh Pittala <mahesh at multicorewareinc.com>
>> # Date 1509605249 -19800
>> #      Thu Nov 02 12:17:29 2017 +0530
>> # Node ID 354dfb85dd6df9d262c466ad02560d81f1f2bbcb
>> # Parent  df2de6ea407dde32cf957779e0b2e19624163268
>> cross compile visual studio builds from msys bash shell
>>
>> x265 already supports native visual studio builds but if some one wants to
>> integrate visual studio builds to the ffmpeg, they can generate from
>> MinGw.
>> Here, it sets all required environment variables.
>>
>> Build procedure:
>> For 32 bit - launch msys bash shell from 'visual studio command prompt'
>>              and run make-Makefiles.sh
>>
>> For 64 bit - launch 'visual studio command prompt' and run
>> '..\vcvarsall.bat amd64 | x86_amd64 | x86_arm | amd64_x86'
>>              and then launch msys bash shell and run
>> ./make-Makefiles-64bit.sh
>>
>> diff -r df2de6ea407d -r 354dfb85dd6d build/msys-cl/make-Makefiles-6
>> 4bit.sh
>> --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
>> +++ b/build/msys-cl/make-Makefiles-64bit.sh     Thu Nov 02 12:17:29 2017
>> +0530
>> @@ -0,0 +1,27 @@
>> +#!/bin/sh
>> +# This is to generate visual studio builds with required environment
>> variables set in this shell, useful for ffmpeg integration
>> +# Run this from within an MSYS bash shell
>> +
>> +target_processor='amd64'
>> +path=$(which cl)
>> +
>> +if cl; then
>> +    echo
>> +else
>> +    echo "please launch 'visual studio command prompt' and run
>> '..\vcvarsall.bat amd64'"
>> +    echo "and then launch msys bash shell from there"
>> +    exit 1
>> +fi
>> +
>> +if [[ $path  == *$target_processor* ]]; then
>> +    echo
>> +else
>> +    echo "64 bit target not set, please launch 'visual studio command
>> prompt' and run '..\vcvarsall.bat amd64 | x86_amd64 | amd64_x86'"
>> +    exit 1
>> +fi
>> +
>> +cmake -G "NMake Makefiles" -DCMAKE_CXX_FLAGS="-DWIN32 -D_WINDOWS -W4 -GR
>> -EHsc" -DCMAKE_C_FLAGS="-DWIN32 -D_WINDOWS -W4"  ../../source && cmake-gui
>> ../../source
>>
>
> Since the idea of using msys is be close to a linux-like env, could we
> remove invoking the cmake-gui from here, and instead just invoke cmake
> command line?
>
>
>> +if [ -e Makefile ]
>> +then
>> +    nmake
>> +fi
>> \ No newline at end of file
>> diff -r df2de6ea407d -r 354dfb85dd6d build/msys-cl/make-Makefiles.sh
>> --- /dev/null   Thu Jan 01 00:00:00 1970 +0000
>> +++ b/build/msys-cl/make-Makefiles.sh   Thu Nov 02 12:17:29 2017 +0530
>> @@ -0,0 +1,17 @@
>> +#!/bin/sh
>> +# This is to generate visual studio builds with required environment
>> variables set in this shell, useful for ffmpeg integration
>> +# Run this from within an MSYS bash shell
>> +
>> +if cl; then
>> +    echo
>> +else
>> +    echo "please launch msys from 'visual studio command prompt'"
>> +    exit 1
>> +fi
>> +
>> +cmake -G "NMake Makefiles" -DCMAKE_CXX_FLAGS="-DWIN32 -D_WINDOWS -W4 -GR
>> -EHsc" -DCMAKE_C_FLAGS="-DWIN32 -D_WINDOWS -W4"  ../../source && cmake-gui
>> ../../source
>>
>
> Same comment as above.
>
>
>> +
>> +if [ -e Makefile ]
>> +then
>> +    nmake
>> +fi
>> \ No newline at end of file
>>
>> _______________________________________________
>> x265-devel mailing list
>> x265-devel at videolan.org
>> https://mailman.videolan.org/listinfo/x265-devel
>>
>>
>
> _______________________________________________
> x265-devel mailing list
> x265-devel at videolan.org
> https://mailman.videolan.org/listinfo/x265-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20171103/b0d2a820/attachment-0001.html>


More information about the x265-devel mailing list