Build failure (cmake) (git master)

Having trouble installing or compiling FreeCAD? Get help here.
hinckel
Posts: 69
Joined: Fri Nov 21, 2014 11:45 am
Location: SJCAMPOS, SP - BR

Build failure (cmake) (git master)

Postby hinckel » Thu May 30, 2019 10:58 am

Last Successful build config
OS: openSUSE Tumbleweed (KDE//usr/share/xsessions/plasma5)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16861 (Git)
Build type: Unknown
Branch: master
Hash: 540ad16eb5d67e27ae4035cdfaee0848dbd4b72c
Python version: 3.7.2
Qt version: 5.12.3
Coin version: 3.1.3
OCC version: 7.3.0
Locale: English/United States (en_US)

cmake error message...

hinckel@boltzmann:~/FreeCAD/FreeCAD-Build> cmake ../FreeCAD
-- Compiler: GNU, version: 8.3.1
-- prefix: /usr/local
-- datadir: data
-- docdir: doc
-- includedir: include
-- libdir: /usr/local/lib
-- cmake: 3.13.4
CMake Warning at CMakeLists.txt:380 (message):
BUILD_PATH requires BUILD_PART;BUILD_ROBOT each be ON, but BUILD_ROBOT is
"OFF"
Call Stack (most recent call first):
CMakeLists.txt:400 (REQUIRES_MODS)


-- Found PythonInterp: /usr/bin/python3.7 (found version "3.7.2")
-- Found PythonLibs: /usr/lib64/libpython3.7m.so (found suitable exact version "3.7.2")
-- Boost version: 1.69.0
-- Found the following Boost libraries:
-- filesystem
-- program_options
-- regex
-- system
-- thread
-- chrono
-- date_time
-- atomic
-- Found Xerces-C: /usr/lib64/libxerces-c.so
-- PyCXX found:
-- Headers: /home/hinckel/FreeCAD/FreeCAD/src
-- Sources: /home/hinckel/FreeCAD/FreeCAD/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/lib64
-- VTK components: vtkCommonCore;vtkCommonDataModel;vtkFiltersVerdict;vtkIOXML;vtkFiltersCore;vtkFiltersGeneral;vtkIOLegacy;vtkFiltersExtraction;vtkFiltersSources;vtkFiltersGeometry;vtkhdf5;vtkRenderingCore;vtkInteractionStyle;vtkRenderingFreeType;vtkRenderingOpenGL2
-- Check for medfile (libmed and libmedc) ...
-- We guess that libmed was built using hdf5-serial version
-- Checking for one of the modules 'hdf5-serial'
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- Checking for one of the modules 'ompi-cxx'
CMake Warning at CMakeLists.txt:803 (message):
mpi.h was not found. Check for error above.


-- Checking for module 'Coin'
-- Found Coin, version 3.1.3
-- Coin3D libraries found
-- Shiboken2Config: Using default python: .cpython-37m-x86_64-linux-gnu
-- Found PythonInterp: /usr/bin/python3.7 (found suitable version "3.7.2", minimum required is "3")
-- Found PythonLibs: /usr/lib64/libpython3.7m.so (found suitable version "3.7.2", minimum required is "3")
-- SHIBOKEN_PYTHON_INCLUDE_DIRS computed to value: '/usr/include/python3.7m'
CMake Error at /usr/lib64/cmake/Shiboken2-5.12.3/shiboken_helpers.cmake:160 (shiboken_get_library_for_current_config):
shiboken_get_library_for_current_config Function invoked with incorrect
arguments for function named: shiboken_get_library_for_current_config
Call Stack (most recent call first):
/usr/lib64/cmake/Shiboken2-5.12.3/Shiboken2Config.cpython-37m-x86_64-linux-gnu.cmake:48 (shiboken_compute_python_libraries)
/usr/lib64/cmake/Shiboken2-5.12.3/Shiboken2Config.cmake:5 (include)
CMakeLists.txt:1045 (find_package)


-- libshiboken built for Release
-- PYTHON_CONFIG_SUFFIX: .cpython-37m-x86_64-linux-gnu
-- libshiboken built for Release
====================
shiboken2 not found.
====================

==================
PySide2 not found.
==================

-- -- matplotlib-3.1.0 has been found.
-- Platform is 64-bit, set -D_OCC64
-- Build type:
git
/home/hinckel/FreeCAD/FreeCAD-Build/src/Build/Version.h.out written
-- setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
-- Could NOT find Boost
-- Boost version: 1.69.0
-- Found the following Boost libraries:
-- python3
-- found Boost: 1_69
-- boost-incude dirs are: /usr/include
-- boost-python lib is:
-- boost_LIBRARY_DIRS is: /usr/lib64
-- Boost_LIBRARIES is: /usr/lib64/libboost_python3.so
-- area module (for Path Workbench) will be installed to: /usr/local/lib
-- Coin3D doc is not installed
--
==============
Summary report
==============

-- Python: [/usr/bin/python3.7] [.cpython-37m-x86_64-linux-gnu]
-- PCL: not enabled
-- pybind11: not enabled
-- Boost: 106900
-- XercesC: [/usr/lib64/libxerces-c.so] [/usr/include]
-- ZLIB: 1.2.11
-- PyCXX: [/home/hinckel/FreeCAD/FreeCAD/src]
-- OCC: 7.3.0 [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBin;TKBool;TKBO;TKCDF;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEP;TKSTEPBase;TKSTEPAttr;TKHLR;TKFeat]
-- SMESH: build internal
-- MEDFile: [/usr/lib64/libmedC.so;/usr/lib64/libmed.so] [/usr/include]
-- HDF5: 1.10.4
-- VTK: 8.2.0
-- NETGEN: not enabled
-- SWIG: 3.0.12
-- Eigen3 3.3.7
-- Qt5Core: 5.12.3
-- Qt5Network: 5.12.3
-- Qt5Xml: 5.12.3
-- Qt5Widgets: 5.12.3
-- Qt5PrintSupport: 5.12.3
-- Qt5OpenGL: 5.12.3
-- Qt5Svg: 5.12.3
-- Qt5UiTools: 5.12.3
-- Qt5Concurrent: 5.12.3
-- Qt5WebKitWidgets: 5.212.0
-- Shiboken2: 5.12.3 [/usr/lib64/cmake/Shiboken2-5.12.3] []
-- PySide2: 5.12.3 []
-- IncludeDir: Unable to find, python version mismatch?
-- PySide2Tools: [/usr/bin/pyside2-uic] [/usr/bin/pyside2-rcc]
-- Freetype: 2.9.1
-- OpenGLU: /usr/lib64/libGLU.so [/usr/lib64/libGLU.so][/usr/include]
-- Coin3D: [Coin;GLU;GL;Xext;SM;ICE;X11;bz2;z;freetype;fontconfig;dl;pthread;openal] [/usr/include/Inventor/annex;/usr/include/freetype2]
-- SPNAV: [/usr/lib64/libspnav.so] [/usr/include]
-- Matplotlib: 3.1.0
-- Rift: not enabled (BUILD_VR)
-- Doxygen: not found
=================================================
Now run 'cmake --build /home/hinckel/FreeCAD/FreeCAD-Build' to build FreeCAD
=================================================

-- Configuring incomplete, errors occurred!
See also "/home/hinckel/FreeCAD/FreeCAD-Build/CMakeFiles/CMakeOutput.log".
See also "/home/hinckel/FreeCAD/FreeCAD-Build/CMakeFiles/CMakeError.log".
Last edited by hinckel on Thu May 30, 2019 5:00 pm, edited 1 time in total.
Jee-Bee
Posts: 1950
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Build failure (cmake) (git master)

Postby Jee-Bee » Thu May 30, 2019 4:25 pm

Please use code brackets (looks like <\>) make it more readable
hinckel
Posts: 69
Joined: Fri Nov 21, 2014 11:45 am
Location: SJCAMPOS, SP - BR

Re: Build failure [solved] (cmake) (git master)

Postby hinckel » Wed Jun 12, 2019 12:15 pm

Solved with uninstalling pyside2.
wmayer
Site Admin
Posts: 14789
Joined: Thu Feb 19, 2009 10:32 am

Re: Build failure (cmake) (git master)

Postby wmayer » Wed Jun 12, 2019 2:45 pm

I wonder whether it works to use Python3.6 instead.

When the developer apeltauer prepared a new LibPack for Windows he first took Python3.7 but this caused a couple of mysterious crashes in debug mode. After switching to Python3.6 all issues were gone.
User avatar
sgrogan
Posts: 5333
Joined: Wed Oct 22, 2014 5:02 pm

Re: Build failure (cmake) (git master)

Postby sgrogan » Wed Jun 12, 2019 8:55 pm

wmayer wrote:
Wed Jun 12, 2019 2:45 pm
I wonder whether it works to use Python3.6 instead.
Maybe @looo knows? I believe his conda builds are PY3.7 now. I've seen errors around the forum with PY3.7 that don't seem to exist with PY3.6.

EDIT: Also maybe a problem with pip installed pyside2? pip uninstall seems to fix it so there must be a system/FreeCAD pyside2 available after the pip version is removed.
User avatar
kkremitzki
Posts: 1709
Joined: Thu Mar 03, 2016 9:52 pm
Location: Texas

Re: Build failure (cmake) (git master)

Postby kkremitzki » Wed Jun 12, 2019 9:52 pm

All the daily builds just failed which might be related.
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
hinckel
Posts: 69
Joined: Fri Nov 21, 2014 11:45 am
Location: SJCAMPOS, SP - BR

Re: Build failure (cmake) (git master)

Postby hinckel » Thu Jun 13, 2019 12:15 am

With openSUSE I installed and uninstalled pyside2 with yast2.. do not know what pip is.
Jee-Bee
Posts: 1950
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: Build failure (cmake) (git master)

Postby Jee-Bee » Thu Jun 13, 2019 5:18 am

pip is kind of packagemanager for python see for more here https://pypi.org/project/pip/
User avatar
sgrogan
Posts: 5333
Joined: Wed Oct 22, 2014 5:02 pm

Re: Build failure (cmake) (git master)

Postby sgrogan » Thu Jun 13, 2019 10:48 pm

hinckel wrote:
Thu Jun 13, 2019 12:15 am
With openSUSE I installed and uninstalled pyside2 with yast2.. do not know what pip is.
FreeCAD needs pyside2, so if you uninstall pyside2 and FreeCAD works, this suggests that you have 2 pyside2's installed and FreeCAD was finding the "Wrong" one until it was deleted. I don't know how this is possible? This has happened more than once now, it would be good to understand whats causing it.
hinckel
Posts: 69
Joined: Fri Nov 21, 2014 11:45 am
Location: SJCAMPOS, SP - BR

Re: Build failure (cmake) (git master)

Postby hinckel » Sat Jun 15, 2019 11:16 pm

Very dynamic situation. I git pulled from the master (06/15 18:00) and had to reinstall back pyside2 in order to have it all work again.
cmake and make (complete build) are working fine again. Feeling like Alice and Wonderland... Stranger and stranger....