Open sl1pkn07 opened 4 years ago
Sorry i dont use a linux environment.(So no makefile) but i tried to fix it by your compile log.😂
my "makefile" xd
echo "all:
g++ -c -fpermissive -fPIC ${CXXFLAGS} ${CPPFLAGS} -I./LC $(pkg-config --cflags vapoursynth) -o VSPlugin.o LC/VSPlugin.cpp
g++ -shared -fPIC ${LDFLAGS} -o lib${_plug}.so VSPlugin.o" > Makefile
seems not build with gcc due a not found std::sinf
, add `#include
works ok if add
diff --git a/LC/LC.H b/LC/LC.H
index fb90fdd..7ef44b2 100644
--- a/LC/LC.H
+++ b/LC/LC.H
@@ -1,5 +1,6 @@
#pragma once
#include "Helper.h"
+#include <cmath>
#include <iostream>
#include <vector>
#include <algorithm>
and add -stdlib=libc++
in the "makefile" rule
greetings
Hello, since vapoursynth R60, i get this then load the plugin
/usr/lib/vapoursynth/liblc.so: undefined symbol: _ZNSt20bad_array_new_lengthC1Ev
how fix this?
EDIT:
found it. i ilso need add -stdlib=libc++
tho the linker step
greetings
gcc 9.3.0 VS 49