The following commands will hopefully install everything required for building:
Code: Select all
zypper in --no-recommends -t pattern devel_C_C++ devel_qt5
zypper in libqt5-qtbase-devel libqt5-qtsvg-devel libqt5-qttools-devel boost-devel swig libboost_program_options-devel libboost_mpi_python3-devel libboost_system-devel libboost_program_options-devel libboost_regex-devel libboost_python3-devel libboost_thread-devel libboost_system-devel libboost_headers-devel libboost_graph-devel python3 python3-devel python3-matplotlib python3-matplotlib-qt5 python3-pyside2 python3-pyside2-devel python3-pivy gcc gcc-fortran cmake occt-devel libXi-devel opencv-devel libxerces-c-devel Coin-devel SoQt-devel freetype2-devel eigen3-devel libode6 vtk-devel libmed-devel hdf5-openmpi-devel openmpi2-devel netgen-devel freeglut-devel libspnav-devel f2c doxygen dos2unix glew-devel
zypper in libqt5-creator gdb
https://build.opensuse.org/package/view ... eeCAD.spec
Note that I did install FreeCAD 0.18 via the package manager first, so if what I've provided is incomplete, that's probably the difference.
---
The following CMakeLists.txt patch was found at https://build.opensuse.org/package/show ... ry/FreeCAD
0001-find-openmpi2-include-files.patch
Code: Select all
- find_file(MpidotH mpi.h PATHS ${OPENMPI_INCLUDE_DIRS} NO_DEFAULT_PATH)
+ find_file(MpidotH mpi.h PATHS ${OPENMPI_INCLUDE_DIRS} /usr/lib64/mpi/gcc/openmpi2/include NO_DEFAULT_PATH)
In Qt Creator, add the following to the bottom of:
Projects -> Manage Kits -> Kits -> Default (or your kit) -> CMake Configuration:
Code: Select all
PYTHON_EXECUTABLE=/usr/bin/python3.7
PYTHON_INCLUDE_DIR=/usr/include/python3.7m
PYTHON_LIBRARY=/usr/lib64/libpython3.7m.so
PYTHON_PACKAGES_PATH=/usr/lib64/python3.7/site-packages
BUILD_QT5=ON
Check with "python3 -V" and ignore the number furthest right.
---
In Qt Creator, switch Projects -> Run -> Run Configuration from FreeCADMainCMD to FreeCADMain (unless you want the command line only version)
---
Just FYI, the following are currently offered by openSUSE Tumbleweed:
Code: Select all
Python version: 3.7.2
Qt version: 5.12.3
Coin version: 3.1.3
OCC version: 7.3.0