Closed johnboiles closed 4 years ago
That issue has nothing to do with virtualcam - you need to disable Python support in your cmake command via -DDISABLE_PYTHON=YES
or add the following to deps/obs-scripting/obs-scripting-python-import.h
:
#if PY_VERSION_HEX >= 0x030800f0
static inline void py3__Py_DECREF(const char *filename, int lineno,
PyObject *op)
{
(void)filename; /* may be unused, shut up -Wunused-parameter */
(void)lineno; /* may be unused, shut up -Wunused-parameter */
_Py_DEC_REFTOTAL;
if (--op->ob_refcnt != 0) {
#ifdef Py_REF_DEBUG
if (op->ob_refcnt < 0) {
_Py_NegativeRefcount(filename, lineno, op);
}
#endif
} else {
_Py_Dealloc(op);
}
}
#undef Py_DECREF
#define Py_DECREF(op) py3__Py_DECREF(__FILE__, __LINE__, _PyObject_CAST(op))
static inline void py3__Py_XDECREF(PyObject *op)
{
if (op != NULL) {
Py_DECREF(op);
}
}
#undef Py_XDECREF
#define Py_XDECREF(op) py3__Py_XDECREF(_PyObject_CAST(op))
#endif
#if PY_VERSION_HEX >= 0x030900b0
static inline int py3_PyType_HasFeature(PyTypeObject *type,
unsigned long feature)
{
return ((PyType_GetFlags(type) & feature) != 0);
}
#define PyType_HasFeature(t, f) py3_PyType_HasFeature(t, f)
#endif
In the main CI we fixed this by disabling Python entirely, I'm currently investigating side-effects for the above fix to re-enable it by default.
you need to disable Python support in your cmake command via -DDISABLE_PYTHON=YES
Yep! That's what this PR does I think (see diff)
The errors look like this:
I noticed in the OBS build instructions there's this python-related cmake flag that I don't think was there before:
It'd be more consistent to instead use an environment variable for this (like we do for
MACOSX_DEPLOYMENT_TARGET
andQTDIR
). But I'm not 100% that will work and I want to try out https://github.com/obsproject/obs-studio/pull/3492.