openGL problem with mrview on Mac OSX


I finally managed to get to matrix3. However, there is a problem so far.

After the build completed successfully, I cannot run mrview.

mrview: [WARNING] unable to determine OpenGL version - operation may be unstable if actual version is less than 3.3
mrview: [ERROR] GLSL log [vertex shader]: ERROR: 0:1: '' :  version '330' is not supported
ERROR: 0:1: '' : syntax error #version
ERROR: 0:2: 'layout' : syntax error syntax error

mrview: [ERROR] error compiling OpenGL vertex shader ID 1
QWidget: Must construct a QApplication before a QPaintDevice
Abort trap: 6

However it is not true that I have OpenGL less than 3.3.

My OpenGL extension Viewer 4.4 let the test pass for OpenGL 4.0 but not higher.

I have MacOSX 10.9.5 and a graphic card AMD Radeon HD 6750M 1024 MB.

Here it says that this graphic card should even support openGL 4.1.

Xcode installed is version 6.2 which should correspond to OSX 10.9.5.

What should I do?
Thanks for any help!

My best guess is that you’re using the wrong version of Qt… As stated in the docs (but maybe not prominently enough), anything prior to Qt 5.1 will not work - ideally you should use the latest version of Qt5 available, as provided by either macports or homebrew.

You should be able to check which version of Qt was used to compile the code by looking in your release/config - the terminal output of configure is stored in there.

Thanks Donald,

Immediately before, I had installed qt5 via brew, as indicated on the website.
And it says now also that qt5-5.6.1 is installed.

However, the configure.log output indeed says that it used qt version 4.8.7.

But why? How can I tell the built to use the newly installed qt5?

Thanks again!

Ok, that makes sense. Like it says right after the install Qt5 line, make sure the Qt5 executables are listed first in your PATH:

export PATH=`brew --prefix`/opt/qt5/bin:$PATH

Hopefully that’ll sort things out…

Fantastic! It works!

I might have overlooked this step during installation…

Thanks for being so available for help! Very appreciated!
Best, Markus