Git Product home page Git Product logo

Comments (12)

stewiem2000 avatar stewiem2000 commented on September 1, 2024

Hello,
Googling brought me to this page: orgicus/ofxCvPiCam#3
Perhaps you're experiencing the same library conflict (ofxCvPiCam vs Jessie's)?
Stewart.

from footfall.

d0ubleI avatar d0ubleI commented on September 1, 2024

I tried that right before your post. Defiantly got it further through compilation. However, now im getting a new error:

fApp.cpp:(.text+0xec4): undefined reference to ofxXmlSettings::getAttribute(std::string const&, std::string const&, int, int)' ofApp.cpp:(.text+0xf5c): undefined reference toofxXmlSettings::getAttribute(std::string const&, std::string const&, int, int)'
ofApp.cpp:(.text+0xf9c): undefined reference to ofxXmlSettings::popTag()' ofApp.cpp:(.text+0xfa4): undefined reference toofxXmlSettings::popTag()'
obj/linuxarmv6l/Release/src/ofApp.o: In function ofApp::~ofApp()': ofApp.cpp:(.text._ZN5ofAppD2Ev[_ZN5ofAppD5Ev]+0x20c): undefined reference toofxXmlSettings::~ofxXmlSettings()'
collect2: error: ld returned 1 exit status

I tried googleing this one but did not get any valuable info... going to keep working on it but if anyone has any ideas it would be fantastic.

Has anyone complied this on a ARM6 pi? Just making sure that has nothing to do with it..

from footfall.

d0ubleI avatar d0ubleI commented on September 1, 2024

I actually bought a brand new Pi to test this out. Still getting the same general error when compiling:

In file included from ../../../addons/ofxCvPiCam/libs/mmal/src/interface/mmal/util/mmal_graph.c:32:0:
/home/pi/openFrameworks/addons/ofxCvPiCam/libs/mmal/src/interface/mmal/core/mmal_port_private.h: At top level:
/home/pi/openFrameworks/addons/ofxCvPiCam/libs/mmal/src/interface/mmal/core/mmal_port_private.h:93:67: error: unknown type name ‘MMAL_CLOCK_PAYLOAD_T’
typedef void (MMAL_PORT_CLOCK_EVENT_CB)(MMAL_PORT_T *port, const MMAL_CLOCK_PAYLOAD_T *event);
^
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:360: recipe for target '../../../addons/obj/linuxarmv7l/Release/ofxCvPiCam/libs/mmal/src/interface/mmal/util/mmal_graph.o' failed
make[1]: *
* [../../../addons/obj/linuxarmv7l/Release/ofxCvPiCam/libs/mmal/src/interface/mmal/util/mmal_graph.o] Error 1
make[1]: Leaving directory '/home/pi/openFrameworks/apps/myApps/sense'
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:126: recipe for target 'Release' failed
make: *** [Release] Error 2

Any one have any ideas on this? Or would anyone be willing to share a working image of this that i can take a look at? Thanks so much!

from footfall.

DHaylock avatar DHaylock commented on September 1, 2024

Hi @d0ubleI, which RPi are you compiling on?
I'm seeing linuxarm7l, it was originally built for arm6l.

Going to see if i can find out why its not compiling

David

from footfall.

d0ubleI avatar d0ubleI commented on September 1, 2024

Hi @DHaylock DHaylock,
Attempting on 71 now but previously tried on an earlier pi. If you could figure out why its not compiling for me that would be great. I'm also going to engage some other developers on this. We are setting up a tracking device as a test and this open CV enabled viewer would be so useful.

If anyone has a image of a pi running a dev version of this and could upload it that would be super helpful too, I totally understand if that is not possible though.
-ian

from footfall.

hexagon-robotics avatar hexagon-robotics commented on September 1, 2024

Hello,

Anything new about compiling on Raspberry Pi 2 with Raspbian Jessie 4.1.15-v7+ # 830 ?

I have installed OF from master branch. And get the following errors

Best regards,
--javier

HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0 libmpg123 
Compiling OF library for Release
make[1]: Entering directory '/home/pi/openFrameworks/libs/openFrameworksCompiled/project'
HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0 libmpg123 
HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0 libmpg123 
HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0 libmpg123 
Done!
make[1]: Leaving directory '/home/pi/openFrameworks/libs/openFrameworksCompiled/project'

Compiling RPi for Release
make[1]: Entering directory '/home/pi/openFrameworks/apps/devApps/RPi'
HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal openssl libpulse-simple alsa gtk+-3.0 libmpg123 
g++ -c -O3 -DNDEBUG -Wall -std=c++14 -DGCC_HAS_REGEX -march=armv6 -mfpu=vfp -mfloat-abi=hard -fPIC -ftree-vectorize -Wno-psabi -pipe -DOF_USING_GTK -DOF_USING_GTK -DOF_USING_MPG123 -DTARGET_RASPBERRY_PI -DSTANDALONE -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DHAVE_LIBOPENMAX=2 -DOMX -DOMX_SKIP64BIT -DUSE_EXTERNAL_OMX -DHAVE_LIBBCM_HOST -DUSE_EXTERNAL_LIBBCM_HOST -DUSE_VCHIQ_ARM  -I/opt/vc/include -I/opt/vc/include/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -D_REENTRANT -pthread -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/gstreamer-1.0 -I/usr/include/AL -I/usr/include/alsa -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/home/pi/openFrameworks/libs/fmodex/include -I/home/pi/openFrameworks/libs/glfw/include -I/home/pi/openFrameworks/libs/glfw/include/GLFW -I/home/pi/openFrameworks/libs/kiss/include -I/home/pi/openFrameworks/libs/poco/include -I/home/pi/openFrameworks/libs/tess2/include -I/home/pi/openFrameworks/libs/utf8cpp/include -I/home/pi/openFrameworks/libs/utf8cpp/include/utf8 -I/home/pi/openFrameworks/libs/openFrameworks -I/home/pi/openFrameworks/libs/openFrameworks/gl -I/home/pi/openFrameworks/libs/openFrameworks/video -I/home/pi/openFrameworks/libs/openFrameworks/events -I/home/pi/openFrameworks/libs/openFrameworks/communication -I/home/pi/openFrameworks/libs/openFrameworks/math -I/home/pi/openFrameworks/libs/openFrameworks/sound -I/home/pi/openFrameworks/libs/openFrameworks/graphics -I/home/pi/openFrameworks/libs/openFrameworks/utils -I/home/pi/openFrameworks/libs/openFrameworks/types -I/home/pi/openFrameworks/libs/openFrameworks/app -I/home/pi/openFrameworks/libs/openFrameworks/3d -D_REENTRANT -pthread -I/usr/local/include/opencv -I/usr/local/include -I/usr/include/gstreamer-1.0 -I/usr/include/AL -I/usr/include/alsa -I/usr/include/gtk-3.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 -I/usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include -I/usr/include/gtk-3.0 -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I./src -I/home/pi/openFrameworks/addons/ofxHttpUtils/src -I/home/pi/openFrameworks/addons/ofxOpenCv/src -I/home/pi/openFrameworks/addons/ofxOpenCv/libs -I/home/pi/openFrameworks/addons/ofxCv/libs/ofxCv/include -I/home/pi/openFrameworks/addons/ofxCv/libs/CLD/include/CLD -I/home/pi/openFrameworks/addons/ofxCv/src -Isrc -I/home/pi/openFrameworks/addons/ofxCvPiCam/src -I/home/pi/openFrameworks/addons/ofxCvPiCam/libs -I/home/pi/openFrameworks/addons/ofxCvPiCam/libs/mmal -I/home/pi/openFrameworks/addons/ofxCvPiCam/libs/mmal/src -I/home/pi/openFrameworks/addons/ofxCvPiCam/libs/mmal/src/interface -I/home/pi/openFrameworks/addons/ofxCvPiCam/libs/mmal/src/interface/vchiq_arm -I/home/pi/openFrameworks/addons/ofxCvPiCam/libs/mmal/src/interface/mmal -I/home/pi/openFrameworks/addons/ofxCvPiCam/libs/mmal/src/interface/mmal/vc -I/home/pi/openFrameworks/addons/ofxCvPiCam/libs/mmal/src/interface/mmal/util -I/home/pi/openFrameworks/addons/ofxCvPiCam/libs/mmal/src/interface/mmal/core -I/home/pi/openFrameworks/addons/ofxXmlSettings/src -I/home/pi/openFrameworks/addons/ofxXmlSettings/libs -MMD -MP -MF obj/linuxarmv6l/Release/src/ofApp.d -MT obj/linuxarmv6l/Release/src/ofApp.o -o obj/linuxarmv6l/Release/src/ofApp.o -c src/ofApp.cpp
In file included from /opt/vc/include/interface/vcos/vcos.h:116:0,
                 from /opt/vc/include/interface/vmcs_host/vc_dispmanx.h:33,
                 from /opt/vc/include/bcm_host.h:50,
                 from /home/pi/openFrameworks/libs/openFrameworks/utils/ofConstants.h:169,
                 from /home/pi/openFrameworks/libs/openFrameworks/ofMain.h:5,
                 from src/ofApp.h:9,
                 from src/ofApp.cpp:7:
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h: In function ‘void vcos_event_signal(VCOS_EVENT_T_)’:
/opt/vc/include/interface/vcos/pthreads/vcos_platform.h:567:8: warning: variable ‘ok’ set but not used [-Wunused-but-set-variable]
    int ok = 0;
        ^
In file included from /home/pi/openFrameworks/addons/ofxCv/src/ofxCv.h:23:0,
                 from src/ofApp.h:10,
                 from src/ofApp.cpp:7:
/home/pi/openFrameworks/addons/ofxCv/libs/ofxCv/include/ofxCv/Tracker.h: In member function ‘virtual const std::vector<unsigned int>& ofxCv::RectTracker::track(const std::vectorcv::Rect_<int >&)’:
/home/pi/openFrameworks/addons/ofxCv/libs/ofxCv/include/ofxCv/Tracker.h:324:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int i = 0; i < labels.size(); i++) {
                     ^
In file included from src/ofApp.cpp:7:0:
src/ofApp.h: In member function ‘void myLine::draw(int, int)’:
src/ofApp.h:26:31: warning: ‘void ofLine(float, float, float, float)’ is deprecated (declared at /home/pi/openFrameworks/libs/openFrameworks/graphics/ofGraphics.h:486): Use ofDrawLine instead [-Wdeprecated-declarations]
         ofLine(x,y,x-width/2,y);
                               ^
src/ofApp.h:27:31: warning: ‘void ofLine(float, float, float, float)’ is deprecated (declared at /home/pi/openFrameworks/libs/openFrameworks/graphics/ofGraphics.h:486): Use ofDrawLine instead [-Wdeprecated-declarations]
         ofLine(x,y,x+width/2,y);
                               ^
src/ofApp.cpp: In member function ‘void ofApp::makeMask()’:
src/ofApp.cpp:60:10: error: no match for ‘operator=’ (operand types are ‘cv::Mat’ and ‘CvMat_’)
     mask = cvCreateMat(240, 320, CV_8UC1);
          ^
src/ofApp.cpp:60:10: note: candidates are:
In file included from /usr/local/include/opencv2/core/mat.hpp:3429:0,
                 from /usr/local/include/opencv2/core.hpp:59,
                 from /usr/local/include/opencv2/opencv.hpp:46,
                 from /home/pi/openFrameworks/addons/ofxCv/src/ofxCv.h:4,
                 from src/ofApp.h:10,
                 from src/ofApp.cpp:7:
/usr/local/include/opencv2/core/mat.inl.hpp:575:6: note: cv::Mat& cv::Mat::operator=(const cv::Mat&)
 Mat& Mat::operator = (const Mat& m)
      ^
/usr/local/include/opencv2/core/mat.inl.hpp:575:6: note:   no known conversion for argument 1 from ‘CvMat_’ to ‘const cv::Mat&’
/usr/local/include/opencv2/core/mat.inl.hpp:3047:6: note: cv::Mat& cv::Mat::operator=(const cv::MatExpr&)
 Mat& Mat::operator = (const MatExpr& e)
      ^
/usr/local/include/opencv2/core/mat.inl.hpp:3047:6: note:   no known conversion for argument 1 from ‘CvMat_’ to ‘const cv::MatExpr&’
In file included from /usr/local/include/opencv2/core.hpp:59:0,
                 from /usr/local/include/opencv2/opencv.hpp:46,
                 from /home/pi/openFrameworks/addons/ofxCv/src/ofxCv.h:4,
                 from src/ofApp.h:10,
                 from src/ofApp.cpp:7:
/usr/local/include/opencv2/core/mat.hpp:1113:10: note: cv::Mat& cv::Mat::operator=(const Scalar&)
     Mat& operator = (const Scalar& s);
          ^
/usr/local/include/opencv2/core/mat.hpp:1113:10: note:   no known conversion for argument 1 from ‘CvMat_’ to ‘const Scalar& {aka const cv::Scalar_<double>&}’
In file included from /usr/local/include/opencv2/core/mat.hpp:3429:0,
                 from /usr/local/include/opencv2/core.hpp:59,
                 from /usr/local/include/opencv2/opencv.hpp:46,
                 from /home/pi/openFrameworks/addons/ofxCv/src/ofxCv.h:4,
                 from src/ofApp.h:10,
                 from src/ofApp.cpp:7:
/usr/local/include/opencv2/core/mat.inl.hpp:1166:6: note: cv::Mat& cv::Mat::operator=(cv::Mat&&)
 Mat& Mat::operator = (Mat&& m)
      ^
/usr/local/include/opencv2/core/mat.inl.hpp:1166:6: note:   no known conversion for argument 1 from ‘CvMat_’ to ‘cv::Mat&&’
src/ofApp.cpp: In member function ‘void ofApp::setupCV()’:
src/ofApp.cpp:102:70: error: invalid new-expression of abstract class type ‘cv::BackgroundSubtractorMOG2’
     pMOG2 = new BackgroundSubtractorMOG2(_history,_MOGThreshold,false);
                                                                      ^
In file included from /usr/local/include/opencv2/video.hpp:57:0,
                 from /usr/local/include/opencv2/opencv.hpp:49,
                 from /home/pi/openFrameworks/addons/ofxCv/src/ofxCv.h:4,
                 from src/ofApp.h:10,
                 from src/ofApp.cpp:7:
/usr/local/include/opencv2/video/background_segm.hpp:90:20: note:   because the following virtual functions are pure within ‘cv::BackgroundSubtractorMOG2’:
 class CV_EXPORTS_W BackgroundSubtractorMOG2 : public BackgroundSubtractor
                    ^
/usr/local/include/opencv2/video/background_segm.hpp:72:26: note:   virtual void cv::BackgroundSubtractor::apply(cv::InputArray, cv::OutputArray, double)
     CV_WRAP virtual void apply(InputArray image, OutputArray fgmask, double learningRate=-1) = 0;
                          ^
/usr/local/include/opencv2/video/background_segm.hpp:81:26: note:   virtual void cv::BackgroundSubtractor::getBackgroundImage(cv::OutputArray) const
     CV_WRAP virtual void getBackgroundImage(OutputArray backgroundImage) const = 0;
                          ^
/usr/local/include/opencv2/video/background_segm.hpp:95:25: note:   virtual int cv::BackgroundSubtractorMOG2::getHistory() const
     CV_WRAP virtual int getHistory() const = 0;
                         ^
/usr/local/include/opencv2/video/background_segm.hpp:98:26: note:   virtual void cv::BackgroundSubtractorMOG2::setHistory(int)
     CV_WRAP virtual void setHistory(int history) = 0;
                          ^
/usr/local/include/opencv2/video/background_segm.hpp:102:25: note:  virtual int cv::BackgroundSubtractorMOG2::getNMixtures() const
     CV_WRAP virtual int getNMixtures() const = 0;
                         ^
/usr/local/include/opencv2/video/background_segm.hpp:107:26: note:  virtual void cv::BackgroundSubtractorMOG2::setNMixtures(int)
     CV_WRAP virtual void setNMixtures(int nmixtures) = 0;//needs reinitialization!
                          ^
/usr/local/include/opencv2/video/background_segm.hpp:115:28: note:  virtual double cv::BackgroundSubtractorMOG2::getBackgroundRatio() const
     CV_WRAP virtual double getBackgroundRatio() const = 0;
                            ^
/usr/local/include/opencv2/video/background_segm.hpp:118:26: note:  virtual void cv::BackgroundSubtractorMOG2::setBackgroundRatio(double)
     CV_WRAP virtual void setBackgroundRatio(double ratio) = 0;
                          ^
/usr/local/include/opencv2/video/background_segm.hpp:125:28: note:  virtual double cv::BackgroundSubtractorMOG2::getVarThreshold() const
     CV_WRAP virtual double getVarThreshold() const = 0;
                            ^
/usr/local/include/opencv2/video/background_segm.hpp:128:26: note:  virtual void cv::BackgroundSubtractorMOG2::setVarThreshold(double)
     CV_WRAP virtual void setVarThreshold(double varThreshold) = 0;
                          ^
/usr/local/include/opencv2/video/background_segm.hpp:138:28: note:  virtual double cv::BackgroundSubtractorMOG2::getVarThresholdGen() const
     CV_WRAP virtual double getVarThresholdGen() const = 0;
                            ^
/usr/local/include/opencv2/video/background_segm.hpp:141:26: note:  virtual void cv::BackgroundSubtractorMOG2::setVarThresholdGen(double)
     CV_WRAP virtual void setVarThresholdGen(double varThresholdGen) = 0;
                          ^
/usr/local/include/opencv2/video/background_segm.hpp:145:28: note:  virtual double cv::BackgroundSubtractorMOG2::getVarInit() const
     CV_WRAP virtual double getVarInit() const = 0;
                            ^
/usr/local/include/opencv2/video/background_segm.hpp:148:26: note:  virtual void cv::BackgroundSubtractorMOG2::setVarInit(double)
     CV_WRAP virtual void setVarInit(double varInit) = 0;
                          ^
/usr/local/include/opencv2/video/background_segm.hpp:150:28: note:  virtual double cv::BackgroundSubtractorMOG2::getVarMin() const
     CV_WRAP virtual double getVarMin() const = 0;
                            ^
/usr/local/include/opencv2/video/background_segm.hpp:151:26: note:  virtual void cv::BackgroundSubtractorMOG2::setVarMin(double)
     CV_WRAP virtual void setVarMin(double varMin) = 0;
                          ^
/usr/local/include/opencv2/video/background_segm.hpp:153:28: note:  virtual double cv::BackgroundSubtractorMOG2::getVarMax() const
     CV_WRAP virtual double getVarMax() const = 0;
                            ^
/usr/local/include/opencv2/video/background_segm.hpp:154:26: note:  virtual void cv::BackgroundSubtractorMOG2::setVarMax(double)
     CV_WRAP virtual void setVarMax(double varMax) = 0;
                          ^
/usr/local/include/opencv2/video/background_segm.hpp:162:28: note:  virtual double cv::BackgroundSubtractorMOG2::getComplexityReductionThreshold() const
     CV_WRAP virtual double getComplexityReductionThreshold() const = 0;
                            ^
/usr/local/include/opencv2/video/background_segm.hpp:165:26: note:  virtual void cv::BackgroundSubtractorMOG2::setComplexityReductionThreshold(double)
     CV_WRAP virtual void setComplexityReductionThreshold(double ct) = 0;
                          ^
/usr/local/include/opencv2/video/background_segm.hpp:172:26: note:  virtual bool cv::BackgroundSubtractorMOG2::getDetectShadows() const
     CV_WRAP virtual bool getDetectShadows() const = 0;
                          ^
/usr/local/include/opencv2/video/background_segm.hpp:175:26: note:  virtual void cv::BackgroundSubtractorMOG2::setDetectShadows(bool)
     CV_WRAP virtual void setDetectShadows(bool detectShadows) = 0;
                          ^
/usr/local/include/opencv2/video/background_segm.hpp:182:25: note:  virtual int cv::BackgroundSubtractorMOG2::getShadowValue() const
     CV_WRAP virtual int getShadowValue() const = 0;
                         ^
/usr/local/include/opencv2/video/background_segm.hpp:185:26: note:  virtual void cv::BackgroundSubtractorMOG2::setShadowValue(int)
     CV_WRAP virtual void setShadowValue(int value) = 0;
                          ^
/usr/local/include/opencv2/video/background_segm.hpp:194:28: note:  virtual double cv::BackgroundSubtractorMOG2::getShadowThreshold() const
     CV_WRAP virtual double getShadowThreshold() const = 0;
                            ^
/usr/local/include/opencv2/video/background_segm.hpp:197:26: note:  virtual void cv::BackgroundSubtractorMOG2::setShadowThreshold(double)
     CV_WRAP virtual void setShadowThreshold(double threshold) = 0;
                          ^
src/ofApp.cpp: In member function ‘virtual void ofApp::update()’:
src/ofApp.cpp:148:25: error: ‘class cv::BackgroundSubtractorMOG2’ has no member named ‘operator()’
         pMOG2->operator()(maskOutput, fgMaskMOG2);
                         ^
src/ofApp.cpp:169:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0; i < followers.size(); i++) {
                      ^
src/ofApp.cpp: In member function ‘virtual void ofApp::draw()’:
src/ofApp.cpp:261:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0; i < followers.size(); i++)
                      ^
src/ofApp.cpp:281:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for(int i = 0; i < lines.size(); i++) {
                      ^
src/ofApp.cpp:289:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0 ; i < actions.size(); i++) {
                        ^
In file included from /home/pi/openFrameworks/addons/ofxCv/src/ofxCv.h:23:0,
                 from src/ofApp.h:10,
                 from src/ofApp.cpp:7:
/home/pi/openFrameworks/addons/ofxCv/libs/ofxCv/include/ofxCv/Tracker.h: In instantiation of ‘const std::vector<unsigned int>& ofxCv::TrackerFollower<T, F>::track(const std::vector<_RealType>&) [with T = cv::Rect_<int>; F = Blob]’:
src/ofApp.cpp:163:59:   required from here
/home/pi/openFrameworks/addons/ofxCv/libs/ofxCv/include/ofxCv/Tracker.h:407:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int i = 0; i < labels.size(); i++) {
                     ^
/home/pi/openFrameworks/addons/ofxCv/libs/ofxCv/include/ofxCv/Tracker.h:417:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for(int i = 0; i < Tracker<T>::newLabels.size(); i++) {
                     ^
In file included from src/ofApp.h:14:0,
                 from src/ofApp.cpp:7:
/home/pi/openFrameworks/addons/ofxCvPiCam/src/ofxCvPiCam.h: At global scope:
/home/pi/openFrameworks/addons/ofxCvPiCam/src/ofxCvPiCam.h:196:13: warning: ‘void color_callback(MMAL_PORT_T_, MMAL_BUFFER_HEADER_T_)’ declared ‘static’ but never defined [-Wunused-function]
 static void color_callback(MMAL_PORT_T _, MMAL_BUFFER_HEADER_T *);
             ^
/home/pi/openFrameworks/addons/ofxCvPiCam/src/ofxCvPiCam.h:197:13: warning: ‘void gray_callback(MMAL_PORT_T_, MMAL_BUFFER_HEADER_T_)’ declared ‘static’ but never defined [-Wunused-function]
 static void gray_callback(MMAL_PORT_T *, MMAL_BUFFER_HEADER_T *);
             ^
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:199: recipe for target 'obj/linuxarmv6l/Release/src/ofApp.o' failed
make[1]: *_\* [obj/linuxarmv6l/Release/src/ofApp.o] Error 1
make[1]: Leaving directory '/home/pi/openFrameworks/apps/devApps/RPi'
/home/pi/openFrameworks/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:126: recipe for target 'Release' failed
make: **\* [Release] Error 2```

from footfall.

DHaylock avatar DHaylock commented on September 1, 2024

Hi @hexagon-robotics

Check out this first orgicus/ofxCvPiCam#3

I've just tried compiling it for Jessie on armv7l and @crx091081gb 's steps work.

Best

David

from footfall.

hexagon-robotics avatar hexagon-robotics commented on September 1, 2024

Hi @DHaylock ,

Thank you for the reply but not works to me.

Best regards,
-javier

/home/pi/openFrameworks/addons/ofxCvPiCam/src/ofxCvPiCam.h: At global scope:
/home/pi/openFrameworks/addons/ofxCvPiCam/src/ofxCvPiCam.h:196:13: warning: ‘void color_callback(MMAL_PORT_T*, MMAL_BUFFER_HEADER_T*)’ declared ‘static’ but never defined [-Wunused-function]
 static void color_callback(MMAL_PORT_T *, MMAL_BUFFER_HEADER_T *);
             ^
/home/pi/openFrameworks/addons/ofxCvPiCam/src/ofxCvPiCam.h:197:13: warning: ‘void gray_callback(MMAL_PORT_T*, MMAL_BUFFER_HEADER_T*)’ declared ‘static’ but never defined [-Wunused-function]
 static void gray_callback(MMAL_PORT_T *, MMAL_BUFFER_HEADER_T *);
             ^
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:199: recipe for target 'obj/linuxarmv7l/Release/src/ofApp.o' failed
make[1]: *** [obj/linuxarmv7l/Release/src/ofApp.o] Error 1
In file included from /home/pi/openFrameworks/apps/devApps/RPi/src/ofApp.h:14:0,
                 from /home/pi/openFrameworks/apps/devApps/RPi/src/main.cpp:2:
/home/pi/openFrameworks/addons/ofxCvPiCam/src/ofxCvPiCam.h: At global scope:
/home/pi/openFrameworks/addons/ofxCvPiCam/src/ofxCvPiCam.h:196:13: warning: ‘void color_callback(MMAL_PORT_T*, MMAL_BUFFER_HEADER_T*)’ declared ‘static’ but never defined [-Wunused-function]
 static void color_callback(MMAL_PORT_T *, MMAL_BUFFER_HEADER_T *);
             ^
/home/pi/openFrameworks/addons/ofxCvPiCam/src/ofxCvPiCam.h:197:13: warning: ‘void gray_callback(MMAL_PORT_T*, MMAL_BUFFER_HEADER_T*)’ declared ‘static’ but never defined [-Wunused-function]
 static void gray_callback(MMAL_PORT_T *, MMAL_BUFFER_HEADER_T *);
             ^
make[1]: Leaving directory '/home/pi/openFrameworks/apps/devApps/RPi'
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:126: recipe for target 'Release' failed
make: *** [Release] Error 2
pi@raspberrypi:~/openFrameworks/apps/devApps/RPi $ sudo ldconfig -p | grep mmal
    libmmal_vc_client.so (libc6,hard-float) => /opt/vc/lib/libmmal_vc_client.so
    libmmal_util.so (libc6,hard-float) => /opt/vc/lib/libmmal_util.so
    libmmal_core.so (libc6,hard-float) => /opt/vc/lib/libmmal_core.so
    libmmal_components.so (libc6,hard-float) => /opt/vc/lib/libmmal_components.so
    libmmal.so (libc6,hard-float) => /opt/vc/lib/libmmal.so

from footfall.

DHaylock avatar DHaylock commented on September 1, 2024

Hi @hexagon-robotics,

Could you try compiling the example-ofxCvPiCam to see what happens?

David

from footfall.

hexagon-robotics avatar hexagon-robotics commented on September 1, 2024

I get a error with stable branch of OF.

Thanks.

In file included from /usr/local/include/opencv2/core/cvstd.inl.hpp:48:0,
                 from /usr/local/include/opencv2/core.hpp:3164,
                 from /usr/local/include/opencv2/opencv.hpp:46,
                 from /home/pi/openFrameworks/addons/ofxCv/src/ofxCv.h:4,
                 from /home/pi/openFrameworks/addons/ofxCv/libs/ofxCv/include/ofxCv/Kalman.h:3,
                 from ../../../addons/ofxCv/libs/ofxCv/src/Kalman.cpp:1:
/usr/include/c++/4.9/complex:390:5: note: template<class _Tp> std::complex<_Tp> std::operator*(const std::complex<_Tp>&, const _Tp&)
     operator*(const complex<_Tp>& __x, const _Tp& __y)
     ^
/usr/include/c++/4.9/complex:390:5: note:   template argument deduction/substitution failed:
../../../addons/ofxCv/libs/ofxCv/src/Kalman.cpp:32:26: note:   ‘cv::MatCommaInitializer_<float>’ is not derived from ‘const std::complex<_Tp>’
    KF.transitionMatrix = *(Mat_<T>(6, 6) <<
                          ^
In file included from /usr/local/include/opencv2/core/cvstd.inl.hpp:48:0,
                 from /usr/local/include/opencv2/core.hpp:3164,
                 from /usr/local/include/opencv2/opencv.hpp:46,
                 from /home/pi/openFrameworks/addons/ofxCv/src/ofxCv.h:4,
                 from /home/pi/openFrameworks/addons/ofxCv/libs/ofxCv/include/ofxCv/Kalman.h:3,
                 from ../../../addons/ofxCv/libs/ofxCv/src/Kalman.cpp:1:
/usr/include/c++/4.9/complex:381:5: note: template<class _Tp> std::complex<_Tp> std::operator*(const std::complex<_Tp>&, const std::complex<_Tp>&)
     operator*(const complex<_Tp>& __x, const complex<_Tp>& __y)
     ^
/usr/include/c++/4.9/complex:381:5: note:   template argument deduction/substitution failed:
../../../addons/ofxCv/libs/ofxCv/src/Kalman.cpp:32:26: note:   ‘cv::MatCommaInitializer_<float>’ is not derived from ‘const std::complex<_Tp>’
    KF.transitionMatrix = *(Mat_<T>(6, 6) <<
                          ^
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:335: recipe for target '../../../addons/obj/linuxarmv7l/Release/ofxCv/libs/ofxCv/src/Kalman.o' failed
make[1]: *** [../../../addons/obj/linuxarmv7l/Release/ofxCv/libs/ofxCv/src/Kalman.o] Error 1
make[1]: Leaving directory '/home/pi/openFrameworks/addons/ofxCvPiCam/example-ofxCvPiCam'
../../../libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:126: recipe for target 'Release' failed
make: *** [Release] Error 2

from footfall.

DHaylock avatar DHaylock commented on September 1, 2024

Hey @hexagon-robotics is there more of the error log, i can see notes but no errors.

Cheers

from footfall.

Fitoma avatar Fitoma commented on September 1, 2024

Hi there,

@hexagon-robotics, did you get any solution for your problem? I am getting trubble from obj/linuxarmv6l/Release/src/ofApp.o too and there is no ofApp.o in there.

from footfall.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.