ofxCvPiCam icon indicating copy to clipboard operation
ofxCvPiCam copied to clipboard

error when building example on Jessie

Open avilleret opened this issue 10 years ago • 6 comments

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 avatar Oct 02 '15 14:10 avilleret

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.

avilleret avatar Oct 02 '15 17:10 avilleret

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

robin-price avatar Nov 20 '15 18:11 robin-price

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

pippopippo69 avatar Nov 21 '15 08:11 pippopippo69

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.

robin-price avatar Nov 21 '15 09:11 robin-price

Ok thanks a Lot.

Inviato da Libero Mail per Android Sabato, 21 Novembre 2015, 10:58AM +01:00 da crx091081gb < [email protected]> :

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 .

pippopippo69 avatar Nov 21 '15 15:11 pippopippo69

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?

ImanolGo avatar Jun 07 '16 17:06 ImanolGo