zoukankan      html  css  js  c++  java
  • windows下编译jpeg

    项目为了脱离OpenCV,直接采用libjpeg,记录在windows下jpeg安装。

    项目地址http://www.ijg.org/

    下载解压缩jpeg-9a

    看了看OpenCV中对libjpeg的整合通过Cmakefiles,不过看了压缩包下的帮助文档

    Microsoft Windows, Microsoft Visual C++ 2010 Developer Studio (v10):

    We include makefiles that should work as project files in Visual Studio
    2010 or later. There is a library makefile that builds the IJG library
    as a static Win32 library, and application makefiles that build the sample
    applications as Win32 console applications. (Even if you only want the
    library, we recommend building the applications so that you can run the
    self-test.)

    To use:
    1. Open the command prompt, change to the main directory and execute the
    command line
    NMAKE /f makefile.vc setup-v10
    This will move jconfig.vc to jconfig.h and makefiles to project files.
    (Note that the renaming is critical!)
    2. Open the solution file jpeg.sln, build the library project.
    (If you are using Visual Studio more recent than 2010 (v10), you'll
    probably get a message saying that the project files are being updated.)
    3. Open the solution file apps.sln, build the application projects.
    4. To perform the self-test, execute the command line
    NMAKE /f makefile.vc test-build
    5. Move the application .exe files from `app`Release to an
    appropriate location on your path.

    可以进行上述安装

    通过EveryThing找一下win32.mak

    在路径C:Program Files (x86)Microsoft SDKsWindowsv7.1AInclude下,修改win32.mak的路径为绝对路径

    重新生成,生成成功之后用vs打开。

  • 相关阅读:
    Mybatis使用map传递参数与模糊查询写法
    mybatis实现简单的crud
    普通maven项目导入mybatis依赖后找不到程序包(已解决)
    MarkDown语法学习
    CentOS 7 配置hadoop(一) 安装虚拟机(伪分布)
    CentOS 7 配置hadoop(二) 配置hdfs(伪分布)
    生成32个的字母加数字
    mysql 横变竖 竖变横
    Java实现短息验证
    spring+springmvc+mybatis+Redis的配置文件
  • 原文地址:https://www.cnblogs.com/fengbing/p/4419378.html
Copyright © 2011-2022 走看看