Thank you so much @yorik.
I wanted to compile FreeCAD 0.18 on manjaro linux. manjaro is based on Arch Linux and i follow the instruction in this page:
https://www.freecadweb.org/wiki/CompileOnUnix
I installed all dependency (i have doubt about correct version as i want to compile for python3), but i ran this command:
and configure files. the output is ok:
Code: Select all
Compiler: GNU, version: 8.2.1
prefix: /usr/local
datadir: data
docdir: doc
includedir: include
libdir: /usr/local/lib
cmake: 3.12.4
Boost version: 1.68.0
Found the following Boost libraries:
filesystem
program_options
regex
system
thread
chrono
date_time
atomic
Found Xerces-C: /usr/lib/libxerces-c.so
PyCXX found:
Headers: /run/media/ebi/home/ebi/FreeCAD/freecad-code/src
Sources: /run/media/ebi/home/ebi/FreeCAD/freecad-code/src/CXX
Version: 6.2.8
-- Found OCE/OpenCASCADE version: 7.3.0
-- OCE/OpenCASCADE include directory: /usr/include/opencascade
-- OCE/OpenCASCADE shared libraries directory: /usr/lib
Successfully loaded VTK-m component Base
VTK components: vtkCommonCore;vtkCommonDataModel;vtkFiltersVerdict;vtkIOXML;vtkFiltersCore;vtkFiltersGeneral;vtkIOLegacy;vtkFiltersExtraction;vtkFiltersSources;vtkFiltersGeometry;vtkIOMPIParallel;vtkParallelMPI;vtkhdf5;vtkFiltersParallelDIY2;vtkRenderingCore;vtkInteractionStyle;vtkRenderingFreeType;vtkRenderingOpenGL2
Successfully loaded VTK-m component Base
Checking for one of the modules 'hdf5-serial'
HDF5: Using hdf5 compiler wrapper to determine C configuration
Check for medfile (libmed and libmedc) ...
Checking for module 'Coin'
Found Coin, version 3.1.3
Using default python: .cpython-37m-x86_64-linux-gnu
libshiboken built for Release
Found PySide Tools: /usr/bin/python2-pyside-uic, /usr/bin/pyside-rcc
-- matplotlib-2.2.3 has been found.
Platform is 64-bit, set -D_OCC64
Build type:
git
/run/media/ebi/home/ebi/FreeCAD/freecad-build/src/Build/Version.h.out written
Note: Doxygen docs will look better with graphviz's dot installed.
Coin3D doc is installed
Tag file: /usr/share/doc/coin/html/coin.tag
Location: /usr/share/doc/coin/html
=======================================
[color=#FF0000]Now run 'make' to build FreeCAD[/color]
=======================================
Configuring done
then I make and it gives me this error at the end:
Code: Select all
[ 78%] Linking CXX shared library ../../../../Mod/Part/PartGui.so
[ 78%] Built target PartGui
make: *** [Makefile:130: all] Error 2
although it builds in bin directory FreeCAD and FreeCADCmd. I run FreeCAD to view what happen. it gives me this error:
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
--------------------------------------------------------------------------------
Program received signal SIGSEGV, Segmentation fault.
#0 /usr/lib/libc.so.6(+0x37e00) [0x7f5654f3ae00]
#1 /usr/lib/libpython2.7.so.1.0(PyObject_GetAttrString+0xd) [0x7f565a265c8d]
#2 /usr/lib/libpython2.7.so.1.0(PyObject_HasAttrString+0xa) [0x7f565a265d6a]
#3 /usr/lib/libpython2.7.so.1.0(PyImport_ImportModuleLevel+0x242) [0x7f565a2c59f2]
my questions:
1- it gives me the python2.7 in error. is it compiled for python 2.7 not python 3.7. I set the PYTHON_BASENAME and PYTHON_CONFIG_SUFFIX to
.cpython-37m-x86_64-linux-gnu. Is that manual page out date? Is there an update page for installation?
2- I can't understand is FreeCAD ver 0.18 work with pyside2 or pyqt5 or both of them and what those is default? is there a page that tell about this?
3- what is the easiest way to have up to date FreeCAD with python3. I mean last changed on github? I examin AppImage but it gives me
Segmentation fault
Thanks a lot.