问题:在转换解码器时,出现如下错误:Apple Mach-O Linker Error

                                                    Linker command failed with exit code 1(use -v to see invocation) 

        ld: duplicate symbol _fourxm_decoder in .../libH264Unit.a(4xm.o) and .../libavcodec.a(4xm.o) for architecture armv7

clang: error: linker command failed with exit code 1 (use -v to see invocation)

 

问题出现在重复定义了 symbol _fourxm_decoder在libavcodec.a和libH264Unit.a中,

解决办法是:将libavcodec.a这个类库去掉引用。 

 

总结:如果碰到一个问题在这个解决方案(1)行不通,在另一个新建的解决方案(2)行得通的话,那就说明 第一个解决方案有一些参数会影响这个问题。所以得好好查找第一个解决方案哪里会影响这个问题。

 

相关文章:

  • 2021-11-10
  • 2021-11-29
  • 2022-12-23
  • 2021-05-18
  • 2021-11-27
  • 2021-07-20
  • 2021-10-05
  • 2021-08-04
猜你喜欢
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
相关资源
相似解决方案