先在 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

相关文章:

  • 2021-10-11
  • 2022-12-23
  • 2021-11-23
  • 2021-12-30
  • 2022-12-23
  • 2021-07-31
  • 2021-12-28
猜你喜欢
  • 2022-02-14
  • 2021-04-02
  • 2021-05-17
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案