Home › Forum › SOFA › Building SOFA › [SOLVED] Building errors of v15.12 on vs2012 win7-32bits
- This topic has 2 replies, 2 voices, and was last updated 8 years, 6 months ago by Guillaume.
Viewing 3 posts - 1 through 3 (of 3 total)
-
AuthorPosts
-
4 May 2016 at 10:46 #6671ZahraBlocked
I have followed the instructions mentioned in SOFA build page but I received the following errors. I will appreciate if you give me any idea to fix Them.
C:\Program Files\Windows Kits\8.0\Include\um\GL/gl.h(60): error C2371: 'GLdouble' : redefinition; different basic types (moc_camera.cpp) 8> C:\Qt\Qt5.2.1\5.2.1\msvc2012\include\QtGui/qopengl.h(97) : see declaration of 'GLdouble' sofa\v15.12\build\extlibs\qglviewer\../../../src/extlibs/libQGLViewer-2.6.3/QGLViewer/camera.h(368): error C2535: 'void qglviewer::Camera::getProjectionMatrix(GLfloat []) const' : member function already defined or declared (moc_camera.cpp) 8> f:\sofa\v15.12\build\extlibs\qglviewer\../../../src/extlibs/libQGLViewer-2.6.3/QGLViewer/camera.h(367) : see declaration of 'qglviewer::Camera::getProjectionMatrix' 8>c:\qt\qt5.2.1\5.2.1\msvc2012\include\qtcore\qdatetime.h(122): error C2589: '(' : illegal token on right side of '::' (F:\sofa\v15.12\src\extlibs\libQGLViewer-2.6.3\QGLViewer\VRender\VRender.cpp) 8>c:\qt\qt5.2.1\5.2.1\msvc2012\include\qtcore\qdatetime.h(122): error C2059: syntax error : '::' (F:\sofa\v15.12\src\extlibs\libQGLViewer-2.6.3\QGLViewer\VRender\VRender.cpp) 8>F:\sofa\v15.12\src\extlibs\libQGLViewer-2.6.3\QGLViewer\camera.cpp(630): error C2084: function 'void qglviewer::Camera::getProjectionMatrix(GLfloat []) const' already has a body 8> f:\sofa\v15.12\src\extlibs\libqglviewer-2.6.3\qglviewer\camera.h(367) : see previous definition of 'getProjectionMatrix' 8>F:\sofa\v15.12\src\extlibs\libQGLViewer-2.6.3\QGLViewer\camera.cpp(632): error C2264: 'qglviewer::Camera::getProjectionMatrix' : error in function definition or declaration; function not called F:\sofa\v15.12\src\extlibs\libQGLViewer-2.6.3\QGLViewer\camera.cpp(694): error C2084: function 'void qglviewer::Camera::getModelViewProjectionMatrix(GLfloat []) const' already has a body f:\sofa\v15.12\src\extlibs\libqglviewer-2.6.3\qglviewer\camera.h(373) : see previous definition of 'getModelViewProjectionMatrix' F:\sofa\v15.12\src\extlibs\libQGLViewer-2.6.3\QGLViewer\camera.cpp(2199): error C3861: 'GLdouble': identifier not found QGLViewer\saveSnapshot.cpp(361): error C2664: 'qglviewer::Camera::getOrthoWidthHeight' : cannot convert parameter 1 from 'qreal' to 'GLdouble &' F:\sofa\v15.12\src\framework\sofa/core/objectmodel/BaseClass.h(369): fatal error C1001: An internal error has occurred in the compiler. 72> (compiler file 'msc1.cpp', line 1443) 72> To work around this problem, try simplifying or changing the program near the locations listed above. INTERNAL COMPILER ERROR in 'C:\Program Files\Microsoft Visual Studio 11.0\VC\bin\CL.exe' 72> Please choose the Technical Support command on the Visual C++ 72> Help menu, or open the Technical Support help file for more information
Best,
Zahra8 May 2016 at 11:22 #6677ZahraBlockedI will appreciate if anyone helps me regarding this issue.
7 June 2016 at 18:31 #7078GuillaumeKeymasterHi Zahra,
Sorry for the delay of my answer.
There was an error in the documentation. The Qt you are using does not support desktop OpenGL.
If you are using MSVC2012 32-bit, you can get prebuilt binaries for Qt 5.5. If you want to stick to Qt 5.2.1, you will have to get the OpenGL version.
Please find all the instructions in the corrected documentation.Hope this helps,
Guillaume. -
AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.