在cygwin上启用libx264构建ffmpeg

时间:2011-01-24 05:52:31

标签: ffmpeg

我正在尝试使用libx264构建ffmpeg(0.6.1版本),以便在cygwin环境下的Windows平台上获得h.264支持。

我编译了x264-snapshot-20101228-2245并将库安装在/usr/local/lib/(libx264.a)中。这里的配置选项(./configure --enable-shared --disable-asm)

现在我正在尝试使用以下配置选项构建ffmpeg:

./configure --enable-shared --disable-static --enable-pthreads --enable-libx264 --enable-gpl --disable-doc --enable-memalign-hack --extra-ldflags=/usr/local/lib

但是配置错误。 贝壳: 错误:未找到libx264

++++++++++++++++++++ config.err

gcc -o /tmp/ffconf.ww1dJh1K.exe /tmp/ffconf.X7919VWP.o -lpsapi -lz -lbz2 -lm -lx264 -lm
/usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld: cannot find -lx264
collect2: ld returned 1 exit status
ERROR: libx264 not found
++++++++++++++++++++++

工具详情 Gcc版本:gcc(GCC)4.3.4 20090804(发布)1

如果有人在这里指出这个问题,我会很高兴。

3 个答案:

答案 0 :(得分:4)

尝试--extra-ldflags =“ - L / usr / local / lib”。如果这没有帮助,请尝试LD_LIBRARY_PATH = / usr / local / lib:$ LD_LIBRARY_PATH ./configure ...

答案 1 :(得分:0)

您是否尝试将--enable-memalign-hack添加到配置标志

答案 2 :(得分:0)

在Windows上,您应该使用

<!DOCTYPE html>
<html>
<script src= "http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
    <script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
    <script src="http://www.parsecdn.com/js/parse-1.2.13.min.js"></script>
    <script src="https://maps.googleapis.com/maps/api/js"></script>
    <script src="js/controllers.js"></script>
    <script src="js/effect.js"></script>
    <script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
    <link rel="stylesheet" href="css/app.css">
<body>


<div ng-app="myApp" ng-controller="customersCtrl">

  <div id="map">Loading...</div>

  <div id="searchForm" ng-controller="customersCtrl">
    <form novalidate>
        <select type="text" ng-model="user.degree">
            <option>Diploma</option><option>Advanced Diploma</option><option>Certificate III</option>
        </select>
        <select type="text" ng-model="user.industry">
            <option>Finance</option><option>Construction</option><option>Energy and Power</option>
        </select>
        <!-- Gender: <input type="radio" ng-model="user.gender" value="male" />male
          <input type="radio" ng-model="user.gender" value="female" />female<br />
          <input type="button" ng-click="reset()" value="Reset" /> 
           <pre>user = {{user | json}}</pre>
            <pre>master = {{master | json}}</pre>-->
      <input type="submit" ng-click="update(user)" value="Select and Search" />
    </form>
  </div>

     <ul ng-repeat="x in names">
            <a href="{{x.webLink}}"><h3> {{ x.name  }} </h3></a>
        <h4> {{ x.place }} </h4>
      <p> <img ng-src="{{x.image}}"> </p> 
   </ul>

        <!--<p> {{ x.length + ', ' + x.description }} 
            <p> {{ x.comment }} </p> </p> -->


</div>

</body>
</html>