Could not convert ofGLProgrammableRenderer::TYPE error on Linux using master

#1

Am I missing something? I get this error although all the examples use this code as well. My videocard should support this:

$ glxinfo | grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
OpenGL core profile version string: 4.4.0 NVIDIA 331.113
OpenGL core profile shading language version string: 4.40 NVIDIA via Cg compiler
OpenGL version string: 4.4.0 NVIDIA 331.113
OpenGL shading language version string: 4.40 NVIDIA via Cg compiler
OpenGL ES profile version string: OpenGL ES 2.0 NVIDIA 331.113 331.113
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.00

This is the exact error:

src/main.cpp: In function ‘int main()’:
src/main.cpp:7:56: error: could not convert ‘ofGLProgrammableRenderer::TYPE’ from ‘const string {aka const std::basic_string<char>}’ to ‘std::shared_ptr<ofBaseRenderer>’
     ofSetCurrentRenderer(ofGLProgrammableRenderer::TYPE);
                                                    ^

Rg,

Arnaud

#2

On the RPI it looks like this now

#include "ofMain.h"
#include "testApp.h"

int main()
{
    ofGLESWindowSettings settings;
    settings.width = 1280;
    settings.height = 720;
    settings.setGLESVersion(2);
    ofCreateWindow(settings);

    ofRunApp( new testApp());
}
#3

Cheers, I hadn’t noticed the change. Apparently for a GL window it’s like this. (GLVersion might be a bit high)

int main( ){
    ofGLWindowSettings settings;
    settings.width = 1280;
    settings.height = 720;
    settings.setGLVersion(4, 4);
    ofCreateWindow(settings);

    ofRunApp( new ofApp());
}