Bug 339806

Summary: Compiler error: ambiguous reference to ratio variable
Product: [Applications] digikam Reporter: Gianluca <gmaxera>
Component: Portability-CompilationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.4.0   
Target Milestone: ---   
Platform: MacPorts   
OS: macOS   
Latest Commit: Version Fixed In: 4.5.0

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