The CMake error:
Code: Select all
<snip>
-- Found OCC: /usr/lib/x86_64-linux-gnu/oce-0.16/../../../include/oce (found version "6.8.0")
-- -- Found OCE/OpenCASCADE version: 6.8.0
-- -- OCE/OpenCASCADE include directory: /usr/lib/x86_64-linux-gnu/oce-0.16/../../../include/oce
-- -- OCE/OpenCASCADE shared libraries directory:
CMake Error at CMakeLists.txt:559 (find_package):
By not providing "FindVTK.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "VTK", but
CMake did not find one.
Could not find a package configuration file provided by "VTK" with any of
the following names:
VTKConfig.cmake
vtk-config.cmake
Add the installation prefix of "VTK" to CMAKE_PREFIX_PATH or set "VTK_DIR"
to a directory containing one of the above files. If "VTK" provides a
separate development package or SDK, be sure it has been installed.
-- Configuring incomplete, errors occurred!
See also "/home/mark/work/freecad/freecad-master-build/CMakeFiles/CMakeOutput.log".
See also "/home/mark/work/freecad/freecad-master-build/CMakeFiles/CMakeError.log".
Code: Select all
# Add freecad PPA for latest oce packages
sudo apt-add-repository -y ppa:freecad-maintainers/oce-release
sudo add-apt-repository ppa:freecad-maintainers/freecad-daily
# Dev dependencies for FreeCAD
sudo apt-get install git build-essential cmake python python-matplotlib libtool \
libcoin80-dev libsoqt4-dev libxerces-c-dev libboost-dev libboost-filesystem-dev \
libboost-regex-dev libboost-program-options-dev libboost-signals-dev libboost-thread-dev \
libboost-python-dev libqt4-dev libqt4-opengl-dev qt4-dev-tools python-dev python-pyside \
pyside-tools oce-draw libeigen3-dev libqtwebkit-dev libshiboken-dev libpyside-dev \
libode-dev swig libzipios++-dev libfreetype6 libfreetype6-dev liboce*-dev \
libsimage-dev python-pivy python-qt4 doxygen libcoin80-doc
# Get the code
mkdir /home/mark/work/freecad
cd /home/mark/work/freecad
git clone https://github.com/FreeCAD/FreeCAD.git freecad-master
# cmake command used
mkdir /home/mark/work/freecad/freecad-master-build
cd /home/mark/work/freecad/freecad-master-build
Code: Select all
#
# Debug -- not working, VTK error, 20160622
#
cmake -DFREECAD_USE_EXTERNAL_PIVY=1 -DFREECAD_BUILD_ASSEMBLY:BOOL=ON -DCMAKE_BUILD_TYPE=Debug ../freecad-master
#
# Release -- not working, VTK error, 20160622
#
cmake -DFREECAD_USE_EXTERNAL_PIVY=1 -DFREECAD_BUILD_ASSEMBLY:BOOL=ON -DFREECAD_BUILD_FEM_NETGEN:BOOL=OFF -DCMAKE_BUILD_TYPE=Release ../freecad-master