分类 问题记录 下的文章

编译FFmpeg Win10

VS2017无法使用FFmpegInterop项目自带的BuildFFmpeg.bat编译,很烦。

最后在Github上找到了一个解决方案(https://github.com/Microsoft/FFmpegInterop/issues/136

使用vcpkg(https://github.com/microsoft/vcpkg)编译FFmpeg for Win10

clone项目:
git clone https://github.com/khouzam/vcpkg -b ffmpeg-uwp

引导工具:

cd vcpkg
bootstrap-vcpkg.bat

编译项目

vcpkg install ffmpeg:x86-uwp ffmpeg:x64-uwp ffmpeg:arm-uwp

编译完成包保存在vcpkgpackages

将packages下ffmpeg_平台-uwp文件夹复制到FFmpegInteropffmpegBuildWindows10目录下改名为相应平台

QQ截图20171127195913.png

QQ截图20171127195925.png

打开FFmpegWin10项目,编译,完成

参考资料:

https://trac.ffmpeg.org/wiki/CompilationGuide/WinRT

https://www.cnblogs.com/DaweiX/p/6435027.html

https://dotblogs.com.tw/evarichie/2016/05/09/165126

https://chensi.moe/blog/2015/11/19/winrt-custom-media/

http://validvoid.net/build-and-use-ffmpeginterop-win10/#visualstudio

QQ截图20170925095707.png
1、取消 使用共享运行时 及 使用快速部署

2、勾选 将程序集绑定到本地代码

3、勾选 启用ProGuard

4、链接选择 仅SDK程序集

完成上述操作,选择安卓项目右键 存档

存档完成后点击分发-创建密钥-另存为

完成。

win10下开发的WPF项目在win7运行时出现了一个错误:

System.Windows.Markup.XamlParseException: 设置属性“System.Windows.FrameworkElement.Style”时引发了异常。 —> System.IO.FileNotFoundException: 未能加载文件或程序集“PresentationFramework.Aero2, PublicKeyToken=31bf3856ad364e35”或它的某一个依赖项。系统找不到指定的文件。

解决方法:

项目-引用-将PresentationFramework.Aero2替换为PresentationFramework.Aero即可。

the same started to happen to me today; to reproduce the issue, I just open Visual Studio 2013 Update 4, create a blank Windows Phone 8.1 and double click on MainPage.xaml.

I solved by performing the following (a mix of what I’ve read around the web):

exit all Visual Studio instances
delete everything on %localappdata%MicrosoftVisualStudio12.0DesignerShadowCache
open a command prompt with admin rights and execute the following commands:
pushd %VS110COMNTOOLS%
icacls ..IDE /grant *S-1–15–2–1:(OI)(F)
icacls ..IDE /grant *S-1–15–2–1:(CI)(F)
icacls ..IDEPrivateAssemblies /grant *S-1–15–2–1:(OI)(F)
icacls ..IDEPrivateAssemblies /grant *S-1–15–2–1:(CI)(F)
icacls ..IDEPublicAssemblies /grant *S-1–15–2–1:(OI)(F)
icacls ..IDEPublicAssemblies /grant *S-1–15–2–1:(CI)(F)
finally, reboot. worked on Windows 8.1 64-bit.

来自 http://stackoverflow.com/questions/24593249/windows-phone-8-app-does-not-contain-a-definition-for-initializecomponent/24772492#24772492