You shouldn't try to compile using Python 2 and Qt4, as both of them are essentially obsolete. If you tried installing the freecad-daily packages you should be aware that currently there are two versions of FreeCAD, one for Python 2/Qt4, and one for Python 3/Qt5. The first one is just for compatibility purposes, but it is assumed that in a new installation you'd have the Python 3/Qt5 version.maxlem wrote: ↑Sat Jul 27, 2019 10:08 pm ...
I followed https://www.freecadweb.org/wiki/CompileOnUnix for ubuntu, used the daily ppa, but qt4/python2 instructions have been removed. I installed the single command qt5 build instruciton and tried anyway.
cmake failed to find shiboken.
...
If CMake didn't find Shiboken, this could be a case that you have some Python 2 files installed, or that you didn't specify the options to use Python 3 and Qt5. I suggest you double check that you don't have any Python 2 packages and try again.
Code: Select all
freecad-python2
libfreecad-python2-0.18
freecad-daily-python2
libfreecad-daily-python2-0.19
Code: Select all
sudo apt install cmake cmake-gui libboost-date-time-dev libboost-dev libboost-filesystem-dev libboost-graph-dev libboost-iostreams-dev libboost-program-options-dev libboost-python-dev libboost-regex-dev libboost-serialization-dev libboost-signals-dev libboost-thread-dev libcoin-dev libeigen3-dev libgts-bin libgts-dev libkdtree++-dev libmedc-dev libocct-data-exchange-dev libocct-ocaf-dev libocct-visualization-dev libopencv-dev libproj-dev libpyside2-dev libqt5opengl5-dev libqt5svg5-dev libqt5webkit5-dev libqt5x11extras5-dev libqt5xmlpatterns5-dev libshiboken2-dev libspnav-dev libvtk7-dev libx11-dev libxerces-c-dev libzipios++-dev occt-draw pyside2-tools python3-dev python3-matplotlib python3-pivy python3-ply python3-pyside2.qtcore python3-pyside2.qtgui python3-pyside2.qtsvg python3-pyside2.qtwidgets python3-pyside2uic qtbase5-dev qttools5-dev swig
Code: Select all
cmake -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3 ../freecad-source
make -j3