CMake Error during TTK Installation Process

146 views
Skip to first unread message

Paul Snopov

unread,
Dec 4, 2023, 9:30:55 AM12/4/23
to ttk-users
Hello, TTK Community!

I hope this message finds you well. I'm currently trying to install TTK on my MacBook Air M1 running macOS 14.1.2. The ParaView installation process went smoothly, but I encountered an issue when running CMake for TTK, resulting in the following error:

CMake Error at /opt/homebrew/lib/cmake/Qt6Qml/Qt6QmlMacros.cmake:2415 (message):

  qt_generate_foreign_qml_types() is only available in Qt 6.

Call Stack (most recent call first):

  /opt/homebrew/lib/cmake/Qt6Qml/Qt6QmlConfig.cmake:122 (include)

  /opt/homebrew/Cellar/cmake/3.27.8/share/cmake/Modules/CMakeFindDependencyMacro.cmake:76 (find_package)

  /opt/homebrew/lib/cmake/Qt6/QtPublicDependencyHelpers.cmake:111 (find_dependency)

  /opt/homebrew/lib/cmake/Qt6Quick/Qt6QuickDependencies.cmake:39 (_qt_internal_find_qt_dependencies)

  /opt/homebrew/lib/cmake/Qt6Quick/Qt6QuickConfig.cmake:40 (include)

  /opt/homebrew/lib/cmake/Qt6/Qt6Config.cmake:156 (find_package)

  /opt/homebrew/lib/cmake/vtk-9.2/VTK-vtk-module-find-packages.cmake:1243 (find_package)

  /opt/homebrew/lib/cmake/vtk-9.2/vtk-config.cmake:152 (include)

  /Users/snopoff/ttk/ParaView-v5.11.1/build/lib/cmake/paraview-5.11/paraview-config.cmake:170 (find_package)

  /Users/snopoff/ttk/ParaView-v5.11.1/build/paraview-config.cmake:1 (include)

  CMake/config.cmake:50 (find_package)

  CMakeLists.txt:12 (include)



I've searched the group and GitHub issues page for a solution, but unfortunately, I haven't found any relevant information.

If anyone has encountered a similar problem or has insights on how to resolve this issue, your help would be greatly appreciated. Thank you in advance for your assistance!

Charles Gueunet

unread,
Dec 4, 2023, 10:55:04 AM12/4/23
to ttk-...@googlegroups.com
Dear Paul,

It seems like you are using Qt6. Even though ParaView is able to find it (cmake wizardery), Qt 6 is not supported by ParaView (you won't be able to change representation for example).
I would recommend you restart the configuration / compilation process of ParaView with Qt 5.

A side effect will certainly be to avoid the bug you are experiencing now.

Best regards,
Charles

--
You received this message because you are subscribed to the Google Groups "ttk-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ttk-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ttk-users/c586ea65-64bc-43ce-b335-750fe6d689ccn%40googlegroups.com.


--
R&D Engineer, PhD
Kitware

Paul Snopov

unread,
Dec 4, 2023, 4:48:54 PM12/4/23
to ttk-users
Dear Charles,

Thank you for your response! I've deleted ParaView folder and set Qt to version 5 (that is, qmake -v  returns Using Qt version 5.15.10 in /opt/homebrew/Cellar/qt@5/5.15.10_1/lib). I've rebuilt ParaView and the problem persists. 

Strangely, after running qmake -v again, it still returns g Qt version 6.6.0. I'm now considering completely removing Qt6 from my machine, but I'm hopeful there might be a more nuanced solution to prevent this. Any guidance on resolving this matter would be greatly appreciated.

Thank you once again for your assistance!

Best regards,
Pavel Snopov

понедельник, 4 декабря 2023 г. в 18:55:04 UTC+3, Charles Gueunet:

Charles Gueunet

unread,
Dec 5, 2023, 3:26:34 AM12/5/23
to ttk-...@googlegroups.com
Dear Paul,

I suspect Qt6 is still found, at least by VTK. Can you:
* Ensure that the PARAVIEW_QT_VERSION cmake variable is set to 5
* Ensure you have the Qt5Core_DIR, but not the Qt6Core_DIR cmake variable
   * If you have both, sorry but you may want to retry the configuration / compilation with a new variable: `VTK_QT_VERSION` set to 5.

Here is an extract of my CMakePreset.json on my machine with both Qt installed:

```
  "configurePresets": [
    {
      "name": "PV-Default",
      "binaryDir": "build",
      "generator": "Ninja",
      "cacheVariables": {
        "PARAVIEW_QT_VERSION": "5",
        "VTK_QT_VERSION": "5"
      }
    }
```

Hope that helps,
Charles

Paul Snopov

unread,
Dec 5, 2023, 7:10:51 AM12/5/23
to ttk-users
Dear Charles,

Thank you for your continued support! I've rechecked that ParaView uses Qt5 (there were only Qt5 variables in ParaView cmake configuration), but I don't have PARAVIEW_QT_VERSION variable in TTK cmake configuration. However I indeed have other Qt variables with both Qt5 and Qt6. I've added the code snippet that you provided to TTK CMakePreset.json. However the problem still persists. 

Maybe I'm doing something incorrect. My steps were:
1. Insert the snippet you provided
2. Cleaned build and ran cmake again
At first, though, I decided that I need to add the snippet right into ParaView's CMakePreset.json, that led me to rebuilding ParaView once again.

If there are specific steps or commands I should follow in order to reconfigure with a new variable, I would be grateful for your guidance.

Thank you once again for your assistance.

Best regards,
Pavel Snopov

вторник, 5 декабря 2023 г. в 11:26:34 UTC+3, Charles Gueunet:

Jonas Lukasczyk

unread,
Dec 5, 2023, 8:51:05 AM12/5/23
to ttk-...@googlegroups.com, Paul Snopov
Hi everyone,
I had the same issue and I was able to get PV Qt5 v5.12.0-RC1 compiled with a *fresh* configuration using:

ccmake \
-DINTERFACE_QT_MAJOR_VERSION=5 \
-DQT_MAJOR_VERSION=5 \
-DPARAVIEW_QT_VERSION=5 \
-DVTK_QT_VERSION=5 \
..

Best
Jonas
> > > > > To view this discussion on the web visit https://groups.google.com/d/msgid/ttk-users/c586ea65-64bc-43ce-b335-750fe6d689ccn%40googlegroups.com (https://groups.google.com/d/msgid/ttk-users/c586ea65-64bc-43ce-b335-750fe6d689ccn%40googlegroups.com?utm_medium=email&utm_source=footer).
> > > > >
> > > >
> > > >
> > > > --
> > > >
> > > > R&D Engineer, PhD
> > > > Kitware
> > >
> > > --
> > > You received this message because you are subscribed to the Google Groups "ttk-users" group.
> > > To unsubscribe from this group and stop receiving emails from it, send an email to ttk-users+...@googlegroups.com.
> > > To view this discussion on the web visit https://groups.google.com/d/msgid/ttk-users/bcfaf3bc-7ed0-4d42-b0f6-75e8c4851546n%40googlegroups.com (https://groups.google.com/d/msgid/ttk-users/bcfaf3bc-7ed0-4d42-b0f6-75e8c4851546n%40googlegroups.com?utm_medium=email&utm_source=footer).
> > >
> >
> >
> > --
> >
> > R&D Engineer, PhD
> > Kitware
>
> --
> You received this message because you are subscribed to the Google Groups "ttk-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ttk-users+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ttk-users/cb326973-cc1b-4f11-94d4-de30f42ac2dfn%40googlegroups.com (https://groups.google.com/d/msgid/ttk-users/cb326973-cc1b-4f11-94d4-de30f42ac2dfn%40googlegroups.com?utm_medium=email&utm_source=footer).
>

Paul Snopov

unread,
Dec 6, 2023, 9:47:26 AM12/6/23
to ttk-users
Hello Jonas,

Thank you for your response! I tried to install PV v.5.12 with Qt5 using your `ccmake` command, but the problem still persists. I'm pretty sure that I've made a mistake following either your advice or following Charles' one, but I don't where this mistake is. 

I've found out that TTK can be installed via `Manage Plugins` button in ParaView, when the last one is downloaded from the website. It seems that this works for me. I hope it ships the fully-featured version of TTK. I suppose that the TTK installation as a standalone program would be way better, but all my attempts failed, so I'll stick to this option so far.

Thank you again for your assistance.

Best regards,
Pavel Snopov
вторник, 5 декабря 2023 г. в 16:51:05 UTC+3, Jonas Lukasczyk:
Reply all
Reply to author
Forward
0 new messages