I am trying to setup OCCT from the github repo. I cloned and used cmake to generate Visual Studio projects. It is working fine till I add the option "BUILD_SAMPLES_QT". I have latest Qt installed which is 6.2.3. And it is giving me error
Found unsuitable Qt version "6.2.3" from C:/Qt/6.2.3/msvc2019_64/bin/qmake.exe
I have added following variables in cmake
3RDPARTY_QT_DIR = C:/Qt/6.2.3/msvc2019_64/bin/
QT_LRELEASE_EXECUTABLE = C:/Qt/6.2.3/msvc2019_64/bin/lrelease.exe
QT_QMAKE_EXECUTABLE = C:/Qt/6.2.3/msvc2019_64/bin/qmake.exe
And Qt5_DIR = Qt5_DIR-NOTFOUND
So does it need Qt version 5 specifically? In the Third party component page, https://dev.opencascade.org/resources/download/3rd-party-components it is listed as Qt version 4.8.6. So can I use latest version or do I need to install 4.8.6? Or Qt5?