I spent some time trying to compile FreeCAD and I run into problems. It's the first time I dig into CMake seriously and I'm still a bit lost, but I have a decent understanding of all the other techs involved.
First, I had trouble to find the proper dependencies. https://www.freecadweb.org/wiki/index.p ... pileOnUnix was not up to date concerning which packages where not available in the main repos.
Using AUR and a lot of trial and error, I finally managed to compile FreeCAD but on startup I get :
Code: Select all
[Error in InitApplications type '_io._IOBase' participates in gc and is a base type but has inappropriate tp_free slot
--------------------------------------------------------------------------------
Traceback (most recent call last):
File "<string>", line 241, in <module>
File "<string>", line 54, in InitApplications
File "/usr/lib/python2.7/io.py", line 51, in <module>
import _io
TypeError: type '_io._IOBase' participates in gc and is a base type but has inappropriate tp_free slot
--------------------------------------------------------------------------------
I think it's related to pyside/shiboken, because cmake gives me the following while configuring :
Code: Select all
Using default python: .cpython-37m-x86_64-linux-gnu
libshiboken built for Release
Found PySide Tools: /usr/bin/pyside-uic, /usr/bin/pyside-rcc
Code: Select all
libshiboken built for Release
PYTHON_CONFIG_SUFFIX: -python2.7
libshiboken built for Release
Any thoughts ? Am I right to think that the problem is because pyside/shiboken use python3 instead of python2 ? Is that because I don't have the right dependencies or because of a FreeCAD cmake configuration issue ?
PS : I cloned the git repository for the sources. (upstream https://github.com/FreeCAD/FreeCAD.git -- branch master)