C语言 如何解决"错误:无法打开elf64进行读取:没有这样的文件或目录"

fxnxkyjh  于 2023-03-01  发布在  其他
关注(0)|答案(1)|浏览(355)

我在ubuntu-20.04上编译libvpx-1.7.0,配置命令是:

./configure --disable-vp8 --enable-vp9 --enable-libyuv --target=x86_64-linux-gcc --enable-debug --disable-install-docs --log=yes --enable-internal-stats --disable-unit-tests --disable-docs --disable-tools --enable-webm-io --disable-optimizations

make命令为:

make

然后我犯了个错误:

[AS] vpx_ports/emms_mmx.asm.o
Assembler messages:
Error: can't open elf64 for reading: No such file or directory
vpx_ports/emms_mmx.asm:2: Error: no such instruction: `copyright (c) 2010 The WebM project authors. All Rights Reserved.'
vpx_ports/emms_mmx.asm:4: Error: no such instruction: `use of this source code is governed by a BSD-style license'
vpx_ports/emms_mmx.asm:5: Error: no such instruction: `that can be found in the LICENSE file in the root of the source'
vpx_ports/emms_mmx.asm:6: Error: no such instruction: `tree. An additional intellectual property rights grant can be found'
vpx_ports/emms_mmx.asm:7: Error: junk `file PATENTS.  All contributing project authors may' after expression
vpx_ports/emms_mmx.asm:7: Error: operand size mismatch for `in'
vpx_ports/emms_mmx.asm:8: Error: no such instruction: `be found in the AUTHORS file in the root of the source tree.'
vpx_ports/emms_mmx.asm:12: Error: junk at end of line, first unrecognized character is `%'
vpx_ports/emms_mmx.asm:14: Error: no such instruction: `section .text'
vpx_ports/emms_mmx.asm:15: Error: invalid character '(' in mnemonic
vpx_ports/emms_mmx.asm:16: Error: invalid character '(' in mnemonic

我能做些什么来解决这个问题?
昨天晚上我可以编译libvpx并运行vpxdec,一开始我没有添加配置选项"--disable-optimizations",第一次添加"--disable-optimizations"后我就不能编译了,不管是否使用"--disable-optimizations"。

11dmarpk

11dmarpk1#

可能有什么东西改变了我的环境变量。我终于发现我用错了汇编程序。只要在configure命令中添加选项“--as=yasm”就可以修复错误。

相关问题