美文网首页
Qt dyld: Symbol not found: __cg_

Qt dyld: Symbol not found: __cg_

作者: WSGNSLog | 来源:发表于2021-11-26 22:39 被阅读0次

新安装的Qt运行时报错:

dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /usr/local/lib/libJPEG.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
22:32:59: 程序异常结束。

解决方法:

如果使用Qt Creator,则必须Add build library search path to DYLD_LIBRARY_PATH and DYLD_FRAMEWORK_PATH从选项卡中的Run部分取消选中该选项Projects:

image.png

取消勾选


image.png

运行走起

相关文章

网友评论

      本文标题:Qt dyld: Symbol not found: __cg_

      本文链接:https://www.haomeiwen.com/subject/vxtfxrtx.html