来自 freetype 2.5.3 的 libPng.dylib 的问题 [英] Trouble with the libPng.dylib from freetype 2.5.3

查看:30
本文介绍了来自 freetype 2.5.3 的 libPng.dylib 的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 OS X (10.9.4) 上的本地目录中安装了 freetype-2.5.3,我将所有科学软件 (/Users/t/Science/local) 都放在其中,现在我的其他代码遇到了问题,即

I have installed freetype-2.5.3 on OS X (10.9.4) in my local directory in which I park all science software (/Users/t/Science/local), and now my other codes are running into trouble, i.e.

:/Users/t> 制作dyld:未找到符号:__cg_png_create_info_struct引用自:/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO预期在:/Users/t/Science/local/lib/libPng.dylib在/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIOmake: 错误:无法定位 xcodebuild,请确保 Xcode 文件夹的路径设置正确!make: error: 您可以使用/usr/bin/xcode-select -switch 设置 Xcode 文件夹的路径:/Users/t>/usr/bin/xcode-select -p/Applications/Xcode.app/Contents/Developer

:/Users/t> make dyld: Symbol not found: __cg_png_create_info_struct Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO Expected in: /Users/t/Science/local/lib/libPng.dylib in /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO make: error: unable to locate xcodebuild, please make sure the path to the Xcode folder is set correctly! make: error: You can set the path to the Xcode folder using /usr/bin/xcode-select -switch :/Users/t> /usr/bin/xcode-select -p /Applications/Xcode.app/Contents/Developer

Xcode 路径好像没问题.如何让系统中的 libPng.dylib 再次成为默认值?

The Xcode path seems to be okay. How do I get libPng.dylib from my system to be the default again?

非常感谢!

推荐答案

我遇到这个问题是因为我用 brew 安装了 libpng.运行以下命令解决了问题:

I had this problem because I installed libpng with brew. Running the following command solved the problem :

brew uninstall libpng

如果你同时需要默认的 mac libpng 和这个...祝你好运.我不得不经常用 brew 安装/卸载 libpng.

And if you need both the default mac libpng and this one...good luck. I had to install/uninstall libpng with brew oftently.

这篇关于来自 freetype 2.5.3 的 libPng.dylib 的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆