Linker error when unit testing: ld: illegal text-relocation to cstring in … from _av_image_check_size in …/libavutil.a(imgutils.o)

前端 未结 4 972
说谎
说谎 2021-01-13 04:16

In Xcode 4.3.2, building an iPad app, which includes libavutil.a from the ffmpeg distribution, it builds and runs correctly but when I try to run unit tests (Cm

4条回答
  •  梦毁少年i
    2021-01-13 04:52

    The answer, from here.

    is to add:

    -read_only_relocs suppress
    

    to the linker flags.

    The other link explains why. The solution was originally found here.

提交回复
热议问题