orgicus / ofxCvPiCam

ofxCvPiCam is a minimal grabber for the Raspberry Pi Camera module. It uses the MMAL interface to grab frames and convert them the cv::Mat type which can be processed using the typical opencv calls.
Other
49 stars 10 forks source link

error when building example on Jessie #3

Open avilleret opened 9 years ago

avilleret commented 9 years ago

I got this error when building on Raspbian Jessie against of nightly build of 20150917 :

In file included from ../../../addons/ofxCvPiCam/libs/mmal/src/interface/mmal/core/mmal_component.c:30:0:
/home/pi/of_v20150917_linuxarmv7l_release/addons/ofxCvPiCam/libs/mmal/src/interface/mmal/core/mmal_port_private.h: At top level:
/home/pi/of_v20150917_linuxarmv7l_release/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);
avilleret commented 9 years ago

This is due to collision between mmal libs shipped with ofxCvPiCam and the one shipped with the pi. I have to remove the libs folder (and thus force to use the Jessie mmal lib) to fix this issue.

robin-price commented 8 years ago

I have the same error in Jessie, renaming / deleting libs fixed it.

pippopippo69 commented 8 years ago

same error in Jessie - OF 9.

Could You please give explain deeper the fix you are using (remove the libs folder - renaming / deleting libs) ?

SImple step-by-step instruction would help me..

thanks a lot

robin-price commented 8 years ago

cd ~/openframeworks/addons/ofxCvPiCam/ mv libs libs-old

This forces the compiler to use the version of mmal that ships with Jessie. The examples then compiled as normal and I was able to use ofxCvPiCam in my project.

pippopippo69 commented 8 years ago

Ok thanks a Lot.

Inviato da Libero Mail per Android Sabato, 21 Novembre 2015, 10:58AM +01:00 da crx091081gb < notifications@github.com> :

cd ~/openframeworks/addons/ofxCvPiCam/ mv libs libs-old This forces the compiler to use the version of mmal that ships with Jessie. The examples then compiled as normal and I was able to use ofxCvPiCam in my project. — Reply to this email directly or view it on GitHub .

ImanolGo commented 8 years ago

Hi community!

Unfortunately, that didn't resolve it for me. Still getting this error:

80:12: error: ‘MMAL_PARAMETER_CLOCK_TIME_OFFSET’ undeclared (first use in this function)

I'm using Jessie and Rpi3

Any further ideas?