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 SDKs\Windows\v7.1A\Include下,修改win32.mak的路径为绝对路径

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

 

posted @ 2015-04-12 13:14 越影&逐日而行 阅读(...) 评论(...) 编辑 收藏