mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-04-06 11:31:28 +03:00
install ffmpeg lib with vcpkg (#8724)
* use vcpkg to install ffmpeg and build sdk from source, so no prebuild lib in hwcodec. * link ffmpeg in rustdesk directly, ffmpeg can be used as basic library. * for windows developers, `VCPKG_DEFAULT_HOST_TRIPLET` env need to be set to `x64-windows-static` during installation. Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
13
res/vcpkg/ffmpeg/0003-fix-windowsinclude.patch
Normal file
13
res/vcpkg/ffmpeg/0003-fix-windowsinclude.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/fftools/cmdutils.c b/fftools/cmdutils.c
|
||||
--- a/fftools/cmdutils.c
|
||||
+++ b/fftools/cmdutils.c
|
||||
@@ -51,6 +51,8 @@
|
||||
#include "fopen_utf8.h"
|
||||
#include "opt_common.h"
|
||||
#ifdef _WIN32
|
||||
+#define _WIN32_WINNT 0x0502
|
||||
+#define WIN32_LEAN_AND_MEAN
|
||||
#include <windows.h>
|
||||
#include "compat/w32dlfcn.h"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user