• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            數據加載中……

            libjpeg在vs2010下編譯

            1、第一步當然是先下載源碼了,下載地址:http://www.ijg.org/
            2、解壓后所有的東西都在一個文件夾里了,如果有耐心可以看一下自帶的說明文檔(install.txt)
            3、其中有一段在vs2010下的說明

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

            We include makefiles that should work as project files in Visual Studio2010 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.

            Note:
            There seems to be an optimization bug in the compiler which causes the self-test to fail with the color quantization option.
            We have disabled optimization for the file jquant2.c in the library project file which causes the self-test to pass properly.

            =============================================================================================

            簡單的操作其實也就兩行,一個是生成vs2010的工程文件 NMAKE /f makefile.vc  setup-v10
            運行結果如下:


            Microsoft (R) Program Maintenance Utility Version 
            9.00.30729.01
            Copyright (C) Microsoft Corporation.  All rights reserved.

                    ren jconfig.vc jconfig.h
                    ren makejsln.v10 jpeg.sln
                    ren makeasln.v10 apps.sln
                    ren makejvcx.v10 jpeg.vcxproj
                    ren makejfil.v10 jpeg.vcxproj.filters
                    ren makecvcx.v10 cjpeg.vcxproj
                    ren makecfil.v10 cjpeg.vcxproj.filters
                    ren makedvcx.v10 djpeg.vcxproj
                    ren makedfil.v10 djpeg.vcxproj.filters
                    ren maketvcx.v10 jpegtran.vcxproj
                    ren maketfil.v10 jpegtran.vcxproj.filters
                    ren makervcx.v10 rdjpgcom.vcxproj
                    ren makerfil.v10 rdjpgcom.vcxproj.filters
                    ren makewvcx.v10 wrjpgcom.vcxproj
                    ren makewfil.v10 wrjpgcom.vcxproj.filters

            然后打開jpeg.sln,直接編譯就ok了

            posted on 2010-10-13 17:03 Stone xin 閱讀(6383) 評論(4)  編輯 收藏 引用

            評論

            # re: libjpeg在vs2010下編譯  回復  更多評論   

            感謝,原來里面帶了對應的工程文件的……
            2012-01-07 19:52 | littlewater

            # re: libjpeg在vs2010下編譯  回復  更多評論   

            很好,這應該就是所謂的軟解碼了,先學習學習這個。
            2013-02-08 15:52 | kangear

            # re: libjpeg在vs2010下編譯  回復  更多評論   

            不知道如何進行編譯
            2014-09-25 17:31 | sansan
            亚洲国产成人久久综合碰碰动漫3d| 久久福利资源国产精品999| 亚洲精品tv久久久久久久久| 久久精品无码一区二区app| 久久久久国产日韩精品网站| 久久男人中文字幕资源站| 伊人久久久AV老熟妇色| 精品国产综合区久久久久久| 亚洲国产精品无码久久久蜜芽| 久久综合给久久狠狠97色| 99久久精品无码一区二区毛片 | 久久国产乱子精品免费女| 狠狠久久综合| 中文成人久久久久影院免费观看| 国产精品天天影视久久综合网| 久久综合狠狠综合久久97色| 久久久久国产精品嫩草影院| 激情久久久久久久久久| 波多野结衣久久一区二区 | 久久精品国产男包| 亚洲国产二区三区久久| 欧洲国产伦久久久久久久| 国产AV影片久久久久久| 久久人人爽人人爽人人AV东京热 | 久久精品国产亚洲AV嫖农村妇女 | 久久成人国产精品免费软件| .精品久久久麻豆国产精品| 色偷偷91久久综合噜噜噜噜| 久久精品人人槡人妻人人玩AV| 久久综合伊人77777| 国产午夜久久影院| 99久久夜色精品国产网站| 99久久99久久精品国产| 久久99精品久久只有精品| 久久精品国产半推半就| 麻豆av久久av盛宴av| 久久久久一本毛久久久| 久久国产亚洲精品麻豆| 亚洲综合伊人久久大杳蕉| 伊人久久精品影院| 精品乱码久久久久久夜夜嗨|