ofxQuadWarp under OF 10.1


#1

has someone manage to compile ofxQuadWarp in the latest OF release
i manege to fix some of the issue of not having Poco anymore but now i get this

In file included from /home/jacos/OF/libs/glm/include/glm/vec4.hpp:6,
                 from /home/jacos/OF/libs/openFrameworks/math/ofVec4f.h:8,
                 from /home/jacos/OF/libs/openFrameworks/math/ofVec3f.h:5,
                 from /home/jacos/OF/libs/openFrameworks/types/ofPoint.h:3,
                 from /home/jacos/OF/libs/openFrameworks/types/ofParameter.h:5,
                 from /home/jacos/OF/libs/openFrameworks/utils/ofJson.h:4,
                 from /home/jacos/OF/libs/openFrameworks/ofMain.h:21,
                 from /home/jacos/OF/addons/ofxQuadWarp/src/ofxQuadWarp.h:9,
                 from /home/jacos/OF/addons/ofxQuadWarp/src/ofxQuadWarp.cpp:6:
/home/jacos/OF/libs/glm/include/glm/detail/type_vec4.hpp:19:9: note: ‘glm::i16vec4’ {aka ‘struct glm::tvec4<short int, (glm::precision)0>’} declared here
  struct tvec4
         ^~~~~
/home/jacos/OF/addons/ofxQuadWarp/src/ofxQuadWarp.cpp: In member function ‘void ofxQuadWarp::disableMouseControls()’:
/home/jacos/OF/addons/ofxQuadWarp/src/ofxQuadWarp.cpp:73:17: warning: catching polymorphic type ‘class Poco::SystemException’ by value [-Wcatch-value=]
     catch(Poco::SystemException) {
                 ^~~~~~~~~~~~~~~
/home/jacos/OF/addons/ofxQuadWarp/src/ofxQuadWarp.cpp: In member function ‘void ofxQuadWarp::disableKeyboardShortcuts()’:
/home/jacos/OF/addons/ofxQuadWarp/src/ofxQuadWarp.cpp:94:17: warning: catching polymorphic type ‘class Poco::SystemException’ by value [-Wcatch-value=]
     catch(Poco::SystemException) {
                 ^~~~~~~~~~~~~~~
/home/jacos/OF/addons/ofxQuadWarp/src/ofxQuadWarp.cpp: In member function ‘ofMatrix4x4 ofxQuadWarp::getMatrix(const ofPoint*, const ofPoint*) const’:
/home/jacos/OF/addons/ofxQuadWarp/src/ofxQuadWarp.cpp:197:25: error: cannot convert ‘CvMat*’ to ‘CvMemStorage*’
 cvFindContours(src_mat, dst_mat, translate);
                         ^~~~~~~
In file included from /home/jacos/OF/addons/ofxOpenCv/src/ofxCvConstants.h:16,
                 from /home/jacos/OF/addons/ofxOpenCv/src/ofxOpenCv.h:5,
                 from /home/jacos/OF/addons/ofxQuadWarp/src/ofxQuadWarp.h:10,
                 from /home/jacos/OF/addons/ofxQuadWarp/src/ofxQuadWarp.cpp:6:
/usr/include/opencv4/opencv2/imgproc/imgproc_c.h:399:57: note:   initializing argument 2 of ‘int cvFindContours(CvArr*, CvMemStorage*, CvSeq**, int, int, int, CvPoint)’
 CVAPI(int)  cvFindContours( CvArr* image, CvMemStorage* storage, CvSeq** first_contour,
                                           ~~~~~~~~~~~~~~^~~~~~~
make[1]: *** [/home/jacos/OF/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:354: /home/jacos/OF/addons/obj/linux64/Release/ofxQuadWarp/src/ofxQuadWarp.o] Error 1
make[1]: Leaving directory '/home/jacos/OF/addons/ofxQuadWarp/example'
make: *** [/home/jacos/OF/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:129: Release] Error 2

#2

Hello @cyrstem. I am recently using https://github.com/roymacdonald/ofxGLWarper that works out of the box with OF 0.10.1


#3

Yeah your right !! thanks