0

我在 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 无法显示。

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

谢谢!

4

1 回答 1

0

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

于 2013-04-08T23:49:25.460 回答