bkloppenborg / simtoi

The SImulation and Modeling Tool for Optical Interferometry
GNU General Public License v3.0
7 stars 6 forks source link

Qt / Opengl version problems on mac. #85

Open matdander opened 10 years ago

matdander commented 10 years ago

The continuing saga of developing simtoi for mac has exposed a problem with Qt versions earlier than version 5. In the current version of simtoi on mac an opengl error is generated at line 161 of CSphere.cpp. The line is "glGenVertexArrays(1, &mVAO);". This error and others are a result of an incorrrect opengl version being called.

Running the code from http://stackoverflow.com/questions/24873533/changing-the-opengl-context-version-for-qglwidgets-in-qt-4-8-6-on-os-x reveals that the opengl version being generated is 1.0 and the version requested is 3.2.

The supposed fix for this is switching the Qt version to version 5.