[Debian-med-packaging] Bug#678226: sitplus: FTBFS: error: ‘cvCalcOpticalFlowHS’ was not declared in this scope

Nobuhiro Iwamatsu iwamatsu at nigauri.org
Wed Jun 20 02:37:44 UTC 2012


Source: sitplus
Version: 1.0.3-2.1
Severity: important
Tags: patch
Justification: fails to build from source

Hi,

sitplus FTBFS with opencv 2.4

-----
[ 78%] Building CXX object
src/mod_vision/CMakeFiles/spmod_vision.dir/oftracker.cpp.o
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/src/mod_vision/oftracker.cpp:
In member function ‘int mod_vision::COfTracker::ProcessImage(const
IplImage&, float&, float&)’:
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/src/mod_vision/oftracker.cpp:159:48:
error: ‘cvCalcOpticalFlowHS’ was not declared in this scope
In file included from
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/include/spcore/pin.h:26:0,
                 from
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/include/mod_camera/roitype.h:22,
                 from
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/src/mod_vision/oftracker.h:26,
                 from
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/src/mod_vision/oftracker.cpp:17:
/usr/include/boost/smart_ptr/intrusive_ptr.hpp: In instantiation of
‘boost::intrusive_ptr<T>::intrusive_ptr(T*, bool) [with T =
spcore::IIterator<spcore::CTypeAny*>]’:
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/include/spcore/basetype.h:72:46:
  required from here
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/include/spcore/baseobj.h:143:13:
note: ‘void boost::intrusive_ptr_add_ref(const spcore::IBaseObject*)’
declared here, later in the translation unit
/usr/include/boost/smart_ptr/intrusive_ptr.hpp: In instantiation of
‘boost::intrusive_ptr<T>::~intrusive_ptr() [with T =
spcore::IIterator<spcore::CTypeAny*>]’:
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/include/spcore/basetype.h:72:46:
  required from here
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/include/spcore/baseobj.h:146:13:
note: ‘void boost::intrusive_ptr_release(const spcore::IBaseObject*)’
declared here, later in the translation unit
/usr/include/boost/smart_ptr/intrusive_ptr.hpp: In instantiation of
‘boost::intrusive_ptr<T>::intrusive_ptr(const
boost::intrusive_ptr<T>&) [with T =
spcore::IIterator<spcore::CTypeAny*>; boost::intrusive_ptr<T> =
boost::intrusive_ptr<spcore::IIterator<spcore::CTypeAny*> >]’:
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/include/spcore/basetype.h:72:46:
  required from here
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/include/spcore/baseobj.h:143:13:
note: ‘void boost::intrusive_ptr_add_ref(const spcore::IBaseObject*)’
declared here, later in the translation unit
/usr/include/boost/smart_ptr/intrusive_ptr.hpp: In instantiation of
‘boost::intrusive_ptr<T>::intrusive_ptr(T*, bool) [with T =
spcore::CTypeAny]’:
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/include/spcore/basetype.h:89:48:
  required from here
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/include/spcore/baseobj.h:143:13:
note: ‘void boost::intrusive_ptr_add_ref(const spcore::IBaseObject*)’
declared here, later in the translation unit
/usr/include/boost/smart_ptr/intrusive_ptr.hpp: In instantiation of
‘boost::intrusive_ptr<T>::~intrusive_ptr() [with T =
spcore::CTypeAny]’:
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/include/spcore/basetype.h:89:48:
  required from here
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/include/spcore/baseobj.h:146:13:
note: ‘void boost::intrusive_ptr_release(const spcore::IBaseObject*)’
declared here, later in the translation unit
/usr/include/boost/smart_ptr/intrusive_ptr.hpp: In instantiation of
‘boost::intrusive_ptr<T>::intrusive_ptr(const
boost::intrusive_ptr<T>&) [with T = spcore::CTypeAny;
boost::intrusive_ptr<T> = boost::intrusive_ptr<spcore::CTypeAny>]’:
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/include/spcore/basetype.h:89:48:
  required from here
/home/iwamatsu/opencv/build-check/build/sitplus/sitplus-1.0.3/include/spcore/baseobj.h:143:13:
note: ‘void boost::intrusive_ptr_add_ref(const spcore::IBaseObject*)’
declared here, later in the translation unit
-----

I attached full build log.
And I created a patch which reivese this bug.
Could you check and apply this?

Best regards,
  Nobuhiro

-- 
Nobuhiro Iwamatsu
   iwamatsu at {nigauri.org / debian.org}
   GPG ID: 40AD1FA6
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sitplus-opencv2.4.patch
Type: application/octet-stream
Size: 294 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20120620/c0236137/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sitplus_1.0.3-2.1_amd64.build.gz
Type: application/x-gzip
Size: 25964 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-med-packaging/attachments/20120620/c0236137/attachment-0001.bin>


More information about the Debian-med-packaging mailing list