Skip to content

Commit

Permalink
fixed sangnom and vcmod build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Georg Pelz committed Apr 17, 2021
1 parent 21087a6 commit f8ee1b9
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 3 deletions.
8 changes: 5 additions & 3 deletions build-plugins/plugin-sangnom.sh
Original file line number Diff line number Diff line change
@@ -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

11 changes: 11 additions & 0 deletions build-plugins/plugin-vcmod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"|<VapourSynth.h>|g' \
-e 's|"VSHelper.h"|<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
24 changes: 24 additions & 0 deletions patch/vcm_esee
Original file line number Diff line number Diff line change
@@ -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 {

0 comments on commit f8ee1b9

Please sign in to comment.