Raspbian stretch Compile errors
elliotjpb opened this issue · comments
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.
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
My set up for openFrameworks based on bakercp post in this forum https://forum.openframeworks.cc/t/compiling-of-in-raspbian-stretch/27562/14
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. But I'm not able to get it to compile on a Raspberry Pi running stretch.
I've just gone back for a Jessie installation on my Pi and this compiled fine with OF 0.9.8 and the stable branch of ofxCv.
Looks like the workaround for using Stretch on a Pi doesn't work with OF master and ofxCv master as of yet.