本文介绍了的libpng +的boost :: GIL:png_infopp_NULL未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图编译我与升压文件时总是出现此错误:: GIL PNG IO支持:

(我运行Mac OS X Leopard和升压1.42,1.4的libpng)

  /usr/local/include/boost/gil/extension/io/png_io_private.hpp:在成员函数'无效的boost ::吉尔::详细:: png_reader ::初始化( ):
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:155:错误:png_infopp_NULL在此范围未声明
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:160:错误:png_infopp_NULL在此范围未声明
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:在析构函数的boost ::吉尔::详细:: png_reader ::〜png_reader():
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:174:错误:png_infopp_NULL在此范围未声明
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:在成员函数'无效的boost ::吉尔::详细:: png_reader ::申请(常量查看&安培;):
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:186:错误:int_p_NULL在此范围未声明
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:在成员函数'无效的boost ::吉尔::详细:: png_reader_color_convert< CC> ::申请(常量查看&安培;):
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:228:错误:int_p_NULL在此范围未声明
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:在成员函数'无效的boost ::吉尔::详细:: png_writer ::的init():
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:317:错误:png_infopp_NULL在此范围未声明


解决方案

起初我用了libpng 1.4

。我切换到1.2版本,所有的问题就走开了。

I always get this error when trying to compile my file with Boost::GIL PNG IO support:

(I'm running Mac OS X Leopard and Boost 1.42, LibPNG 1.4)

/usr/local/include/boost/gil/extension/io/png_io_private.hpp: In member function 'void boost::gil::detail::png_reader::init()':
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:155: error: 'png_infopp_NULL' was not declared in this scope
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:160: error: 'png_infopp_NULL' was not declared in this scope
/usr/local/include/boost/gil/extension/io/png_io_private.hpp: In destructor 'boost::gil::detail::png_reader::~png_reader()':
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:174: error: 'png_infopp_NULL' was not declared in this scope
/usr/local/include/boost/gil/extension/io/png_io_private.hpp: In member function 'void boost::gil::detail::png_reader::apply(const View&)':
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:186: error: 'int_p_NULL' was not declared in this scope
/usr/local/include/boost/gil/extension/io/png_io_private.hpp: In member function 'void boost::gil::detail::png_reader_color_convert<CC>::apply(const View&)':
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:228: error: 'int_p_NULL' was not declared in this scope
/usr/local/include/boost/gil/extension/io/png_io_private.hpp: In member function 'void boost::gil::detail::png_writer::init()':
/usr/local/include/boost/gil/extension/io/png_io_private.hpp:317: error: 'png_infopp_NULL' was not declared in this scope
解决方案

Initially I used libpng 1.4. I switched to version 1.2 and all the problems went away.

这篇关于的libpng +的boost :: GIL:png_infopp_NULL未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 08:26