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

embedded/2024/10/19 21:29:53/

文章目录

    • 报错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/embedded/26353.html

相关文章

MCGS:脚本程序

MCGS仿真控制要求 控制要求如下 用PLC控制灯字闪灭 1、广告字1亮,1秒后熄灭; 2、广告字2亮,1秒后熄灭; 3、广告字3亮,1秒后熄灭; 4、广告字4亮,1秒后熄灭; 5、广告字5亮,…

spring boot运行过程中动态加载Controller

1.被加载的jar代码 package com.dl;import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;SpringBootApplication public class App {public static void main(String[] args) {SpringApplication.run(A…

处理分支更新与pull操作

处理分支更新与pull操作 问题描述 There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details.git pull <remote> <branch> If you wish to set tracking information for th…

SpringCloudStream 3.x rabbit 使用

1. 前言 今天带来的是SpringCloudStream 3.x 的新玩法&#xff0c;通过四大函数式接口的方式进行数据的发送和监听。本文将通过 rabbitMQ 的方式进行演示 3.x版本后是 可以看到 StreamListener 和 EnableBinding 都打上了Deprecated 注解。后续的版本更新中会逐渐替换成函数式…

网络原理

端口号 IP地址&#xff08;确定主机&#xff09;端口号&#xff08;在机上的应用程序&#xff09; 网络层提供的概念 传输层提供的概念 一个字节&#xff1a; 有符号-128>127 无符号0>255 两个字节&#xff1a; 有符号&#xff1a;-3…

神经网络基础(Neural net foundations)

Today we’ll be learning about the mathematical foundations of deep learning: Stochastic gradient descent (SGD), and the flexibility of linear functions layered with non-linear activation functions. We’ll be focussing particularly on a popular combination…

基于H.264的RTP打包中的组合封包以及分片封包结构图简介及抓包分析;FU-A FU-B STAP-A STAP-B简介;

H.264视频流的RTP封装类型分析&#xff1a; 前言&#xff1a; 1.RTP打包原则&#xff1a; RTP的包长度必须要小于MTU(最大传输单元)&#xff0c;IP协议中MTU的最大长度为1500字节。除去IP报头&#xff08;20字节&#xff09;、UDP报头&#xff08;8字节&#xff09;、RTP头&a…

大语言模型在人类层面预测未来的研究与应用

概述 这项研究将探讨语言模型&#xff08;LM&#xff09;能否预测未来事件。在这项研究中&#xff0c;将开发一个系统来自动收集信息、生成和汇总预测结果。将从一个竞争性预测平台收集有关问题的数据&#xff0c;以评估 LM 的预测能力。结果表明&#xff0c;LM 可以与具有竞争…