mirror of
https://git.freebsd.org/ports.git
synced 2025-06-04 12:26:27 -04:00
vapoursynth.Error: Failed to obtain VapourSynth API pointer. System does not support SSE2 or is the Python module and loaded core library mismatched?
33 lines
863 B
Text
33 lines
863 B
Text
--- src/core/cpufeatures.c.orig 2016-02-02 16:12:42 UTC
|
|
+++ src/core/cpufeatures.c
|
|
@@ -60,7 +60,7 @@ void getCPUFeatures(CPUFeatures *cpuFeat
|
|
}
|
|
}
|
|
}
|
|
-#elif defined(VS_TARGET_OS_LINUX)
|
|
+#elif defined(VS_TARGET_OS_LINUX) && defined(__linux__)
|
|
#include <sys/auxv.h>
|
|
|
|
void getCPUFeatures(CPUFeatures *cpuFeatures) {
|
|
@@ -98,5 +98,9 @@ void getCPUFeatures(CPUFeatures *cpuFeatures) {
|
|
#endif
|
|
}
|
|
#else
|
|
-#error Do not know how to get CPU features.
|
|
+void getCPUFeatures(CPUFeatures *cpuFeatures) {
|
|
+ memset(cpuFeatures, 0, sizeof(CPUFeatures));
|
|
+
|
|
+ cpuFeatures->can_run_vs = 1;
|
|
+}
|
|
#endif
|
|
--- src/core/cpufeatures.h.orig 2016-02-02 16:12:42 UTC
|
|
+++ src/core/cpufeatures.h
|
|
@@ -51,8 +51,6 @@ typedef struct CPUFeatures {
|
|
char efp_double;
|
|
char dfp;
|
|
char vsx;
|
|
-#else
|
|
-#error No VS_TARGET_CPU_* defined/handled!
|
|
#endif
|
|
} CPUFeatures;
|
|
|