`

linux下安装libwebp

 
阅读更多

Preparing the platform
Linux platform

    Install the libjpeg and libpng packages, needed to convert between JPEG, PNG and WebP image formats. Packaged installation are dependent on the Linux distributions. As an example, Ubuntu distribution requires to run the following commands:

       sudo apt-get install libjpeg62-dev
      sudo apt-get install libpng12-dev


    Complete the installation (see below).
Mac OS X platform 10.5 (Leopard) and 10.6 (Snow Leopard)

    Follow the same steps outlined above except that you do not need to follow Step 4 to install libwebp.
    Install the JPEG and PNG dependencies:

        sudo port install libjpeg libpng
       
    Complete the installation (see below).

Cygwin platform

    Download setup.exe from the Cygwin web page.
    Run setup.exe and proceed through the installation.
    At the Select Packages screen, add to the pre-selected packages the following:
        libjpeg-devel, libpng12-devel and libpng14-devel
        gcc, make and automake (for building packages)
    Complete the installation (see below).

Building the WebP from source on Unix platforms

    Download libwebp-0.1.2.tar.gz from the downloads list.
    Untar or unzip the package. This creates a directory libwebp-0.1.2/:

          tar xvzf libwebp-0.1.2.tar.gz
       
    Build WebP encoder cwebp and decoder dwebp:
    Go to the libwebp/ directory and run the following commands:

          cd libwebp
        ./autogen.sh
        ./configure
        make
        sudo make install
        备注:运行./autogen.sh报错,则先运行yum -y install automake libtool   

    This builds and installs the cwebp & dwebp command line tools, along with the libwebp libraries (dynamic and static).

    These tools are usually installed under /usr/local/bin/ by default. The local version are built under the examples/ directory.

    The library will usually be installed under the /usr/local/lib/ directory. To avoid run-time errors, make sure that your LD_LIBRARY_PATH environment variable includes this location. The C headers are typically installed under /usr/local/include/webp.

分享到:
评论
发表评论

文章已被作者锁定,不允许评论。

相关推荐

    libwebp linux版

    标题"libwebp Linux版"指的是在Linux环境下使用的`libwebp`库,这个库不仅包含了用于处理WebP图像的基本功能,还可能包含了一些额外的工具,如`cwebp`,这是一个命令行工具,可以将普通图片(如JPEG或PNG)转换为...

    lib webp linux

    安装这个库后,开发者可以通过链接libwebp库来编写C或C++程序,调用其API进行图像处理操作。例如,`WebPDecodeRGB`函数用于解码WebP文件,`WebPEncodeRGB`则用于编码RGB数据为WebP格式。 总结来说,WebP是一种在...

    libwebp-1.0.2-linux-x86-64.tar.gz

    8. **编译与安装**:在Linux环境下,用户需要使用`tar`命令解压文件,然后通过`./configure`, `make`和`make install`步骤来编译和安装libwebp库,以便在本地系统中使用。 总结来说,`libwebp-1.0.2-linux-x86-64....

    libwebp库,可用于webp的移植

    **正文** ...libwebp库的使用和移植是开发中一个重要的环节,尤其在追求高效、轻量级图像处理的场景下。通过深入理解libwebp的功能和API,开发者可以充分利用WebP的优势,提升应用的性能和用户体验。

    libwebp-devel-1.0.0-5.el8.ppc64le.rpm

    离线安装包,亲测可用

    libwebp windows版

    2. **编译与安装**:在Windows上使用libwebp,通常需要下载源代码,使用Visual Studio或其他编译工具进行编译和链接。确保正确设置编译选项,以便生成动态库(.dll)或静态库(.lib)。 3. **示例应用**:libwebp...

    libwebp.jar libwebp.so

    在您提供的信息中,“libwebp.jar”和“libwebp.so”是与WebP相关的库文件,分别对应于Java和Linux环境下的动态链接库。 1. **WebP格式详解** WebP格式基于VP8视频编码器和Riff文件容器,提供了比JPEG和PNG更好的...

    libwebp_so_demo

    这个"so"文件是针对Linux或Android等平台的动态库文件,用于在程序中支持.webp图像的读取和操作。 描述中提到,这个项目不仅提供了编译好的libwebp.so,还包含了调用libwebp接口的源码示例。这为开发者提供了一个...

    libwebp-0.6.0.tar.gz

    安装libwebp库时,开发者通常需要解压`libwebp-0.6.0.tar.gz`,进入解压后的目录,然后执行`./configure`,`make`和`sudo make install`等步骤来编译和安装库。之后,他们就可以在自己的程序中调用libwebp的API,...

    linux下的PHP安装

    在Linux环境下安装PHP是一项常见的任务,尤其对于Web开发者来说更是如此。本篇文章将详细介绍如何在Linux系统上安装PHP,并解释`./configure`命令中的各个选项的意义及其作用。 #### 一、环境准备 在开始安装之前...

    libwebp-java-0.3.0-11.el7.x64-86.rpm.tar.gz

    libwebp-java-0.3.0-11.el7.x64-86.rpm.tar.gz这个文件是RPM(Red Hat Package Manager)格式的软件包,被广泛用于Red Hat系列的Linux发行版中,如CentOS和Fedora。该压缩包中包含了一个Java语言绑定的WebP图片格式...

    libwebp-0.3.0-11.el7.x64-86.rpm.tar.gz

    该压缩包主要用途是在基于Red Hat 7版本的Linux系统上安装libwebp,它通过RPM包管理器将libwebp及其依赖的库文件正确部署到系统中。对于希望在自己的系统上使用WebP图像格式的用户而言,该压缩包提供了一套完整、...

    libwebp-devel-0.3.0-11.el7.x64-86.rpm.tar.gz

    通常,安装libwebp-devel包时,rpm命令会自动处理这些依赖关系,但如果出现依赖问题,你可能需要手动下载并安装缺少的包。 此外,如果在安装过程中遇到任何问题,文件描述中提到可以通过私信博主获得全程安装指导。...

    libwebp-0.4.4.zip

    在Linux系统上,你可以通过编译源代码或使用软件包管理器(如`apt`、`yum`或`dnf`)安装`libwebp`。一旦安装完成,你就可以使用提供的工具进行WebP图像的处理。此外,由于`libwebp`库的跨平台性,它也可以在Windows...

    libwebp 1.2.4 开发库

    最后,由于 libwebp 是跨平台的,因此无论是在 Windows、Linux 还是 macOS 上,开发者都可以享受到一致的性能和功能。 以“libwebp-1.2.4-windows-x64”为例,这个压缩包文件是针对 Windows 64 位系统的版本,包含...

    libwebp-tools-0.3.0-11.el7.x64-86.rpm.tar.gz

    它为软件的安装、卸载、查询和管理提供了统一的接口,极大地简化了Linux下的软件安装和管理过程。 文件“libwebp-tools-0.3.0-11.el7.x64-86.rpm.tar.gz”为Linux用户提供了一套完整的WebP工具集,通过简便的安装和...

    Linux上安装Python的PIL和Pillow库处理图片的实例教程

    本教程将指导你如何在Linux上安装这两个库,并提供一个使用Pillow库批量转换图片的实例。 首先,正常情况下,你可以通过Python的包管理器pip来安装PIL或Pillow。执行`pip install PIL==1.1.7`或`pip install Pillow...

    opencv3.2.0 以及 ippicv_linux_20151201

    这里我们关注的是OpenCV 3.2.0版本及其依赖库ippicv(Intel Performance Primitives Image Processing Library)的Linux版本,特别为Ubuntu系统准备。 OpenCV 3.2.0是OpenCV库的一个重要版本,它包含了丰富的函数和...

    libwebp-1.0.2-rc1-windows-x64.zip

    6. **跨平台兼容**:尽管这里的压缩包是针对Windows 64位系统的,但libwebp本身是跨平台的,也可以在Linux、Mac OS X等系统上使用。 7. **API接口**:libwebp提供了C语言接口,开发者可以通过这些接口创建、读取、...

    centos7.9离线安装PHP环境依赖

    以上就是在CentOS 7.9离线环境下安装PHP及其依赖的详细过程。在实际操作中,确保所有文件完整无误,同时根据服务器的具体需求选择安装相应的PHP扩展。离线安装虽然繁琐,但在特定环境下是必要的,这确保了服务器的...

Global site tag (gtag.js) - Google Analytics