[gst-devel] gst-opencv app compile error with OpenCV 2.2

sreerenj b bsreerenj at gmail.com
Fri Jan 28 14:04:28 CET 2011


Hi Robert,
Currently gst-opencv supports only* "opencv >= 2.0.0 opencv <= 2.1.0".*

On Fri, Jan 28, 2011 at 2:02 PM, Robert Jobbagy <jobbagy.robert at gmail.com>wrote:

> Hi Guys,
>
> I used my gst-opencv filter with OpenCV 2.0 and worked fine.
> I tried update to OpenCV 2.1 because I found a bug.
> But OpenCV 2.1 has the bug too and tried update to OpenCV 2.2.
>
> And I gave this compile error:
>
> In file included from /usr//include/opencv/cvaux.h:61,
>                 from gstfacedetect.h:52,
>                 from gstfacedetect.c:66:
> /usr/local/include/opencv2/legacy/blobtrack.hpp:82: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvVSModule’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:133: error: expected
> ‘;’, ‘,’ or ‘)’ before ‘=’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:137: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvFGDetector’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:148: error: expected
> ‘)’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:149: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:160: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cvBlob’
> In file included from /usr//include/opencv/cvaux.h:61,
>                 from gstfacedetect.h:52,
>                 from gstfacedetect.c:66:
> /usr/local/include/opencv2/legacy/blobtrack.hpp:180: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvBlobSeq’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:270: error: expected
> specifier-qualifier-list before ‘CvBlobSeq’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:273: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvBlobTrackSeq’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:294: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvBlobDetector’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:308: error: expected
> ‘)’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:311: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:312: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:314: error: expected
> identifier or ‘(’ before ‘:’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:319: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘cvDetectedBlob’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:327: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvObjectDetector’
> In file included from /usr//include/opencv/cvaux.h:61,
>                 from gstfacedetect.h:52,
>                 from gstfacedetect.c:66:
> /usr/local/include/opencv2/legacy/blobtrack.hpp:391: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvImageDrawer’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:410: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvBlobTrackGen’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:420: error: expected
> ‘)’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:427: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:428: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:433: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvBlobTracker’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:503: error: expected
> ‘)’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:507: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvBlobTrackerOne’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:524: error: expected
> ‘)’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:529: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:545: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:546: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:547: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:557: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:560: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:563: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:566: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:569: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:570: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:573: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:580: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> In file included from /usr//include/opencv/cvaux.h:61,
>                 from gstfacedetect.h:52,
>                 from gstfacedetect.c:66:
> /usr/local/include/opencv2/legacy/blobtrack.hpp:597: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvBlobTrackPostProc’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:620: error: expected
> ‘)’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:628: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> ‘CvBlobTrackPostProcOne’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:637: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:641: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:642: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:643: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:648: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvBlobTrackPredictor’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:656: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:661: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvBlobTrackAnalysis’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:676: error: expected
> ‘)’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:684: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvBlobTrackFVGen’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:701: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> ‘CvBlobTrackAnalysisOne’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:712: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:717: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:720: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:723: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:726: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> In file included from /usr//include/opencv/cvaux.h:61,
>                 from gstfacedetect.h:52,
>                 from gstfacedetect.c:66:
> /usr/local/include/opencv2/legacy/blobtrack.hpp:743: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:749: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:752: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
> ‘CvBlobTrackAnalysisHeight’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:762: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvBlobTrackerAuto’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:777: error: expected
> ‘)’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:792: error: expected
> specifier-qualifier-list before ‘CvFGDetector’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:813: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:816: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> In file included from /usr//include/opencv/cvaux.h:61,
>                 from gstfacedetect.h:52,
>                 from gstfacedetect.c:66:
> /usr/local/include/opencv2/legacy/blobtrack.hpp:840: error: expected
> ‘)’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:841: error: expected
> ‘)’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:842: error: expected
> ‘)’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:846: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘CvProb’
> /usr/local/include/opencv2/legacy/blobtrack.hpp:861: error: expected
> ‘)’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:865: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:866: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:867: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:868: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> /usr/local/include/opencv2/legacy/blobtrack.hpp:874: error: expected
> ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> In file included from /usr//include/opencv/cvaux.h:61,
>                 from gstfacedetect.h:52,
>                 from gstfacedetect.c:66:
> /usr/local/include/opencv2/legacy/blobtrack.hpp:910: error: expected
> ‘;’, ‘,’ or ‘)’ before ‘=’ token
> In file included from /usr//include/opencv/cvaux.h:61,
>                 from gstfacedetect.h:52,
>                 from gstfacedetect.c:66:
> /usr/local/include/opencv2/legacy/blobtrack.hpp:940: error: expected
> ‘;’, ‘,’ or ‘)’ before ‘=’ token
> make[3]: *** [libgstfacedetect_la-gstfacedetect.lo] Error 1
>
>
> the bug why I updated:
>
>  I would like to use alpha blending.
> I followed Shervin Emam instructions but it isnt help :(
> The alpha blending method:
>
> I split the input frame into 3 image from the 3 channel.
> and I use cvAddWeighted function on 3 image and add 3 other image with
> alpha and beta equal 0.5.
> and after I merge this images
>
> after this method the video is flicking and I see some sub image in
> the frame etc ...
>
> So I think this is a bug. And doesnt solved the update to newer OpenCV
> version.
>
> Any idea ?
>
> --
> Best Regards,
>
> Robert
>
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better
> price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
Sreerenj Balachandran (Nokia-D R&D/Helsinki)
Senior Engineer, Multimedia
http://github.com/sreerenjb <http://github.com/sreerenjb/gst-opencv>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20110128/451a9cf7/attachment.htm>


More information about the gstreamer-devel mailing list