【问题标题】:libpng warning in EclipseEclipse 中的 libpng 警告
【发布时间】:2013-03-31 03:57:15
【问题描述】:

我在 Ubuntu 12.04 LTS 上使用 Eclipse 3.7.2 尝试使用 MathGL。 我的简单 c++ 看起来像:

#include <iostream>
#include <mgl2/mgl.h>

using namespace std;

int main() {

 mglGraph gr;
 gr.FPlot("sin(pi*x)");
 gr.WritePNG("test.png");

return 0;
}

当我运行它时,我收到以下警告:

libpng warning: Application built with libpng-1.2.46 but running with 1.5.13

而且test.png无法显示。

关于如何解决它的任何想法?

谢谢!

【问题讨论】:

    标签: c++ eclipse ubuntu png libpng


    【解决方案1】:

    您必须重新构建您的应用程序才能使用 libpng-1.5.13。目前它是用 1.2.46 构建的。或者您可以阅读 2 个版本的发行说明并确定 1.2.46 中支持的内容并保持在这些范围内。您必须尝试使用​​不在 1.2.46 中的 lidpng 中的功能

    【讨论】:

      猜你喜欢
      • 2019-04-04
      • 2018-06-05
      • 2020-11-08
      • 1970-01-01
      • 1970-01-01
      • 2017-05-26
      • 2016-10-19
      • 2014-08-11
      • 1970-01-01
      相关资源
      最近更新 更多