• <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>

            牽著老婆滿街逛

            嚴(yán)以律己,寬以待人. 三思而后行.
            GMail/GTalk: yanglinbo#google.com;
            MSN/Email: tx7do#yahoo.com.cn;
            QQ: 3 0 3 3 9 6 9 2 0 .

            在Windows中使用MinGW編譯X264

            轉(zhuǎn)載自:http://www.cnblogs.com/xiongjiaji/archive/2012/06/08/2541265.html

            參考:http://ayobamiadewole.com/Blog/Others/x264compilation.aspx

            注意:安裝完MinGW后,要把“安裝路徑\MinGW\bin”加到PATH環(huán)境變量中。否則在./configure的時(shí)候會“No working C compiler found”。

             

             

            具體步驟如下:

            For someone coming from a windows background, where you do virtually everything, using GUI probably with Visual studio or an equivalent IDE, compiling a program from the command line can be a daunting task. 

            This blog post will guide you through compiling and building the popular open source video encoding library on windows using the MinGW(Minimalist GNU on Windows). 

            First you need to download the x264 source code from http://x264.nl/ Or if you know how to use git, you can git clone the x264 from git://git.videolan.org/x264.git. 

            Then you should download MinGW from http://sourceforge.net/projects/mingw/files Download the mingw-get-inst-20111118.exe (591.9 kB) install it and during the installation steps, select all the check boxes. (直接到這里下載就可以了:http://sourceforge.net/projects/mingw/)

            After the installation is completed(然后還要把環(huán)境變量加上), then from Start button , click All program, then click MinGW and then Click on MinGW shell, this brings up the following window 

            MinGW bash 
            From the msys shell change your directory to the location where your x264 source code is, in my own case the x264 code is in the c: drive so I will simply Type cd c:\x264

             MinGW bash2 

            Then type ./configure and press enter, this screen waits for some seconds and the bring

             MinGW bash4 

            Then you can now type make and press enter, this will bring up the window below, showing the progress of the compilation process.

             MinGW bash3 

            After the compilation is finished, if you look into your x264 directory you will find x264.exe file there.

             MinGW bash5 


            Now compiling the x264 into a dynamic link library that can be used in Visual studio takes another process entirely. Open the MinGW bash once again and change the directory to the location of your x264 source code, just like you did previously. 
            Then type 
            ./configure --disable-cli --enable-shared --extra-ldflags=-Wl,--output-def=libx264-120.def 
                          or just 
            ./configure --disable-cli --enable-shared --extra-ldflags=-Wl,--output-def=libx264.def


             MinGW bash6 

            Now in libx264-120.def “120” is the version of the x264 you are using, you can find the version of the x264 you are using by opening the x264.h file in your x264 source folder you will see something like this #define X264_BUILD 120 depending on your version.

            You can now type the make command and press enter and you will find the libx264-120.dll in your x264 source folder. Then rename libx264-120.dll to libx264.dll and you have you dynamic link library to work with.

             window 

            If you wish to generate the Visual Studio .lib file to work with then open a Visual Studio command prompt, and change the directory to the location of the x264 source . 
            Then run this command
             LIB /DEF:libx264.def 
            Then press enter 

            visual studio command prompt 

            And your libx264.lib would be generated.

            posted on 2013-01-11 16:10 楊粼波 閱讀(5817) 評論(0)  編輯 收藏 引用


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


            青青青青久久精品国产h久久精品五福影院1421| 久久久综合香蕉尹人综合网| 亚洲AV无码一区东京热久久| 无码伊人66久久大杳蕉网站谷歌 | 久久不射电影网| 亚洲国产精品狼友中文久久久 | 久久久精品免费国产四虎| 久久亚洲国产精品123区| 久久国产精品-国产精品| 久久99国产精品久久99小说| 国产精品久久波多野结衣| 国产精品一区二区久久精品涩爱| 色综合久久久久网| 久久精品国产亚洲AV无码麻豆| 久久久久亚洲AV成人网人人网站| 色综合久久无码五十路人妻| 热久久国产欧美一区二区精品| 久久国产精品-久久精品| 久久精品国产亚洲av日韩| 中文字幕无码久久人妻| 久久国产成人| 99热都是精品久久久久久| 国产精品久久久久久久| 99蜜桃臀久久久欧美精品网站 | 久久精品国产亚洲av水果派 | 99久久国产热无码精品免费| 精品国产乱码久久久久久呢| 亚洲国产成人精品91久久久| 久久不见久久见免费影院www日本| 久久99免费视频| 91亚洲国产成人久久精品网址 | 久久电影网一区| 国产一久久香蕉国产线看观看| 久久国产精品99久久久久久老狼| 成人国内精品久久久久一区| 久久一日本道色综合久久| 蜜臀av性久久久久蜜臀aⅴ麻豆| 久久国产精品无码一区二区三区| 蜜臀av性久久久久蜜臀aⅴ麻豆| 国产91色综合久久免费| 51久久夜色精品国产|