Built SOFA on Windows 11 but cannot run 'runSofa' GUI; '-qglviewer' creation failed #4929
-
Dear all, I'm new to SOFA and just tried to build it on Windows. The cmake configuration and generation was successful and the Visual Studio 2022 appeared to be successful. "runSofa.exe" was in the bin folder, but I could not double-click opening it. I tried I checked the CmakeCache (attached) and found qt.plugin is on The Qt version I used was 6.7.2. Can someone give me some suggestions? Thank you very much! Chi |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hello ! I can see that there are 6 failures. What are those failures ? |
Beta Was this translation helpful? Give feedback.
-
I also tried to build it on my personal Win11 laptop with QT 6.7.2. This time CMAKE kept looking for QT5 by generating a QT5_DIR even though the log indicated that it would use QT6. I have specified CMAKE_PREFIX_PATH to QT6.7.2/msvc2019. Qt6 paths were correctly retrieved for other qt6 entries. Here is the error:
The log shows the directory contains a configuration file for qt5 CMakeCache.txt |
Beta Was this translation helpful? Give feedback.
Hello !
For me it is strange that your CMake is using the QGLViewerConfig.cmake. This certainly means that somehow, you've already compiled SOFA somewhere, or at least configured it and cmake found the produced QGLViewer. In
Sofa/GUI/Qt/CMakeLists.txt
you can see how QGLViewer is added :This means that it first search for it and if it doesn't find it on your computer, only then it adds the folder containing the sources that is a subfolder of
Sofa/GUI/Qt
. So for any configuration on a computer without QGLViewe…