From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTP id 1C06444A2B for ; Mon, 3 Oct 2022 15:21:08 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id A531C68BB8D; Mon, 3 Oct 2022 18:21:05 +0300 (EEST) Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4DF7768BADD for ; Mon, 3 Oct 2022 18:20:59 +0300 (EEST) Received: by mail-pl1-f178.google.com with SMTP id d11so9966608pll.8 for ; Mon, 03 Oct 2022 08:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandflow-com.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date; bh=AG/A1/GaOKpJp4/7JDnmiViIAyFaLJZHHoxk9JpZrnY=; b=Zshbb8PkAWUEl592Dc+sixWg4XXlB9RAbwAnpvahlXpdktt3a84xseRI+IjAUXPFaP ACrzwwBG8nf1FMrx74SaKQoh2IOe7G3VWdYgLNcJ/fR65pialf1Qu8sG/dRDEIkKnvNZ Jg2TC4HOHzJRqfTRBVkZdkZLG6BmwP4EwmZ5eCU/ugciSQeGw8qqcIJjGZmuRb+S2lDk m9J93nHQSTmQBXleJo8LAhcu+l7hdYuG7f34IJr329IRhYfAaNVSJAqYFF9f0mGpl3oX Z7OCpKl2T9MB1X+MaSb7q7NQk2i0oLrrwl90jlvd7XSRITYu/hdbqvCKRLXT1SyyFFMt 0PDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date; bh=AG/A1/GaOKpJp4/7JDnmiViIAyFaLJZHHoxk9JpZrnY=; b=BcYZGKRwF4A7jtHd7FqcSBJoqwF+wYq6RiwsyYP6PBczX62oRr8Zd0SPirTbwxm6MJ g6CfQl5AZvTYqKeq34n82Ie0P9MM//sC7jo+j6JhMDAz8yMs5FViIcS/w4kMxZwBH9ea 4HHIkgrwDPcsEWEhykgKICpIDEe0uiZesH3uSr1p43OutHwFN34/mbrdwoqfhVD5Gfz0 j5Cls/8A3DRDviH1WCUwBOLhjtgGAi1Iyh1/hAKAGcDYzFrw9zFDL0IoMhZabiD3E0IS cCyiQXnqVJ5nph8Z3RaDkx81hYUHTrmtmLFBGPtZfXV6Uy4/uyZTWws/cqtygFbIQ3oo +N1g== X-Gm-Message-State: ACrzQf0T5UiWTmhVaJNrGDiVFO1R8xr8y8/nmbWtusbZmRE6VP3cFF54 ti0l+FyZXEek+l+BrFwu3a2A2kBNWMlBRQ== X-Google-Smtp-Source: AMsMyM60vCTI6R1TXCeBnH3XvGB/e50ZE3AVjZ2sF2oMnFwQEwZjih0pC17xZOnruQcm46ooWyzweg== X-Received: by 2002:a17:90a:af91:b0:20a:68c2:e89c with SMTP id w17-20020a17090aaf9100b0020a68c2e89cmr13095428pjq.8.1664810456973; Mon, 03 Oct 2022 08:20:56 -0700 (PDT) Received: from mail-pj1-f42.google.com (mail-pj1-f42.google.com. [209.85.216.42]) by smtp.gmail.com with ESMTPSA id w2-20020a628202000000b005618e84993csm1459885pfd.83.2022.10.03.08.20.56 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 03 Oct 2022 08:20:56 -0700 (PDT) Received: by mail-pj1-f42.google.com with SMTP id d1-20020a17090a6a4100b002095b319b9aso9705157pjm.0 for ; Mon, 03 Oct 2022 08:20:56 -0700 (PDT) X-Received: by 2002:a17:902:d2cc:b0:178:1742:c182 with SMTP id n12-20020a170902d2cc00b001781742c182mr22628006plc.98.1664810455872; Mon, 03 Oct 2022 08:20:55 -0700 (PDT) MIME-Version: 1.0 References: <20221002234755.3354-1-dev@rocha.red> <20221002234755.3354-2-dev@rocha.red> <81454a2b-417e-9ff3-36d1-c02b7be4271b@rothenpieler.org> In-Reply-To: From: Pierre-Anthony Lemieux Date: Mon, 3 Oct 2022 08:20:43 -0700 X-Gmail-Original-Message-ID: Message-ID: To: FFmpeg development discussions and patches Subject: Re: [FFmpeg-devel] [PATCH 1/1] Enable building with WSL and MSVC X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Archived-At: List-Archive: List-Post: On Mon, Oct 3, 2022 at 1:11 AM Julio C. Rocha wrote: > > On Sun, Oct 2, 2022 at 5:19 PM Pierre-Anthony Lemieux > wrote: > > > On Sun, Oct 2, 2022 at 5:14 PM Timo Rothenpieler > > wrote: > > > > > > On 03.10.2022 01:47, Julio C. Rocha wrote: > > > > --- > > > > configure | 7 ++++++- > > > > 1 file changed, 6 insertions(+), 1 deletion(-) > > > > > > > > diff --git a/configure b/configure > > > > index 6712d045d9..f5f5eb29dd 100755 > > > > --- a/configure > > > > +++ b/configure > > > > @@ -4847,7 +4847,12 @@ probe_cc(){ > > > > else > > > > _ident=$($_cc --version 2>/dev/null | head -n1 | tr -d > > '\r') > > > > fi > > > > - _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< 2>&1 > > | awk '\''/including/ { sub(/^.*file: */, ""); gsub(/\\/, "/"); if > > (!match($$0, / /)) print "$@:", $$0 }'\'' > $(@:.o=.d)' > > > > + if [ "$(grep -i Microsoft /proc/version)" ]; then > > > > > > Not convinced that this is a good check. > > > I can think of a few other situations where Microsoft might appear in > > > there. Like, for example on one of their servers, Azure Cloud, Github > > > Actions and so on. > > > > > > > + # Windows Subsystem for Linux > > > > + _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< > > 2>&1 | awk '\''/including/ { sub(/^.*file: */, ""); gsub(/\\/, "/"); if > > (!match($$0, / /)) { cmd="/usr/bin/wslpath \x27" $$0 "\x27"; cmd |& getline > > pth; print "$@:", pth } }'\'' > $(@:.o=.d)' > > > > + else > > > > + _DEPCMD='$(DEP$(1)) $(DEP$(1)FLAGS) $($(1)DEP_FLAGS) $< > > 2>&1 | awk '\''/including/ { sub(/^.*file: */, ""); gsub(/\\/, "/"); if > > (!match($$0, / /)) print "$@:", $$0 }'\'' > $(@:.o=.d)' > > > > + fi > > > > _DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -showIncludes -Zs' > > > > _cflags_speed="-O2" > > > > _cflags_size="-O1" > > > > > > > > > What actual issue is this solving? > > > I've been building in WSL for years, including MSVC builds, and never > > > encountered any problems. > > > > FWIW. I am currently building on WSL: > > > > $ uname -a > > Linux pal-xxxxx 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 > > 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux > > > > $ lsb_release -a > > No LSB modules are available. > > Distributor ID: Ubuntu > > Description: Ubuntu 20.04.4 LTS > > Release: 20.04 > > Codename: focal > > > > Noted, Pierre. > Are you able to build using the Visual Studio compilers (MSVC) without any > further hacking? I had never tried it. Quick attempt results in: $ ./configure --toolchain=msvc cl.exe is unable to create an executable file. If cl.exe is a cross-compiler, use the --enable-cross-compile option. > > Example workflow: > cd /path/to/ffmpeg-clone > ./configure --toolchain=msvc > make > make install > > Thanks. > _______________________________________________ > 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". _______________________________________________ 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".