FFMpeg - macOS build 报错 : xcrun -sdk iphoneos clang ...

news/2024/10/20 1:26:49/

文章目录

    • 报错1:xcrun -sdk iphoneos clang is unable to create an executable file
    • 报错 2 : error: unknown type name 'AudioDeviceID';


在 macOS 上使用 https://github.com/kewlbear/FFmpeg-iOS-build-script 脚本,运行 ./build-ffmpeg.sh 运行报错
遇到问题,搜索结果不太准,看 issues 比较有用:
https://github.com/kewlbear/FFmpeg-iOS-build-script/issues


iphoneos_clang_is_unable_to_create_an_executable_file_6">报错1:xcrun -sdk iphoneos clang is unable to create an executable file

building arm64...
xcrun -sdk iphoneos clang is unable to create an executable file.
C compiler test failed.If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.

检查了 GCC、make 都是正确安装的

FFMpeg 也替换过新老版本:https://ffmpeg.org//releases/

搜索答案雷同,直到看到这个 issue,解决了我的问题
https://github.com/kewlbear/FFmpeg-iOS-build-script/issues/119


运行命令:

sudo xcode-select --switch /Applications/Xcode.app

前提是你在 /Applications/Xcode.app 安装了 Xcode


查看 xcode-select 所指

 % xcode-select -p
/Applications/Xcode.app/Contents/Developer

xcode-select 更详细的说明可参考:https://blog.csdn.net/lovechris00/article/details/114602610


报错 2 : error: unknown type name ‘AudioDeviceID’;

error: unknown type name ‘AudioDeviceID’;

参考:https://github.com/kewlbear/FFmpeg-iOS-build-script/issues/158

在脚本的 CONFIGURE_FLAGS 添加 --disable-audiotoolbox,变为:

...
CONFIGURE_FLAGS="--enable-cross-compile --disable-debug --disable-programs \--disable-doc --enable-pic --disable-audiotoolbox  "            
...

伊织 2024-04-27(六)


http://www.ppmy.cn/news/1441306.html

相关文章

Gartner发布攻击面管理创新洞察:CTEM、VA、EASM、CAASM、ASA、DRPS、BAS、VM等攻击面管理相关技术及关系

安全运营团队负责管理跨内部和外部数字资产的复杂攻击面。这项研究概述了攻击面评估空间,以帮助安全和风险管理领导者驾驭技术并改善其安全状况。 主要发现 随着本地和云中的技术环境变得越来越复杂和分散,组织必须管理不断增长的攻击面。 SaaS 应用程序…

【iOS开发】(五)react Native路由和导航20240421-22

【iOS开发】(五)react Native 路由和导航Navigation 20240421 在(一)(二)中我们 Reactnative搭建了开发环境、学习了 基础语法、状态管理,JSX、组件、状态和生命周期以及样式布局等。 在(三)&a…

391.C# ML.net 情绪分析

391.C# ML.net 情绪分析 常见应用场景 社交媒体监控:企业和品牌可以使用二元情绪分类器来监控社交媒体上的公众情绪,了解客户对产品或服务的看法,以及市场对新发布或事件的反应。客户服务:自动化客户服务工具(如聊天机…

TCP/IP协议族中的TCP(一):解析其关键特性与机制

⭐小白苦学IT的博客主页⭐ ⭐初学者必看:Linux操作系统入门⭐ ⭐代码仓库:Linux代码仓库⭐ ❤关注我一起讨论和学习Linux系统 前言 TCP(Transmission Control Protocol,传输控制协议)是一种面向连接的、可靠的、基于字…

27.统一网关Gateway-路由断言工厂

在配置文件中写的断言规则只是字符串,这些字符串会被Predicate Factory读取并处理,转变为路由判断的条件。 例如:Path /user/** 是按照路劲匹配,这个规则是由 org.springframework.cloud.gateway.handler.predicate.PathRouteP…

(学习日记)2024.05.01:UCOSIII第五十五节:User文件夹函数概览(uCOS-III->Source文件夹)第一部分

写在前面: 由于时间的不足与学习的碎片化,写博客变得有些奢侈。 但是对于记录学习(忘了以后能快速复习)的渴望一天天变得强烈。 既然如此 不如以天为单位,以时间为顺序,仅仅将博客当做一个知识学习的目录&a…

[ICLR-24] GPAvatar: Generalizable and Precise Head Avatar from Images(s)

[pdf | proj | code] 提出GPAvatar,实现可驱动的单图虚拟头像重建(Head avatar reconstruction)。重建:给定图像得到对应Tri-plane。在此基础上,本文提出了MTA,可以融合多张图片输入信息,缓解单…

SOLIDWORKS Electrical 3D--精准的三维布线

相信很多工程师在实际生产的时候都会遇到线材长度不准确的问题,从而导致线材浪费甚至整根线材报废的问题,这基本都是由于人工测量长度所导致的,因此本次和大家简单介绍一下SOLIDWORKS Electrical 3D布线的功能,Electrical 3D布线能…