当前位置: 移动技术网 > 移动技术>移动开发>Android > avs3工程编译

avs3工程编译

2020年07月09日  | 移动技术网移动技术  | 我要评论

第一天开始记录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
    • 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,但并没有)。再生成项目过程提示找不到标识符:
在这里插入图片描述
并且看到默认调用x86进行编译。虽然能成功生成项目svt-avs3.sln,但vs里用x64编译是还是报错:模块计算类型x64与目标计算类型x86冲突
在这里插入图片描述
百度了好久,都是一样的解决方法,都不行。

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

最终,如愿生成exe(刚刚开始接触avs3,小小白一只):
在这里插入图片描述

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

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网