有人成功编译过吗,把ffmpeg编译成wince平台可用的,昨天花了一天的时间才把ffmpeg编译成windows桌面版的.但在编译成wince版时,一直没成功.下面是我参考的文章,按照作者的步骤,在第5步,开始编译,最后的命令行出现了如下代码:
License: LGPL
Creating config.mak and config.h...
./configure: line 2135: cmp: command not found
然后再输入make命令;
lizhigang@f500ad61206540b /ffmpegwm5/libavutil
$ make
bash: make: command not found  请高人指教,哪的问题,或者你还有别的方法编译吗?

解决方案 »

  1.   

    忘了把文章的地址贴出来..
    http://www.cnblogs.com/jessezhao/archive/2009/05/21/1486351.html
      

  2.   

    建议在Windows或wince中使用这些跨平台库别用它自带的makefile编译,建立工程自己来,用evc或者platform builder,或者VS2005、2008的智能设备。cygwin,这个东西我不看好和Windows CE的兼容性
      

  3.   

    能说详细点吗,你的意思是把ffmpeg的源码用VS2005加载,然后用VS2005编译?
      

  4.   

    1------------- compile ffmpeg for x86 windows Compiling 
    From the official website of ffmpeg, http://ffmpeg.mplayerhq.hu/, I’ve downloaded on June 2006 a svn repository of ffmpeg. I tried the following things also on newer versions but I had a few problems. To download from svn do this (from Cygwin for example, with svn package installed): 
    svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg Download the mingw environment and msys. 
    http://www.mingw.org/download.shtml Then, according to what is said here: 
    http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html 
    I’ve tuned the msys in order to produce .lib files correctly. 
    At this point with 
    ./configure --enable-memalign-hack --disable-static --enable-shared --enable-mingw32 --disable-debug 
    And 
    Make lib The compiling should work through and produce: dll and lib files in 
    Avcodec 
    Avformat 
    Avutils 
    directories. You copy the lib, h and dll files in the ffmpeg root directory and the dlls in c:\windows\system32 Modifications in order to have network support: 
    Now, the original code has been modified based on what is said here: 
    http://lists.mplayerhq.hu/pipermail/ffm ... 09939.html 2------------- compile ffmpeg for winCE 
    Compiling 
    As starting point we take exactly the ffmpeg code modified as described by the previous step. Download the VLC cross compiler as described in 
    http://www.videolan.org/developers/vlc/INSTALL.wince And in particular: 
    http://www.videolan.org/pub/testing/win ... 17.tar.bz2 This cross compiler needs to be installed under Linux (currently using Fedora core 5). To the code, some parts have been modified. 
    Also the configure file has been further modified. The file udp.c has been totally changed from the x86 version: most changes are in udp.c 
    Even file.c has been modified. Then, in order to compile, set the path: 
    PATH=/usr/local/wince/cross-tools/bin:$PATH And then launch the configure that looks like: 
    ./configure --enable-memalign-hack --disable-shared --enable-static --disable-encoders --cpu=armv4l --cross-prefix=arm-wince-pe- --disable-v4l --disable-v4l2 --disable-dv1394 --disable-altivec --disable-audio-oss --disable-audio-beos --disable-mpegaudio-hp --disable-altivec --enable-mingwce --disable-decoders --enable-decoder=h264 --disable-bktr --disable-vhook --disable-muxers --disable-debug --disable-strip And then 
    Make lib Producing an application that uses Ffmpeg for winCE 
    At this point, object files are created. We tried to use these objects file with a Microsoft Compiler (in order to configure libavcodec and libavformat as static libraries for a Microsoft Visual Studio project), but this 
    operation never succeeded. It seems that the Microsoft WinCE Linker has problems in linking cross compiled static libraries. The only way to use those objects, is to build a native linux application, that will be cross compiled for Windows, generating an “linux platform generated” executable file. To compile and link this application, first of all the path needs to be set like: 
    PATH=/usr/local/wince/cross-tools/arm-wince-pe/bin:$PATH So that the 
    Which gcc Command will produce the line: 
    /usr/local/wince/cross-tools/arm-wince-pe/bin/gcc The compiling command is: 
    gcc -c native_application.c 
    -I /home/gualdi/lavori/ffmpeg_net_enabled_plusWinCE/libavcodec 
    -I /home/gualdi/lavori/ffmpeg_net_enabled_plusWinCE/libavutil 
    -I /home/gualdi/lavori/ffmpeg_net_enabled_plusWinCE/libavformat And the building is: 
    gcc -Xlinker -e -Xlinker MyMain -o native_application.exe 
    native_application.o 
    –L/home/gualdi/lavori/ffmpeg_net_enabled_plusWinCE/libavutil 
    -L/home/gualdi/lavori/ffmpeg_net_enabled_plusWinCE/libavcodec 
    -L/home/gualdi/lavori/ffmpeg_net_enabled_plusWinCE/libavformat 
    -L/usr/local/wince/cross-tools/lib -l avformat -l avcodec -l avutil -l ws2 
    Please, note that the order of the libraries in the linking phase is not randomly picked. A different order would produce linking error.