On 2020-06-01 19:20, Richard Shaw wrote:
I'm trying to rebuild FreeCAD but I've run into the following and I
don't know how to fix it.
The "Py::Int" is not Python API; it probably comes from C++. Do you know
where it's defined? I haven't been able to find the definition, and
searching for "Py::Int" it on the internet gives me general results for
"py" and "int".
---
In file included from
/builddir/build/BUILD/FreeCAD-0.18.4/src/App/ExtensionPyImp.cpp:34:
/builddir/build/BUILD/FreeCAD-0.18.4/build/src/App/ExtensionPy.cpp:76:1:
warning: missing initializer for member '_typeobject::tp_vectorcall'
[-Wmissing-field-initializers]
76 | };
| ^
In file included from
/builddir/build/BUILD/FreeCAD-0.18.4/build/src/App/PropertyContainerPy.h:7,
from
/builddir/build/BUILD/FreeCAD-0.18.4/build/src/App/DocumentPy.h:7,
from
/builddir/build/BUILD/FreeCAD-0.18.4/src/App/Expression.cpp:32:
/builddir/build/BUILD/FreeCAD-0.18.4/build/src/Base/PersistencePy.h:67:9: error:
'Int' in namespace 'Py' does not name a type
67 | Py::Int getMemSize(void) const;
| ^~~
In file included from
/builddir/build/BUILD/FreeCAD-0.18.4/src/App/Expression.cpp:32:
/builddir/build/BUILD/FreeCAD-0.18.4/build/src/App/DocumentPy.h:179:9:
error: 'Int' in namespace 'Py' does not name a type
179 | Py::Int getUndoMode(void) const;
| ^~~
/builddir/build/BUILD/FreeCAD-0.18.4/build/src/App/DocumentPy.h:183:26:
error: 'Py::Int' has not been declared
183 | void setUndoMode(Py::Int arg);
| ^~~
/builddir/build/BUILD/FreeCAD-0.18.4/build/src/App/DocumentPy.h:187:9:
error: 'Int' in namespace 'Py' does not name a type
187 | Py::Int getUndoRedoMemSize(void) const;
| ^~~
/builddir/build/BUILD/FreeCAD-0.18.4/build/src/App/DocumentPy.h:194:9:
error: 'Int' in namespace 'Py' does not name a type
194 | Py::Int getUndoCount(void) const;
| ^~~
/builddir/build/BUILD/FreeCAD-0.18.4/build/src/App/DocumentPy.h:201:9:
error: 'Int' in namespace 'Py' does not name a type
201 | Py::Int getRedoCount(void) const;
| ^~~
In file included from
/builddir/build/BUILD/FreeCAD-0.18.4/src/App/PropertyContainerPyImp.cpp:40:
/builddir/build/BUILD/FreeCAD-0.18.4/build/src/App/PropertyContainerPy.cpp:76:1:
warning: missing initializer for member '_typeobject::tp_vectorcall'
[-Wmissing-field-initializers]
76 | };
| ^
In file included from
/builddir/build/BUILD/FreeCAD-0.18.4/build/src/App/PropertyContainerPy.h:7,
from
/builddir/build/BUILD/FreeCAD-0.18.4/build/src/App/ExtensionContainerPy.h:7,
from
/builddir/build/BUILD/FreeCAD-0.18.4/build/src/App/DocumentObjectPy.h:7,
from
/builddir/build/BUILD/FreeCAD-0.18.4/src/App/FeaturePython.cpp:35:
/builddir/build/BUILD/FreeCAD-0.18.4/build/src/Base/PersistencePy.h:67:9: error:
'Int' in namespace 'Py' does not name a type
67 | Py::Int getMemSize(void) const;
| ^~~
---
Full log here:
https://kojipkgs.fedoraproject.org//work/tasks/7099/45227099/build.log
Thanks,
Richard
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org