欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

avs3工程编译

程序员文章站 2022-06-23 22:30:33
第一天开始记录avs3的学习SAVS3_hpm32工程编译按照工程README的操作*## Windows Operating Systems (64-bit):Build RequirementsVisual Studio* 2017 (can be downloaded here)CMake 3.5 or later (can be downloaded here)YASM Assembler version 1.2.0 or laterDownload the yasm exe f...

第一天开始记录avs3的学习
SAVS3_hpm32工程编译
按照工程README的操作
*## Windows Operating Systems (64-bit):

  • Build Requirements
    • Visual Studio* 2017 (can be downloaded here)
    • CMake 3.5 or later (can be downloaded here)
    • YASM Assembler version 1.2.0 or later
    • Download the yasm exe from the following link
    • Rename yasm-1.3.0-win64.exe to yasm.exe
    • Copy yasm.exe into a location that is in the PATH environment variable
    • A shell executor, i.e. the bash in git for windows, is needed and should be found in PATH variable. For example, the path C:\Program Files\Git\bin can be added if git-for-windows is installed.
  • Build Instructions
    • Generate the Visual Studio* 2017 project files by following the steps below in a windows command line prompt:
      • In the main repository directory go under the \Build\windows location
      • Run generate_vs17.bat [such would generate the visual studio project files]
    • Open the “SVT-AVS3.sln” using Visual Studio* 2017 and click on Build – > Build Solution**

依次下载vs2017,cmake,yasm和git,并添加至环境;

接着,按照操作\Build\windows下运行build.bat(README说是运行generate_vs17.bat,但并没有)。再生成项目过程提示找不到标识符:
avs3工程编译
并且看到默认调用x86进行编译。虽然能成功生成项目svt-avs3.sln,但vs里用x64编译是还是报错:模块计算类型x64与目标计算类型x86冲突
avs3工程编译
百度了好久,都是一样的解决方法,都不行。

解决:
不要使用\Build\windows下的build.bat批处理文件生成项目,因为在调用cmake时会自动使用x86版本(猜测)。自己手动cmake_gui生成项目:
avs3工程编译
然后依次点config和generate(注意选择vs版本为vs2017 win63),即可。

最终,如愿生成exe(刚刚开始接触avs3,小小白一只):
avs3工程编译

本文地址:https://blog.csdn.net/a_zbm/article/details/107187510