Cmake Error: could not find VTK configuration file.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Re: Cmake Error: could not find VTK configuration file.
I just tested on an Ubuntu 20.10 install, and while I get that message in the cMake output, it does not prevent cMake from generating the build system, and FreeCAD successfully compiles. Are you getting any further errors in cMake?
Re: Cmake Error: could not find VTK configuration file.
I was also having this problem on Pop!_Os 20.10 which is a thin skin over Ubuntu 20.10. Could no longer compile Git head - pulled at about 0315 Eastern time.
I tried uninstalling vtk7 and installing vtk9, as recommended upthread. That's not sufficient; you must also install libvtk9-dev. After some more digging I discovered that I also needed libboost-thread1.74-dev. That left me here, where I'm still blocked:
I looked in the error log, but it was not enlightening.
I tried uninstalling vtk7 and installing vtk9, as recommended upthread. That's not sufficient; you must also install libvtk9-dev. After some more digging I discovered that I also needed libboost-thread1.74-dev. That left me here, where I'm still blocked:
Code: Select all
esr@snark:~/software/freecad-build$ cmake ../freecad-source
-- Compiler: GNU, version: 10.3.0
-- prefix: /usr/local
-- bindir: bin
-- datadir: share
-- docdir: share/doc/FreeCAD
-- includedir: include
-- libdir: lib
-- cmake: 3.18.4
-- Found pybind11: /usr/include (found version "2.6.2" )
-- PyCXX found:
-- Headers: /home/esr/software/freecad-source/src
-- Sources: /home/esr/software/freecad-source/src/CXX
-- Version: 6.2.8
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (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:51 (SetupOpenCasCade)
This warning is for project developers. Use -Wno-dev to suppress it.
-- -- Found OCE/OpenCASCADE version: 7.5.2
-- -- OCE/OpenCASCADE include directory: /usr/include/opencascade
-- -- OCE/OpenCASCADE shared libraries directory: /usr/lib/x86_64-linux-gnu
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
CMake Deprecation Warning at /usr/lib/x86_64-linux-gnu/cmake/vtk-9.0/vtk-config.cmake:64 (message):
The new name for the 'vtkCommonCore' component is 'CommonCore'
Call Stack (most recent call first):
cMake/FreeCAD_Helpers/SetupSalomeSMESH.cmake:29 (find_package)
CMakeLists.txt:58 (SetupSalomeSMESH)
-- VTK components: CommonCore;CommonDataModel;FiltersVerdict;IOXML;FiltersCore;FiltersGeneral;IOLegacy;FiltersExtraction;FiltersSources;FiltersGeometry;hdf5;RenderingCore;InteractionStyle;RenderingFreeType;RenderingOpenGL2
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so found components: OpenGL GLX
-- HDF5: Using hdf5 compiler wrapper to determine C configuration
-- Check for medfile (libmed and libmedc) ...
-- We guess that libmed was built using hdf5-openmpi version
-- Checking for module 'Coin'
-- No package 'Coin' found
-- Coin3D libraries found
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'pivy'
-- Shiboken2Config: Using default python: .cpython-39-x86_64-linux-gnu
CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find PythonLibs (missing: PYTHON_INCLUDE_DIRS) (Required is at
least version "3")
Call Stack (most recent call first):
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-3.18/Modules/FindPythonLibs.cmake:310 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
/usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.15.2/shiboken_helpers.cmake:319 (find_package)
/usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.15.2/Shiboken2Config.cpython-39-x86_64-linux-gnu.cmake:44 (shiboken_find_required_python)
/usr/lib/x86_64-linux-gnu/cmake/Shiboken2-5.15.2/Shiboken2Config.cmake:5 (include)
cMake/FreeCAD_Helpers/SetupShibokenAndPyside.cmake:13 (find_package)
CMakeLists.txt:75 (SetupShibokenAndPyside)
-- Configuring incomplete, errors occurred!
See also "/home/esr/software/freecad-build/CMakeFiles/CMakeOutput.log".
See also "/home/esr/software/freecad-build/CMakeFiles/CMakeError.log".
Re: Cmake Error: could not find VTK configuration file.
Maybe this is since yesterday, see git commit 5ab525df4effeaa69a3d6de7b6b6ad0d88627c6d.
But you seems have issue with the python cmake. I would delete all former cmake configs and set up up new. It can happen that cmake hangs on false python paths and do not find the correct packages. The only ways to solve them is often
- set the correct path per hand
or
- delete the cmake file and begin from new
and after that make a make clean before the make.
Greetings
user1234
Re: Cmake Error: could not find VTK configuration file.
I am also not good at it, especially in cmake. This is the reason why installed cmake-gui.
Greetings
user1234
Greetings
user1234
- Attachments
-
- 0.png (22.51 KiB) Viewed 2310 times
Re: Cmake Error: could not find VTK configuration file.
Alas, the freecad-gui cache delete did nothing. Literally nothing - I took file manifests with find(1) before and afterwards to check.
Still stuck.
Still stuck.
Re: Cmake Error: could not find VTK configuration file.
Are you building in a separate build directory? If so, just delete the whole thing and make a new one. That will definitely delete the cache .
Re: Cmake Error: could not find VTK configuration file.
That worked. This is a trick that should be in the build documentation but is not. I will fix that now.
EDIT: I have added a short new section on resolving cmake issues.