有人成功编译过吗,把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 请高人指教,哪的问题,或者你还有别的方法编译吗?
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 请高人指教,哪的问题,或者你还有别的方法编译吗?
解决方案 »
- 新人提问关于ATL复合控件的问题,如何实现?
- ADO连接远程数据库问题
- 请问vc如何用一个函数同时创建多个文件夹,可以同时创建不存在的父文件夹
- modem和串口通讯(ActiveX控件MSCOMM32.OCX)丢数据什么原因?
- PostMessage(WM_KEYDOWN, 9, NULL); 为什么不能成功
- 100分求助VC++6.0下载地址!最好不要FTP!
- 100分,这是什么编译错误!10分钟内给分!
- 想做一个读取MP3标签的软件,调用id3lib,可是无法在VS2012上编译
- 请问:如何配置CLB(Component Load Balancing)???(是否可以在Windows 2000 Advance Server?)
- 使用API,如何在对话框中显示/更换图标?
- Static控件显示图片
- 如何在编译时 发现文件不存在?
http://www.cnblogs.com/jessezhao/archive/2009/05/21/1486351.html
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.