I'm trying to build the latest pull from git, #3ef181a751d5a0e78d3edab82ed46a69b743a264, and I'm running into a few issues that I couldn't seem to find a quick resolution for. The first error that keeps coming up is related to VTK. I'm using the systems libs and devel packages, but that doesn't seem to matter for this error.
Using Qt4 and Python2.7, otherwise a default CMake build. CentOS 7, x64, up to date (irony).
The problem is that after a successful CMake configuration, I get to the SMDS target, and during the link it complains that it can't find libTKVCAF.so. That library doesn't look like a target in any of FreeCAD's cmake files, as
Code: Select all
find . -name CMakeLists.txt |xargs grep -i TKVCAF
Code: Select all
find . -name CMakeLists.txt |xargs grep -i find_package |grep -i VTK
Code: Select all
find . -name CMakeLists.txt |xargs grep -i include\( |grep -i VTK
I'd offer a bitcoin for your thoughts, well, maybe a bitcent?
There's no libTKVCAF.so on my system, that's another problem that the CMake ought to detect if it's required for linking.
Information about the cmake::
Code: Select all
Running CMake to regenerate build system...
-- Compiler: GNU, version: 4.8.5
-- prefix:~/Downloads/FreeCAD/build/TESTING
-- bindir: bin
-- datadir: share
-- docdir: share/doc/FreeCAD
-- includedir: include
-- libdir: lib64
-- cmake: 3.17.5
-- Found Boost:/usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found suitable version "1.72.0", minimum required is "1.55") found components: filesystem program_options regex system thread
-- Found Xerces-C: /usr/lib64/libxerces-c.so
-- PyCXX found:
-- Headers: ~/Downloads/FreeCAD/src
-- Sources: ~/Downloads/FreeCAD/src/CXX
-- Version: 6.2.8
-- -- OpenCASCADE Community Edition has been found.
CMake Warning (dev) at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
The package name passed to `find_package_handle_standard_args` (OCC) does
not match the name of the calling package (OpenCasCade). This can lead to
problems in calling code that expects `find_package` result variables
(e.g., `_FOUND`) to follow a certain pattern.
Call Stack (most recent call first):
cMake/FindOpenCasCade.cmake:120 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cMake/FreeCAD_Helpers/SetupOpenCasCade.cmake:4 (find_package)
CMakeLists.txt:52 (SetupOpenCasCade)
This warning is for project developers. Use -Wno-dev to suppress it.
-- -- Found OCE/OpenCASCADE version: 6.8.0
-- -- OCE/OpenCASCADE include directory: /lib64/oce-0.17/../../include/oce
-- -- OCE/OpenCASCADE shared libraries directory:
-- VTK components: vtkCommonCore;vtkCommonDataModel;vtkFiltersVerdict;vtkIOXML;vtkFiltersCore;vtkFiltersGeneral;vtkIOLegacy;vtkFiltersExtraction;vtkFiltersSources;vtkFiltersGeometry;vtkhdf5;vtkRenderingCore;vtkInteractionStyle;vtkRenderingFreeType
-- 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 cMake/FreeCAD_Helpers/SetupSalomeSMESH.cmake:104 (message):
ompi-cxx was not found. Check for error above.
Call Stack (most recent call first):
CMakeLists.txt:59 (SetupSalomeSMESH)
-- Performing Test _flag_found
-- Performing Test _flag_found - Success
-- Checking for module 'Coin'
-- Found Coin, version 3.1.3
-- Coin3D libraries found
-- Could NOT find Spnav (missing: SPNAV_LIBRARY SPNAV_INCLUDE_DIR)
-- Using default python: -python2.7
-- libshiboken built for Release
-- Found PySide Tools: /bin/pyside-uic, /bin/pyside-rcc
-- ==============================================
PySide Python module found at /usr/lib64/python2.7/site-packages/PySide
.
==============================================
-- -- matplotlib-1.2.0 has been found.
-- Platform is 64-bit, set -D_OCC64
-- setting gcc options: -Wall -Werror -Wno-deprecated -pedantic-errors
-- Found Boost:/usr/local/lib/cmake/Boost-1.72.0/BoostConfig.cmake (found version "1.72.0") found components: python27
-- found Boost: 1_72
-- boost-incude dirs are: /usr/local/include
-- boost-python lib is:
-- boost_LIBRARY_DIRS is: /usr/local/lib
-- Boost_LIBRARIES is: Boost::python
-- area module (for Path Workbench) will be installed to: lib64
-- Note: Doxygen docs will look better with graphviz's dot installed.
-- Coin3D doc is not installed
--
==============
Summary report
==============
-- Build type: RelWithDebInfo
-- Compiler: /bin/c++ (4.8.5)
-- Flags: -Wall -Wextra -Wno-write-strings
-- Standard: Requires C++11
-- Python: [/bin/python2.7] [-python2.7]
-- PCL: not enabled
-- pybind11: not enabled
-- Boost: 1.72.0 (1.72.0)
-- XercesC: [/usr/lib64/libxerces-c.so] [/usr/include]
-- ZLIB: 1.2.7
-- PyCXX: [~/Downloads/FreeCAD/src]
-- OCC: 6.8.0 [TKFillet;TKMesh;TKernel;TKG2d;TKG3d;TKMath;TKIGES;TKSTL;TKShHealing;TKXSBase;TKBool;TKBO;TKBRep;TKTopAlgo;TKGeomAlgo;TKGeomBase;TKOffset;TKPrim;TKSTEPBase;TKSTEPAttr;TKSTEP209;TKSTEP;TKHLR;TKFeat] [] [/lib64/oce-0.17/../../include/oce]
-- SMESH: build internal
-- MEDFile: [/usr/lib64/libmedC.so;/usr/lib64/libmed.so] [/usr/include]
-- HDF5: 1.8.13
-- VTK: 6.1.0
-- NETGEN: not enabled
-- SWIG: 2.0.10
-- Eigen3 3.3.7
-- Qt4: 4.8.7
-- QtWebKit: found
-- Shiboken: 1.2.4 [/usr/include/shiboken]
-- PySide: 1.2.4 [/usr/include/PySide]
-- PySideTools: [/bin/pyside-uic] [/bin/pyside-rcc]
-- Freetype: 2.8.0
-- OpenGL: /usr/lib64/libGL.so
-- OpenGLU: /usr/lib/libGLU.so [/usr/lib/libGLU.so][/usr/include]
-- Coin3D: [Coin;GLU;GL;Xext;X11;bz2;z;freetype;fontconfig;dl;pthread] [/usr/include/Coin3;/usr/include/Coin3/Inventor/annex;/usr/include/freetype2]
-- SPNAV: [SPNAV_LIBRARY-NOTFOUND] [SPNAV_INCLUDE_DIR-NOTFOUND]
-- Matplotlib: 1.2.0
-- Rift: not enabled (BUILD_VR)
-- Doxygen: 1.8.5
-- Language: English
-- Coin3D_DOC: not found
=================================================
Now run 'cmake --build /home/bentleykw/Downloads/FreeCAD/build' to build FreeCAD
=================================================