CMake error whene configuring Qt5 with VTK
Unsolved
General and Desktop
-
Hello
I tried to configure VTK library with Qt5 on linux machine (Ubuntu20.4)
here are the selected CMake fields:
However I got this configuration error "/usr/lib/qt5/moc" not existing. I dont have this file in ..../qt5/bin. How to generate it?
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake:27 (message): The imported target "Qt5::Core" references the file "/usr/lib/qt5/bin/moc" 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/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfigExtras.cmake" but not all the files it references. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:17 (_qt5_Core_check_file_exists) /usr/lib/x86_64-linux-gnu/cmake/Qt5Core/Qt5CoreConfig.cmake:186 (include) /usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:101 (find_package) /usr/lib/x86_64-linux-gnu/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:101 (find_package) /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package) GUISupport/Qt/CMakeLists.txt:72 (find_package)
-
Hi,
Are you sure you installed all the required Qt development packages from your distribution ?