[SOLVED] CMake can't find matplotlib and others

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
Frotz
Posts: 105
Joined: Thu Jun 21, 2018 1:52 am

[SOLVED] CMake can't find matplotlib and others

Post by Frotz »

Using Debian 11 x86_64, FreeCAD git commit 68053e4f

Lately when building from the bleeding edge, I've been getting complaints that Matplotlib can't be found. But it actually IS installed through Debian's APT package system. Pip3 doesn't want to install it because it's already been installed through APT. Of course, this prevents the Path workbench from loading and may be related to the problem described here: https://forum.freecadweb.org/posting.ph ... =4&t=70945

Here's what I get when calling cmake:

Code: Select all

cmake ../FreeCAD -DCMAKE_INSTALL_PREFIX=/opt/freecad -DBUILD_QT5=ON -DPYTHON_EXECUTABLE=/usr/bin/python3
...
-- The imported target "vtkParseOGLExt" references the file
   "/usr/bin/vtkParseOGLExt-7.1"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-7.1/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtkRenderingPythonTkWidgets" references the file
   "/usr/lib/x86_64-linux-gnu/libvtkRenderingPythonTkWidgets.so"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-7.1/VTKTargets.cmake"
but not all the files it references.

-- The imported target "vtk" references the file
   "/usr/bin/vtk"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-7.1/VTKTargets.cmake"
but not all the files it references.

-- The imported target "pvtk" references the file
   "/usr/bin/pvtk"
but this file does not exist.  Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
   "/usr/lib/cmake/vtk-7.1/VTKTargets.cmake"
but not all the files it references.

-- VTK components: vtkCommonCore;vtkCommonDataModel;vtkFiltersVerdict;vtkIOXML;vtkFiltersCore;vtkFiltersGeneral;vtkIOLegacy;vtkFiltersExtraction;vtkFiltersSources;vtkFiltersGeometry;vtkIOMPIParallel;vtkParallelMPI;vtkhdf5;vtkFiltersParallelDIY2;vtkRenderingCore;vtkInteractionStyle;vtkRenderingFreeType;vtkRenderingOpenGL2
...
=====================================================
Matplotlib not found, Plot module won't be available.
=====================================================
...
I'm guessing the complaints about vtk have to do with outdated executable aliases, but I'm not sure.
Last edited by Kunda1 on Wed Aug 24, 2022 9:57 pm, edited 1 time in total.
Reason: Added [Solved] to thread title
User avatar
Kunda1
Veteran
Posts: 13434
Joined: Thu Jan 05, 2017 9:03 pm

Re: CMake can't find matplotlib and others

Post by Kunda1 »

Is this still an issue for you?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Frotz
Posts: 105
Joined: Thu Jun 21, 2018 1:52 am

Re: CMake can't find matplotlib and others

Post by Frotz »

No. Somehow the Python packages and the rest of the packages got into an inconsistent state and I needed to reinstall the OS. Thanks.
Post Reply