Edit: Sorry, I believe the OpenFrameworks source I have is older than what is on the Github in my link. Mine is the latest release tag (0073). This link shows the version of ofBaseTypes.h that I have. Note lack of const.
The errors are:
../../../addons/ofxPostProcessing/src/PostProcessing.cpp|162|error: passing ‘const ofFbo’ as ‘this’ argument of ‘virtual void ofFbo::draw(float, float, float, float)’ discards qualifiers [-fpermissive]|
and same basic thing on the next line
../../../addons/ofxPostProcessing/src/PostProcessing.cpp|163|error: passing ‘const ofFbo’ as ‘this’ argument of ‘virtual void ofFbo::draw(float, float, float, float)’ discards qualifiers [-fpermissive]|
If I remove the const qualifier from both draw methods in the PostProcessing class and try to use it, it complains about me trying to declare a variable of an abstract type.
Apparently the const qualifier is part of the method signature, so getWidth and getHeight do not properly override the base class because they include that qualifier and the abstract methods do not. In this case, not all abstract methods are implemented so the subclass is abstract. It works if the qualifier is removed on those as well.
Last edited by RBB; Jun 7, 2015 at 04:50 PM.