【发布时间】:2013-02-13 04:21:07
【问题描述】:
我目前正在使用 zint 条形码库在我的应用程序中生成条形码。它工作得很好,并以 .txt、.eps、.svg 格式生成。它还支持“.png”格式,但问题是由于缺少头文件“png.h”,我无法生成“png”格式的条形码。 我使用的 zint 版本是 2.4.2 请在这方面提供帮助?
【问题讨论】:
我目前正在使用 zint 条形码库在我的应用程序中生成条形码。它工作得很好,并以 .txt、.eps、.svg 格式生成。它还支持“.png”格式,但问题是由于缺少头文件“png.h”,我无法生成“png”格式的条形码。 我使用的 zint 版本是 2.4.2 请在这方面提供帮助?
【问题讨论】:
你在什么平台上开发?听起来您需要安装 PNG 开发库。例如,如果你在 Ubuntu 上,'apt-get install libpng-dev'。
【讨论】:
writepng_error_handler':png.c:62: undefined reference to png_get_error_ptr' 在函数png_pixel_plot':png.c:150: undefined reference to png_create_write_struct' png.c:156: 未定义引用png_create_info_struct' png.c:158: undefined reference to png_destroy_write_struct' png.c:171: 未定义引用`png_init_io' ....