Bug#652770: cimg: FTBFS: dist.h:82:7: error: expected identifier before numeric constant
Andreas Tille
andreas at an3as.eu
Wed Feb 8 19:56:05 UTC 2012
Hi David,
thanks for the preliminary information. Just keep me informed once you
released the new version.
Kind regards
Andreas.
On Wed, Feb 08, 2012 at 08:28:47PM +0100, David Tschumperlé wrote:
> Dear Andreas,
>
> Someone else reported this bug on the G'MIC forum, and I had some time to
> look at the issue today.
> The problem is *not* a bug from OpenCV (nor CImg by the way :)).
> The problem comes from the fact that one of the X11 include files defines
> the macros 'False' and 'True' to respectively '0' and '1',
> and that the OpenCV include file defines (empty) classes named 'True' and
> 'False'.
> So, there is a clear incompatibility when using the two headers at the same
> time (which is what CImg does of course).
>
> I found a quick hack for a work-around (basically by replacing all 'False'
> and 'True' expressions in CImg.h by their hard-coded values '0' and '1',
> and #undef True and False when OpenCV headers are required).
> So now, I can say the bug is corrected in upcoming 1.5.0 version of the
> CImg Library.
>
> Best Regards,
>
> David.
>
>
>
> 2011/12/29 Andreas Tille <andreas at an3as.eu>
>
> > Hi David,
> >
> > I keep the bug report in CC and thus full quote your mail to leave some
> > note there. Please ping me in case I might miss your release to make
> > sure we can close the bug soonish.
> >
> > Kind regards and for sure a happy new year 2012 as well
> >
> > Andreas.
> >
> > On Thu, Dec 29, 2011 at 01:03:51PM +0100, David Tschumperlé wrote:
> > > Dear Andreas,
> > > Thanks for the report. It seems to me that the bug comes from OpenCV
> > > instead.
> > > I don't think this is really an issue, since I will release the next CImg
> > > version in few weeks (hopefully!),
> > > and it compiles fine with latest packages of OpenCV installed (I'm using
> > > the latest Ubuntu).
> > >
> > > And of course, Happy new year 2012 !
> > >
> > > David.
> > >
> >
> > --
> > http://fam-tille.de
> >
--
http://fam-tille.de
More information about the debian-science-maintainers
mailing list