1. 来源(可以不用看)
http://siliconandlithium.blogspot.com/2014/03/building-x264-on-windows-with-visual.html

2. https://github.com/ShiftMediaCenter/x264
直接下载改过的带vs工程的代码

3. SMC\x264.sln

4. 关键, yasm 1.3.0 配置

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations
vsyasm.props vsyasm.targets vsyasm.xml 这3个文件从官方下载对应版本后拷贝过来,

vsyasm.props 要改 <CommandLineTemplate>"$(YasmPath)"vsyasm.exe -Xvc -f win$(PlatformArchitecture) [AllOptions] [AdditionalOptions] "%(FullPath)"</CommandLineTemplate>

cpu太老要去掉  -Xvc

5. 工程现在能编译过, 但是输出文件夹,和调试路径不对, 修改一下即可

相关文章:

  • 2021-10-22
  • 2021-04-02
  • 2021-09-11
  • 2022-12-23
  • 2022-12-23
  • 2021-12-20
  • 2021-07-22
  • 2021-12-19
猜你喜欢
  • 2022-03-09
  • 2021-09-25
  • 2021-09-25
  • 2021-09-25
  • 2021-08-04
  • 2021-11-27
  • 2021-09-10
相关资源
相似解决方案