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

前端 未结 4 950
说谎
说谎 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条回答
  •  鱼传尺愫
    2021-01-13 04:48

    I solved this linker error by enabling Position-Independent Code in the compiler and linker settings in XCode.

提交回复
热议问题