From f8ee1b9d097aa767a00bf47e695dbe99316e040d Mon Sep 17 00:00:00 2001 From: Georg Pelz Date: Sat, 17 Apr 2021 11:22:27 +0200 Subject: [PATCH] fixed sangnom and vcmod build instructions --- build-plugins/plugin-sangnom.sh | 8 +++++--- build-plugins/plugin-vcmod.sh | 11 +++++++++++ patch/vcm_esee | 24 ++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 patch/vcm_esee diff --git a/build-plugins/plugin-sangnom.sh b/build-plugins/plugin-sangnom.sh index 9a3c0ef..afb39ab 100644 --- a/build-plugins/plugin-sangnom.sh +++ b/build-plugins/plugin-sangnom.sh @@ -1,3 +1,5 @@ -hg clone https://bitbucket.org/James1201/vapoursynth-sangnom build -cd build -build libsangnom +ghdl dubhater/vapoursynth-sangnom +CFLAGS="$CFLAGS -Wno-deprecated-declarations" meson build --prefix="$vsprefix" +ninja -C build -j $JOBS +ninja -C build install -j $JOBS + diff --git a/build-plugins/plugin-vcmod.sh b/build-plugins/plugin-vcmod.sh index 967d4d3..fde7311 100644 --- a/build-plugins/plugin-vcmod.sh +++ b/build-plugins/plugin-vcmod.sh @@ -2,6 +2,17 @@ mkdir build cd build wget http://www.avisynth.nl/users/vcmohan/vcmod/vcmod_src.7z 7z e vcmod_src.7z + rm -fr VSHelper.h VapourSynth.h + + sed -e 's|vapoursynth.h|VapourSynth.h|g' \ + -e 's|vshelper.h|VSHelper.h|g' \ + -e 's|"VapourSynth.h"||g' \ + -e 's|"VSHelper.h"||g' \ + -i * + + # quick fix for strcpy_s. idea taked from https://github.com/opencv/opencv/pull/13032/files + patch --binary -p1 -i "../../patch/vcm_esee" + sed -i 's|vapoursynth\.h|VapourSynth.h|g; s|vshelper.h|VSHelper.h|g' vcmod.cpp # Linux is case-sensitive g++ -std=c++11 $CXXFLAGS $LDFLAGS -shared vcmod.cpp -o libvcmod.so finish libvcmod.so diff --git a/patch/vcm_esee b/patch/vcm_esee new file mode 100644 index 0000000..c63bbca --- /dev/null +++ b/patch/vcm_esee @@ -0,0 +1,24 @@ +diff --git a/modNeural.cpp.esee b/modNeural.cpp +index d4135b6..ba73036 100644 +--- a/modNeural.cpp.esee ++++ b/modNeural.cpp +@@ -8,6 +8,19 @@ Author V.C.Mohan + Aug 26, 2017, Aug 20, 2020 + ********************************************************************************/ + ++#if defined(__unix__) ++static inline void linux_strcpy_s(char *dest, size_t destsz, const char *src){ ++ strcpy(dest, src); ++} ++ ++static inline void linux_strcat_s(char *dest, size_t destsz, const char *src){ ++ strcat(dest, src); ++} ++ ++#define strcpy_s linux_strcpy_s ++#define strcat_s linux_strcat_s ++#endif ++ + + typedef struct { +