@elliot wrote:
I've been trying to compile ofxCv on a Raspberry Pi running stretch. I have tried both with the master and stable branches. I get various errors and warnings during compilation.
At the moment I'm just trying to compile one of the examples.
My openFrameworks set up is based on brcm from bakercp post
I copy the obj file from the empty example project:
cp -R /home/pi/openFrameworks/examples/templates/emptyExample/obj/ /home/pi/openFrameworks/addons/ofxCv/example-flow
I also copy the Makefile into the project:
cp /home/pi/openFrameworks/scripts/templates/linuxarmv6l/Makefile /home/pi/openFrameworks/addons/ofxCv/example-flow
These are the last few lines before the compile fails:
/home/pi/openFrameworks/addons/ofxCv/libs/ofxCv/src/Utilities.cpp: In function ‘std::vector<cv::Point_<float> > ofxCv::toCv(const ofPolyline&)’: /home/pi/openFrameworks/addons/ofxCv/libs/ofxCv/src/Utilities.cpp:43:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < polyline.size(); i++) { ~~^~~~~~~~~~~~~~~~~ /home/pi/openFrameworks/addons/ofxCv/libs/ofxCv/src/Utilities.cpp: In function ‘std::vector<cv::Point_<float> > ofxCv::toCv(const std::vector<glm::tvec2<float, (glm::precision)0u> >&)’: /home/pi/openFrameworks/addons/ofxCv/libs/ofxCv/src/Utilities.cpp:52:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < points.size(); i++) { ~~^~~~~~~~~~~~~~~ /home/pi/openFrameworks/addons/ofxCv/libs/ofxCv/src/Utilities.cpp: In function ‘std::vector<cv::Point3_<float> > ofxCv::toCv(const std::vector<glm::tvec3<float, (glm::precision)0u> >&)’: /home/pi/openFrameworks/addons/ofxCv/libs/ofxCv/src/Utilities.cpp:61:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < points.size(); i++) { ~~^~~~~~~~~~~~~~~ /home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:358: recipe for target '/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxCv/libs/ofxCv/src/Helpers.o' failed make[1]: *** [/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxCv/libs/ofxCv/src/Helpers.o] Error 1 make[1]: *** Waiting for unfinished jobs.... /home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:358: recipe for target '/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxCv/libs/ofxCv/src/Utilities.o' failed make[1]: *** [/home/pi/openFrameworks/addons/obj/linuxarmv6l/Release/ofxCv/libs/ofxCv/src/Utilities.o] Error 1 /home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed make: *** [Release] Error 2
Not sure if I'm missing something. Anyone else been able to get it working?
Posts: 3
Participants: 2