openh264 在 osx 上的 nasm 问题

本文介绍了在MacOSX64位环境下使用nasm编译过程中遇到的问题及解决方案。主要问题是由于nasm版本过低导致无法识别macho64输出格式。文章提供了升级nasm版本的具体步骤,并指出了适合的nasm版本范围。

先在 pc 上编译,熟悉一下。

编译遇到一个问题:

nasm -DUNIX64 -DPREFIX -f macho64 -I./codec/common/x86/   -o codec/common/x86/cpuid.o codec/common/x86/cpuid.asm
nasm: fatal: unrecognised output format `macho64' - use -hf for a list
type `nasm -h' for help

需升级 nasm 版本

NASM needed to be installed for assembly code: workable version 2.07 or above, nasm can downloaded from http://www.nasm.us/ For Mac OSX 64-bit NASM needed to be below version 2.11.08 as nasm 2.11.08 will introduce error when using RIP-relative addresses in Mac OSX 64-bit
brew install homebrew/versions/nasm21106

转载于:https://www.cnblogs.com/sammei/p/openh264-zai-osx-shang-de-nasm-wen-ti.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值