Bug 254205

Summary: Compiling fails on SPARC platform because "qDNGBigEndian" macro is not defined.
Product: [Applications] digikam Reporter: Jean-Fred <jfc31>
Component: Portability-CompilationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 1.6.0

Description Jean-Fred 2010-10-14 23:11:41 UTC
Version:           1.5.0 (using KDE 4.4.5) 
OS:                Linux

This is for SPARC platform only!!!

Compiling fails generating "Unable to figure out byte order." error...
The reason is that "qDNGBigEndian" is not defined when compiling for SPARC architecture. This is because SPARC architecture is not managed at all in "dng_flags.h"

Adding:
#elif defined(__sparc__)
#define qDNGBigEndian 1

on line 76 of "dng_flags.h" fixes the issue:
- Compiling now works OK.
- Compiled application works OK.


Reproducible: Always

Steps to Reproduce:
On SPARC machine:
- Compile from source as per kipi-plugins README recommendations. From kipi-plugin root directory:
    cmake.
    make


Actual Results:  
At some point compilation stops with error: "Unable to figure out byte order."

Expected Results:  
Compilation finishes successfully!!!

On SPARC architecture (UltraSPARC-10 running debian "Squeeze").
Comment 1 caulier.gilles 2010-10-15 10:24:46 UTC
SVN commit 1186073 by cgilles:

fix broken compilation under SPARC architecture.
BUGS: 254205


 M  +3 -0      dng_flags.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1186073