Running OF app with no screen attached on RPi

I’d like to run an application on a raspberry pi using vnc and no keyboard/mouse attached, nor video/hdmi. Is this possible ?

So far I’ve tried this in main.cpp:

#include "ofMain.h"
#include "testApp.h"
#include "ofAppEGLWindow.h"
//========================================================================
int main( ){
   // ofSetupOpenGL(700,700, OF_WINDOW);			// <-------- setup the GL context
	ofAppEGLWindow window;
	ofSetupOpenGL(&window,700,700,OF_WINDOW);
	// this kicks off the running of my app
	// can be OF_WINDOW or OF_FULLSCREEN
	// pass in width and height too:
	ofRunApp( new testApp());

}

but I don’t see the application window(although I’m pretty sure it works)
Also I know that if I start the app from a remote desktop session and have video output connected I can see the app on the display.

I’ve tried both tightvncserver and x11 server, looking at both XDE desktops but I can’t see the application. Is it possible to see an OF app on the RPi through vnc only(with no display attached) ?

Thanks!

Hi @georgeprofenza i think, if your pourpose is no display, you should use ofAppNoWindow instead of ofAppEGLWindow, because ofAppEGLWindow is already used by RPI.

Unlike a lot of desktop systems, the RPi can run OpenGL apps without a monitor attached. However I bet that VNC doesn’t support OpenGL which is why you aren’t seeing it

@georgeprofenza sorry, i miserunderstood your question…

@jvcleave Thanks for the heads up, you’re right!

I searched a bit found VirtualGL/TurboVNC that could potentially solve the problem.
I’m not so sure how to use it yet though. Hopefully I’ll figure out soon.