• <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、解壓后所有的東西都在一個(gè)文件夾里了,如果有耐心可以看一下自帶的說(shuō)明文檔(install.txt)
            3、其中有一段在vs2010下的說(shuō)明

            ==================================================================
            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.

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

            簡(jiǎn)單的操作其實(shí)也就兩行,一個(gè)是生成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

            然后打開(kāi)jpeg.sln,直接編譯就ok了

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

            評(píng)論

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

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

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

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

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

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

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


            久久中文字幕精品| 久久婷婷五月综合国产尤物app| 亚洲国产精品久久久久| 久久亚洲国产午夜精品理论片| 久久中文娱乐网| 久久久久久综合网天天| 国内精品久久久久伊人av| 久久久久无码专区亚洲av| 久久久久亚洲AV无码专区首JN | 午夜精品久久久久久久无码| 香蕉aa三级久久毛片| 国产精品久久久久aaaa| 亚洲成av人片不卡无码久久| 国产综合久久久久久鬼色| 一级A毛片免费观看久久精品| 国产人久久人人人人爽| 亚洲精品国产综合久久一线| 99精品国产在热久久无毒不卡| 亚洲综合久久夜AV | 国产精品VIDEOSSEX久久发布| 久久99精品国产自在现线小黄鸭| 亚州日韩精品专区久久久| 91久久精品国产成人久久| 久久亚洲私人国产精品vA | 国产成人精品久久综合| 国产偷久久久精品专区| 国产成人精品久久综合| 777米奇久久最新地址| 国内精品伊人久久久久av一坑 | 久久国产亚洲高清观看| 伊人久久大香线蕉综合影院首页| 亚洲一级Av无码毛片久久精品| 久久99精品久久久久久9蜜桃| 狠色狠色狠狠色综合久久 | 久久久黄片| 精品久久久久中文字幕一区| 国产精品99久久久久久董美香| 久久精品亚洲日本波多野结衣 | 久久精品国产亚洲Aⅴ蜜臀色欲 | 久久天天躁夜夜躁狠狠| 久久这里只有精品首页|