Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Aman Karmani <ffmpeg@tmm1.net>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Cc: "Helmut K. C. Tessarek" <tessarek@evermeet.cx>
Subject: Re: [FFmpeg-devel] commits ecee6af8bd and 4ac869ca2a break build for macOS
Date: Mon, 20 Dec 2021 17:24:07 -0800
Message-ID: <CAK=uwuwVGCF7fUvXYjNwyUkF_ou_oC8XDMWm2hbtJXP=xWmtGQ@mail.gmail.com> (raw)
In-Reply-To: <CABDPGrxJFU=3urEmoTLeH7R7nhasT0jOJLZKGq693A7NuSbLsQ@mail.gmail.com>

On Mon, Dec 20, 2021 at 5:19 PM Christopher Degawa <ccom@randomderp.com>
wrote:

> On Mon, Dec 20, 2021 at 6:55 PM Aman Karmani <ffmpeg@tmm1.net> wrote:
>
> > On Mon, Dec 20, 2021 at 4:52 PM Helmut K. C. Tessarek <
> > tessarek@evermeet.cx>
> > wrote:
> >
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA512
> > >
> > >
> > >
> > > On 2021-12-20 19:38, Aman Karmani wrote:
> > > > Could you share the output of `xcrun metal -v`
> > >
> > > $ xcrun metal -v
> > > Apple LLVM version 902.9 (metalfe-902.9.61)
> > > Target: air64-apple-darwin18.7.0
> > > Thread model: posix
> > > InstalledDir:
> > >
> > >
> >
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
> > > /usr/metal/ios/bin
> > >
> >
> > I am able to get the ios binary too, but only when I request is
> explicitly
> > as follows:
> >
> > $ xcrun -sdk $(xcodebuild -sdk iphoneos -version Path) metal -v
> >
> > Apple metal version 31001.325 (metalfe-31001.325)
> > Target: air64-apple-darwin20.6.0
> > Thread model: posix
> > InstalledDir:
> >
> >
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/metal/ios/bin
> >
> >
>
> Running `xcrun -sdk $(xcodebuild -sdk macosx -version Path) metal
> libavfilter/metal/vf_yadif_videotoolbox.metal -o
> libavfilter/metal/vf_yadif_videotoolbox.metal.air` does indeed compile
> properly and properly shows macos
>

Great, thanks for the confirmation!


>
> xcrun -sdk $(xcodebuild -sdk macosx -version Path) metal -v
> Apple LLVM version 31001.143 (metalfe-31001.143)
> Target: air64-apple-darwin19.6.0
> Thread model: posix
> InstalledDir:
>
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/metal/macos/bin
>
> and I can indeed have FFmpeg configure and make with `./configure
> --metalcc="xcrun -sdk $(xcodebuild -sdk macosx -version Path) metal"`, but
> that would sorta ruin the whole idea of being able to simply clone and
> ./configure and make.
>

Cool, that's also good to hear.

Does this work for you?

$ xcrun --sdk macosx metal -v

If so, then perhaps this patch is enough?

diff --git a/configure b/configure
index d9d41b2273..c4a59e0e3f 100755
--- a/configure
+++ b/configure
@@ -3842,8 +3842,8 @@ host_cc_default="gcc"
 doxygen_default="doxygen"
 install="install"
 ln_s_default="ln -s -f"
-metalcc_default="xcrun metal"
-metallib_default="xcrun metallib"
+metalcc_default="xcrun --sdk macosx metal"
+metallib_default="xcrun --sdk macosx metallib"
 nm_default="nm -g"
 pkg_config_default=pkg-config
 ranlib_default="ranlib"


>
> I tried looking online, and I guess maybe it's not something often asked as
> I could not find relevant results to how to set the default xcrun sdk, so
> I'm not sure how to make that -sdk flag apply to all xcruns regardless of
> configure flags
> _______________________________________________
> 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".

  reply	other threads:[~2021-12-21  1:24 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-20 21:30 Helmut K. C. Tessarek
2021-12-20 23:25 ` Ridley Combs
2021-12-20 23:49   ` Helmut K. C. Tessarek
2021-12-21  0:06     ` Ridley Combs
2021-12-21  0:13       ` Helmut K. C. Tessarek
2021-12-21  0:11 ` Christopher Degawa
2021-12-21  0:38   ` Aman Karmani
2021-12-21  0:43     ` Christopher Degawa
2021-12-21  0:50       ` Aman Karmani
2021-12-21  0:54         ` Helmut K. C. Tessarek
2021-12-21  0:52     ` Helmut K. C. Tessarek
2021-12-21  0:54       ` Aman Karmani
2021-12-21  1:18         ` Christopher Degawa
2021-12-21  1:24           ` Aman Karmani [this message]
2021-12-21  1:31             ` Christopher Degawa
2021-12-21  1:28           ` Ridley Combs
2021-12-21  1:35             ` Christopher Degawa
2021-12-21  1:03   ` Helmut K. C. Tessarek
2021-12-21  1:20     ` Aman Karmani
2021-12-21  1:35       ` Helmut K. C. Tessarek
2021-12-21  1:39         ` Ridley Combs
2021-12-21  2:31           ` Helmut K. C. Tessarek
2021-12-21  1:48       ` Christopher Degawa
2021-12-21  1:52         ` Aman Karmani
2021-12-21  6:04           ` Christopher Degawa
2021-12-21  7:39             ` Ridley Combs
2021-12-21 18:04               ` Christopher Degawa

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='CAK=uwuwVGCF7fUvXYjNwyUkF_ou_oC8XDMWm2hbtJXP=xWmtGQ@mail.gmail.com' \
    --to=ffmpeg@tmm1.net \
    --cc=ffmpeg-devel@ffmpeg.org \
    --cc=tessarek@evermeet.cx \
    /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