vp8的原始代码的路径为: d://project/vp8/vp8
因此,在cygwin的窗口中键入:
$ cd /cygdrive/d/project/vp8/vp8/build
$ ../src/configure --target=x86-win32-vs8 --enable-static-msvcrt --disable-install-docs
得到以下内容:
Configuring selected codecs
enableing vp8_encoder
enableing vp8_decoder
Configuring for target 'x86-win32-vs8'
enabling x86
enabling runtime_cpu_detect
enabling mmx
enabling mmx
enabling sse
enabling sse2
enabling sse3
enabling ssse3
enabling sse4_1
Neither yasm or nasm habe been found
Configuration failed.This could reflect a misconfiuration of your toochains, improper options selected, or another problem. If you don't see any useful error messages above, the next step is to look at the confifure error log file (config.err) to determine what configure was tring to do when it died.
究其原因,是yasm需要管理员权限导致的。
重新来过之后,搞定。
注意:
中间还走过一次弯路。
在webM project的官方网站,http://code.google.com/p/webm/downloads/list, 下载代码时要注意,
vpx-vp8-debug-src-x86-win32mt-vs9-v0.9.6.1.zip , 是用于visual studio 2008 版本的代码(-vs9-);
vpx-vp8-debug-src-x86-win32mt-vs8-v0.9.5.zip ,是用于visual studio 2005 版本的代码(-vs8-);
注意区分。高版本可以兼容低版本代码,反之不然。
生成的solution,可以在visual studio中打开了编译了。