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

前端 未结 4 952
说谎
说谎 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 05:04

    Just to be specific, the line that specifically worked to fix a similar linking error with ffmpeg for 32bit OSX link using xcode/c++11, was to add -Wl,-read_only_relocs,suppress to the link line. Variations of this didn't work.

提交回复
热议问题