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 5960A404CE for ; Tue, 21 Dec 2021 01:24:28 +0000 (UTC) Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 2FAE268AE9C; Tue, 21 Dec 2021 03:24:27 +0200 (EET) Received: from mail-vk1-f182.google.com (mail-vk1-f182.google.com [209.85.221.182]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 4A45C68AE57 for ; Tue, 21 Dec 2021 03:24:20 +0200 (EET) Received: by mail-vk1-f182.google.com with SMTP id b77so1814218vka.11 for ; Mon, 20 Dec 2021 17:24:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0Ry9/n9C57dlQH4Ik8DeZRMgaq/aYFiZQbQRiXET40o=; b=neJqk9NWjqK+i6e83qHLDXDpilvwXmKE5muOa7FOCVGgCyZMeHOn2lAqxThuh9cPVh jRkOPfKTF/j1Bd2LDj6vzOFLYMwOqddLsRyhbYhoTT9FCUuCC6PxLKTD71ixs1Er4wBL nvpBnfzIjCWP8qvLAz+C0IJEs8eQLHGl4/6NSnCNVYvaq6SdSHg2kb8gHJAHmj9bUTW9 X+1M6Jy8bmQPFy8WUhI7XkXzZgmnO4btpnkcsycZPQGQYaFwOHrlW7YIgfVCqnd+4sXi 34mmnUhUx/WfzfhzczZYuDaN6M8xJtq9Dmo/S7/Z4EkHsR23UpC9md3b+7CWFHIXXpoJ n8XQ== X-Gm-Message-State: AOAM531JKIENUbSONbSEQ0i2kYd2anNLILlO1lq7GUiijDKAmlaqixlU xvNWrAcCZHEC2FPCTYNL8bQlJQ7QPH1X49IXVyO3Ae8guPiXGA== X-Google-Smtp-Source: ABdhPJwEsc6JdasJjOH6J/CTfGSigiM4ncRMaVmvCuCw67c3ViIrE4gWl5RO5jgKaj3TyJeIwXxK+RmrH1T2/FeF9+M= X-Received: by 2002:a05:6122:2086:: with SMTP id i6mr325777vkd.2.1640049858552; Mon, 20 Dec 2021 17:24:18 -0800 (PST) MIME-Version: 1.0 References: <5fb60616-5ded-1b3a-255c-14deb44924d9@evermeet.cx> <9a5a0645-7743-5f73-2240-d8120a9fa0ec@evermeet.cx> In-Reply-To: From: Aman Karmani Date: Mon, 20 Dec 2021 17:24:07 -0800 Message-ID: To: FFmpeg development discussions and patches X-Content-Filtered-By: Mailman/MimeDel 2.1.29 Subject: Re: [FFmpeg-devel] commits ecee6af8bd and 4ac869ca2a break build for macOS 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 Cc: "Helmut K. C. Tessarek" 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, Dec 20, 2021 at 5:19 PM Christopher Degawa wrote: > On Mon, Dec 20, 2021 at 6:55 PM Aman Karmani 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".