专栏首页Visual Codex在Windows环境下编译VPX

在Windows环境下编译VPX

首先到CygWin的官网下载CygWin的安装包,编译环境需在此环境下进行,https://cygwin.com/install.html,安装的过程中,记得一定要安装perl,make,wget,apt-cyg这些命令,不然后面会很麻烦

安装apt-cyg

可以直接将这个脚本拷贝到系统中,然后运行即可。

然后在CygWin环境下,切换到libvpx的目录下,运行configure

./configure  --target=x86-win32-vs12 --enable-static-msvcrt --disable-install-docs

想不生成文档的话,最后的 --disable-install-docs 可以去掉

运行的结果如下

$ ../libvpx-master/configure --target=x86-win32-vs16 --enable-static-msvcrt
  enabling static_msvcrt
  enabling vp8_encoder
  enabling vp8_decoder
  enabling vp9_encoder
  enabling vp9_decoder
Configuring for target 'x86-win32-vs16'
  enabling x86
  enabling runtime_cpu_detect
  enabling mmx
  enabling sse
  enabling sse2
  enabling sse3
  enabling ssse3
  enabling sse4_1
  enabling avx
  enabling avx2
  enabling avx512
    disabling avx512: not supported by compiler
  using yasm
  disabling ccache
  enabling postproc
  enabling unit_tests
  enabling webm_io
  enabling libyuv
Bypassing toolchain for environment detection.
Creating makefiles for x86-win32-vs16 libs
Creating makefiles for x86-win32-vs16 examples
Creating makefiles for x86-win32-vs16 tools
Creating makefiles for x86-win32-vs16 docs
Creating makefiles for x86-win32-vs16 solution

运行完成后会生成makefile,接下来用make命令就可以生成解决方案

运行的内容如下

starxiang@VastaiTech:/mnt/d/Workspace/vp9$ make
    [CREATE] vpx.def
    [CREATE] vpx_config.asm
    [CREATE] vpx_scale_rtcd.h
    [CREATE] vpx_dsp_rtcd.h
    [CREATE] vp8_rtcd.h
    [CREATE] vp9_rtcd.h
    [CREATE] vpx.vcxproj
generating filter 'Source Files' from 465 files
generating filter 'Header Files' from 227 files
generating filter 'Build Files' from 20 files
generating filter 'References' from 7 files
Ignored files list (7 items) is:
    ../libvpx-master/vpx_dsp/vpx_dsp_rtcd_defs.pl
    ../libvpx-master/CHANGELOG
    ../libvpx-master/vpx_scale/vpx_scale_rtcd.pl
    ../libvpx-master/vp8/common/rtcd_defs.pl
    ../libvpx-master/vp9/common/vp9_rtcd_defs.pl
    ../libvpx-master/build/make/version.sh
    ../libvpx-master/build/make/rtcd.pl
    [CREATE] vp9rc.vcxproj
generating filter 'Source Files' from 150 files
generating filter 'Header Files' from 78 files
generating filter 'Build Files' from 3 files
generating filter 'References' from 1 files
Ignored files list (1 items) is:
    ../libvpx-master/vp9/common/vp9_rtcd_defs.pl
    [CREATE] gtest.vcxproj
generating filter 'Source Files' from 1 files
generating filter 'Header Files' from 0 files
generating filter 'Build Files' from 0 files
generating filter 'References' from 0 files
Ignored files list (0 items) is:
    [CREATE] test_libvpx.vcxproj
generating filter 'Source Files' from 122 files
generating filter 'Header Files' from 32 files
generating filter 'Build Files' from 4 files
generating filter 'References' from 2 files
Ignored files list (0 items) is:
    [CREATE] test_intra_pred_speed.vcxproj
generating filter 'Source Files' from 5 files
generating filter 'Header Files' from 3 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 2 files
Ignored files list (0 items) is:
    [CREATE] test_rc_interface.vcxproj
generating filter 'Source Files' from 4 files
generating filter 'Header Files' from 3 files
generating filter 'Build Files' from 3 files
generating filter 'References' from 3 files
Ignored files list (0 items) is:
make[1]: Warning: File '.projects' has modification time 0.086 s in the future
    [vcproj] vpxdec.vcxproj
generating filter 'Source Files' from 64 files
generating filter 'Header Files' from 33 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
    [vcproj] vpxenc.vcxproj
generating filter 'Source Files' from 67 files
generating filter 'Header Files' from 34 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
    [vcproj] vp9_spatial_svc_encoder.vcxproj
generating filter 'Source Files' from 19 files
generating filter 'Header Files' from 11 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
    [vcproj] resize_util.vcxproj
generating filter 'Source Files' from 3 files
generating filter 'Header Files' from 2 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
    [vcproj] vpx_temporal_svc_encoder.vcxproj
generating filter 'Source Files' from 13 files
generating filter 'Header Files' from 8 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
    [vcproj] simple_decoder.vcxproj
generating filter 'Source Files' from 15 files
generating filter 'Header Files' from 10 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
    [vcproj] postproc.vcxproj
generating filter 'Source Files' from 15 files
generating filter 'Header Files' from 10 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
    [vcproj] decode_to_md5.vcxproj
generating filter 'Source Files' from 18 files
generating filter 'Header Files' from 12 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
    [vcproj] simple_encoder.vcxproj
generating filter 'Source Files' from 13 files
generating filter 'Header Files' from 8 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
    [vcproj] vp9_lossless_encoder.vcxproj
generating filter 'Source Files' from 13 files
generating filter 'Header Files' from 8 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
    [vcproj] twopass_encoder.vcxproj
generating filter 'Source Files' from 13 files
generating filter 'Header Files' from 8 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
    [vcproj] decode_with_drops.vcxproj
generating filter 'Source Files' from 15 files
generating filter 'Header Files' from 10 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
    [vcproj] set_maps.vcxproj
generating filter 'Source Files' from 13 files
generating filter 'Header Files' from 8 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
    [vcproj] vp8cx_set_ref.vcxproj
generating filter 'Source Files' from 13 files
generating filter 'Header Files' from 8 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
    [vcproj] vp9cx_set_ref.vcxproj
generating filter 'Source Files' from 12 files
generating filter 'Header Files' from 7 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Warning: File '.projects' has modification time 0.11 s in the future
    [vcproj] tiny_ssim.vcxproj
generating filter 'Source Files' from 14 files
generating filter 'Header Files' from 10 files
generating filter 'Build Files' from 2 files
generating filter 'References' from 1 files
Ignored files list (0 items) is:
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Warning: File '.projects' has modification time 0.11 s in the future
make[1]: Nothing to be done for 'all'.
make[1]: warning:  Clock skew detected.  Your build may be incomplete.
make[1]: Warning: File 'tiny_ssim.vcxproj' has modification time 0.064 s in the future
    [CREATE] vpx.sln
../libvpx-master/build/make/gen_msvs_sln.sh \
             --dep=resize_util:vpx  --dep=vpxdec:vpx  --dep=vp9_lossless_encoder:vpx  --dep=decode_with_drops:vpx  --dep=tiny_ssim:vpx  --dep=test_rc_interface:vpx  --dep=simple_decoder:vpx  --dep=test_intra_pred_speed:vpx  --dep=test_libvpx:vpx  --dep=set_maps:vpx  --dep=vp9rc:vpx  --dep=vpxenc:vpx  --dep=vp9cx_set_ref:vpx  --dep=vp9_spatial_svc_encoder:vpx  --dep=vp8cx_set_ref:vpx  --dep=decode_to_md5:vpx  --dep=postproc:vpx  --dep=twopass_encoder:vpx  --dep=simple_encoder:vpx  --dep=vpx_temporal_svc_encoder:vpx \
            --dep=test_libvpx:gtest \
            --ver=16\
            --out=vpx.sln vpx.vcxproj resize_util.vcxproj vpxdec.vcxproj vp9_lossless_encoder.vcxproj decode_with_drops.vcxproj tiny_ssim.vcxproj test_rc_interface.vcxproj simple_decoder.vcxproj test_intra_pred_speed.vcxproj test_libvpx.vcxproj set_maps.vcxproj vp9rc.vcxproj vpxenc.vcxproj vp9cx_set_ref.vcxproj vp9_spatial_svc_encoder.vcxproj vp8cx_set_ref.vcxproj decode_to_md5.vcxproj postproc.vcxproj gtest.vcxproj twopass_encoder.vcxproj simple_encoder.vcxproj vpx_temporal_svc_encoder.vcxproj
make[1]: Warning: File 'vpx.sln.mk' has modification time 0.083 s in the future
  * msbuild.exe not found in path.
  *
  * You will have to build all configurations manually using the
  * Visual Studio IDE. To allow make to build them automatically,
  * add the Common7/IDE directory of your Visual Studio
  * installation to your path, eg:
  *   C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE
  *
  * Skipping build of Debug|Win32 (msbuild.exe not in path).
  *
  * Skipping build of Release|Win32 (msbuild.exe not in path).
  *
make[1]: warning:  Clock skew detected.  Your build may be incomplete.

本文参与腾讯云自媒体分享计划,欢迎正在阅读的你也加入,一起分享。

我来说两句

0 条评论
登录 后参与评论

相关文章

  • ESP32 windows下编译环境搭建

    https://dl.espressif.com/dl/esp32_win32_msys2_environment_and_toolchain-20170918...

    治电小白菜
  • 详解 Windows 下 Eclipse CDT 配置 C/C++ 编译环境

    其实 windows 下,C、C++ IDE 也不少,但许多IDE的 UI 和用户体验基本都停留在上个世纪,除了 eclipse CDT 和 visual st...

    用户1177713
  • windows上安装golang1.7的编译环境

    参考:http://blog.csdn.net/sbjiesbjie/article/details/50472037

    克虏伯
  • MS Windows 下基于Atom的LaTeX编译环境的配置

    一、编辑器搭建 安装Atom 正如Atom的宣传语,Atom is a hackable text editor for the 21thcentury. 因此...

    企鹅号小编
  • Windows下GCC编译环境中文乱码解决方案

    原因简单分析:Windows(中文)默认的字符集是Windows-936(GBK),而GCC编译器默认编译的时候是按照UTF-8解析的,当未指定字符集时一律当作...

    战神伽罗
  • cocos2d 在windows环境下搭建

    详细搭建步骤如下: 1、Android 开发环境搭建 Android开发环境搭建不是重点,相信看此文章的很多人都已经搭建成功,这里随便概述性的说说。 1、下载 ...

    xiangzhihong
  • Qt在Windows下的三种编程环境搭建

    http://www.cnblogs.com/Bonker/p/3565147.html

    bear_fish
  • 在Ubuntu安装go编译环境

    在Ubuntu安装go编译环境 好记性不如烂笔头,所以趁热打铁记录下golang编译环境的安装过程。   首先下载一些依赖包: sudo apt-get in...

    随机来个数
  • mall在Windows环境下的部署

    1.关于IDEA的安装与使用具体参考https://github.com/judasn/IntelliJ-IDEA-Tutorial

    macrozheng

扫码关注云+社区

领取腾讯云代金券