Closed bakercp closed 11 years ago
This is likely because GLEW is not working correctly with RPI+OF
There is a libglew-dev
package available for raspberry pi -- normally we include glew.h
and and such in utils/ofConstants.h
Currently all glew stuff is excluded from TARGET_RASPBERRY_PI
-- this may be the place to fix it.
There seems to be a conflict between the GLES/2 EGL headers and the libglew-dev packages ...
after fixing the errors in this app I'm getting the following CREATED SCREEN WITH SIZE 1920 x 1080 terminate called after throwing an instance of 'Poco::SystemException' what(): System exception Aborted
EasyCam is throwing the 'Poco::SystemException' after removing the the EasyCam I only get a seq-fault
Yeah, same issue with easycam and ofEvents.
Also, I just noticed -- OrthoCamera.cpp
uses glOrtho
, which is not GLES friendly. For an example of a work around, for glOrtho
, look inside ofCamera.cpp
. We should probably update this example. More specifically, in ofCamera
, we do this inside the begin()
method:
#ifndef TARGET_OPENGLES
glOrtho(0, viewport.width, 0, viewport.height, nearClip, farClip);
#else
ofMatrix4x4 ortho;
ortho.makeOrthoMatrix(0, viewport.width, 0, viewport.height, nearClip, farClip);
ofLoadMatrix( ortho );
#endif
The same might be done in OrthoCamera.cpp
.
Fixed with #65
Log: