libpng警告:使用libpng-1.2.26构建但使用1.5.2运行的应用程序 [英] libpng warning: Application built with libpng-1.2.26 but running with 1.5.2
问题描述
我在Mac上尝试R生成png图像时遇到问题.
I have a problem on my mac when trying in R to produce png images.
我收到以下警告:
libpng警告:使用libpng-1.2.26构建但以1.5.2运行的应用程序
我正在使用R-studio GUI运行R 2.14版本.
I am running the R 2.14 version using the R-studio GUI.
我不确定libpng问题.当我定位libpng-config时,我遇到了一些问题,有些是libong-config12,有些是libpng-config14,有些没有讨厌的数字:
I am not excatly sure about the libpng problem. When I am doing locate libpng-config I'm getting several hits, some with libong-config12, some with libpng-config14, some without nay numbers:
ayeroslaviz:〜ayeroslaviz $找到libpng-config
/Applications/XAMPP/xamppfiles/bin/libpng-config
/Library/Frameworks/GTK+.framework/Versions/2.18.X11/Resources/bin/libpng-config
/opt/local/bin/libpng-config
/usr/X11/bin/libpng-config
/usr/local/bin/libpng-config
当执行哪个 libpng-config
时,我得到:/usr/local/bin/libpng-config
When doing which libpng-config
I'm getting: /usr/local/bin/libpng-config
是否可以卸载旧版本的libpng或将路径更新为正确的版本.不幸的是,我什至不确定该警告的来源,因此希望在此提供所有必要的信息.
Is there a way to uninstall older versions of libpng or update the paths to the right version. Unfortunately I am not even sure, what thesource of this warning, so I hope I gave here all the needed information.
如果有人给我提示如何解决此问题,我将不胜感激.
I would be grateful for anyone who gives me a hint about how to solve this problem.
谢谢
A.
推荐答案
幸运的是,您使用的是Mac,因此有一个更简单(但未记录)的方法.
Fortunately, you're using a Mac, so there's a simpler (but not documented) method.
quartz.save('my_filename.png', type='png')
请注意,您要保存的图像必须是当前活动的石英窗口.
Note that the image you want to save must be the currently active quartz window.
这篇关于libpng警告:使用libpng-1.2.26构建但使用1.5.2运行的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!