From: "Martin Storsjö" <martin@martin.st>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH] mswindres: Use '-' instead of '/' for rc.exe options
Date: Sat, 11 Feb 2023 00:22:47 +0200 (EET)
Message-ID: <6b8c93af-db59-f05b-97c0-4f7a6a32a7b0@martin.st> (raw)
In-Reply-To: <BYAPR12MB32389DF150CF7CE7FD9A9445A4DE9@BYAPR12MB3238.namprd12.prod.outlook.com>
On Fri, 10 Feb 2023, Ziemowit Laski wrote:
> The build uses /bin/bash, which is configured as x86_64-pc-msys, and
> that's where the rewriting happens. I always assumed that MinGW was
> basically built on top of MSYS.
No, that's a rather incorrect understanding.
MinGW is an environment which gives you totally win32 native executables,
just like MSVC does. The main feature is that the headers/libs are
constructed manually so they're freely redistributable, in a GCC
compatible form, and with only a very minimal set of extra portability
helping functions (not providing POSIX compat, just the very minimum
necessary to make GCC work).
MinGW toolchains can be cross compilers from unix systems, or they can be
win32 native. They can work on their own (where you call the compiler from
an IDE, with GNU make in windows mode with cmd.exe executing makefile
statements, or from another build tool). They can also be packaged as part
of a posix compat environment.
MSYS2 is a stripped down version of Cygwin, which both gives you a POSIX
compatibility environment. MSYS2 (and Cygwin) gives you things that don't
work in a pure win32 environment, such as shell scripts, bash etc. MSYS2
thus allows you to run e.g. unix style configure shell scripts. MSYS2
comes packaged with MinGW toolchains integrated, and the main purpose of
it (contrary to Cygwin) is to provide the extra unix tools you need around
a MinGW toolchain.
FFmpeg requires MSYS2 (or similar) for running the configure shell script
and the makefile. But all the weirdness about unix vs windows path
handling is an MSYS2 feature - the mingw executables are just like any
windows executable.
// Martin
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
next prev parent reply other threads:[~2023-02-10 22:23 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-04 19:52 Ziemowit Laski
2023-02-09 11:08 ` Martin Storsjö
2023-02-09 21:01 ` Ziemowit Laski
2023-02-09 21:59 ` Hendrik Leppkes
2023-02-09 22:14 ` Martin Storsjö
2023-02-10 1:47 ` Ziemowit Laski
2023-02-10 22:22 ` Martin Storsjö [this message]
2023-02-11 0:13 ` Ziemowit Laski
2023-02-12 22:25 ` Martin Storsjö
2023-02-13 5:17 ` Ziemowit Laski
2023-02-13 7:36 ` Martin Storsjö
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6b8c93af-db59-f05b-97c0-4f7a6a32a7b0@martin.st \
--to=martin@martin.st \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git