Bug 339806 - Compiler error: ambiguous reference to ratio variable
Summary: Compiler error: ambiguous reference to ratio variable
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Portability-Compilation (show other bugs)
Version: 4.4.0
Platform: MacPorts macOS
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-09 08:36 UTC by Gianluca
Modified: 2017-08-19 20:57 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.5.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gianluca 2014-10-09 08:36:13 UTC
I followed the instructions for building digikam 4.4.0 from tarball.
I installed all dependencies using MacPorts and then I build digikam.
During the build a get a compilation error about ambiguous reference to ratio variable.
That variable in the digikam-4.4.0/core/tests/imgqsort/detectblur/detectblur.cpp and digikam-4.4.0/core/tests/imgqsort/detectnoise/detectnoise.cpp source files.
It was enough to rename the ratio variable in something else (I used 'ratios') to solve the compilation error and to successfully install digikam 4.4.0 on Mac OS X.


Reproducible: Always

Steps to Reproduce:
1. Download digikam 4.4.0 tarball
2. Install all dependencies via MacPorts indicated into REAMDE.MACOSX
3. Build it
Comment 1 caulier.gilles 2014-10-09 14:25:55 UTC
Git commit 42d3dab5436fb1d6f144cde797575626906e62e6 by Gilles Caulier.
Committed on 09/10/2014 at 14:24.
Pushed by cgilles into branch 'master'.

Fix variable "ratio" name to compile fine under OSX
FIXED-IN: 4.5.0

M  +11   -7    tests/imgqsort/detectblur/detectblur.cpp
M  +11   -7    tests/imgqsort/detectcompression/detectcompression.cpp
M  +11   -7    tests/imgqsort/detectnoise/detectnoise.cpp

http://commits.kde.org/digikam/42d3dab5436fb1d6f144cde797575626906e62e6