• leptonica使用问题


    想要使用leptonica编写一个图像处理程序,或者调用leptonica/prog下例子程序,出现类似错误:

    leptTest  ./test
    Error in pixReadStreamJpeg: function not present
    Error in pixReadStream: jpeg: no pix returned
    Error in pixRead: pix not read
    Error in pixGetDimensions: pix not defined
    Error in pixSaveTiledOutline: pixs not defined
    Error in pixContrastNorm: pixs undefined or not 8 bpp
    Time: Contrast norm:   0.000 Mpix/sec
    Error in pixSaveTiledOutline: pixs not defined
    Error in pixWrite: pix not defined

    重新执行./configure,发现

    checking for png_read_png in -lpng... no
    checking for jpeg_read_scanlines in -ljpeg... no
    checking for DGifOpenFileHandle in -lgif... no
    checking for TIFFOpen in -ltiff... no
    checking for WebPGetInfo in -lwebp... no
    checking for opj_create_decompress in -lopenjp2... no

    解决办法,

    ./configure LDFLAGS=-L/usr/local/lib/ CFLAGS=-I/usr/local/include/

    这时就会显示

    checking for png_read_png in -lpng... yes
    checking for jpeg_read_scanlines in -ljpeg... yes
    checking for DGifOpenFileHandle in -lgif... no
    checking for TIFFOpen in -ltiff... yes
  • 相关阅读:
    FactoryBean的作用
    ztree点击文字勾选checkbox,radio实现方法
    js判断字符长度 汉字算两个字符
    双系统引导修复
    thinkpadT440p
    分布式服务器集群
    Eclipse插件安装方式
    用SourceTree轻巧Git项目图解
    廖雪峰git使用完整教程
    hessian
  • 原文地址:https://www.cnblogs.com/sdlypyzq/p/5147465.html
Copyright © 2020-2023  润新知