• <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>
            數(shù)據(jù)加載中……

            libjpeg在vs2010下編譯

            1、第一步當(dāng)然是先下載源碼了,下載地址: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
            運(yùn)行結(jié)果如下:


            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下編譯  回復(fù)  更多評論   

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

            # re: libjpeg在vs2010下編譯  回復(fù)  更多評論   

            很好,這應(yīng)該就是所謂的軟解碼了,先學(xué)習(xí)學(xué)習(xí)這個。
            2013-02-08 15:52 | kangear

            # re: libjpeg在vs2010下編譯  回復(fù)  更多評論   

            不知道如何進(jìn)行編譯
            2014-09-25 17:31 | sansan

            只有注冊用戶登錄后才能發(fā)表評論。
            網(wǎng)站導(dǎo)航: 博客園   IT新聞   BlogJava   博問   Chat2DB   管理


            久久精品中文字幕有码| 久久久青草青青亚洲国产免观| 99久久无码一区人妻a黑| 久久综合香蕉国产蜜臀AV| 亚洲va中文字幕无码久久| 久久国产精品国产自线拍免费| 国産精品久久久久久久| 一本一本久久A久久综合精品| 韩国无遮挡三级久久| 国产精品成人久久久| 成人久久综合网| 中文字幕久久精品无码| 国产精品亚洲综合专区片高清久久久| 久久久久av无码免费网| 精品久久久久久无码中文字幕 | 四虎国产精品免费久久久| 亚洲国产视频久久| 国产福利电影一区二区三区久久久久成人精品综合 | 久久人人爽人人爽人人片AV麻烦| 婷婷久久综合九色综合绿巨人| 久久无码人妻一区二区三区| 日韩美女18网站久久精品| 青青草原综合久久大伊人精品| 久久中文字幕人妻熟av女| 理论片午午伦夜理片久久| 久久无码精品一区二区三区| 国产一区二区精品久久| 久久免费的精品国产V∧| 久久久久亚洲AV无码观看| 久久亚洲中文字幕精品一区| 青青热久久综合网伊人| 丁香五月网久久综合| 久久国产精品一国产精品金尊 | 国产三级精品久久| 色综合久久88色综合天天| 女人香蕉久久**毛片精品| 久久国产乱子伦精品免费强| 国产精品九九九久久九九| 一级做a爱片久久毛片| 国产精品欧美亚洲韩国日本久久| 亚洲国产二区三区久久|