On 5 Jun 2009, at 19:35, Matthias Melcher wrote:
> Am 05.06.2009 15:42 Uhr schrieb "Michael Schmid" unter <sch...@ecom- 
> ch.com>:
>
>> I'm using FLTK 1.1.9, ELDK (http://www.denx.de/wiki/DULG/ELDK) and a
>> Freescale MPC5200.
>>
>> Now, I wrote my first test application. In buttons, etc. colors  
>> are OK.
>> But if I use, for example, FL_BMP_Image or FL_Pixmap then the  
>> colors are
>> "switched" (green is red and red is green or so...).
>>
>> It looks a bit like a little/big-endian problem. Is this known  
>> Problem?
>> And are there some special libraries I can use for PowerPC (I  
>> guess the
>> problem is in library fltk_images...?)
>
> Please do not post to FLTK bugs. It is only used b the automated bug
> tracking system. Instead post in FLTK General.
>
> FLTK works on both big and little endian machines correctly (tested  
> on OSX
> for PPC and Intel). Your version of FLTK seems to be a special
> (Corss-)Compiler setup. Maybe the correct endian flag is not set at  
> compile
> time?

Oh, that's interesting. Michael Schmid has posted a few times  
recently and I had not known he was cross-compiling for a different  
target... Not that it would have mattered for the questions being  
asked, mind you.

Michael, if you are cross-compiling, how did you generate the fltk  
lib you are using?
The fltk configure script is not very cross-compilation aware, so the  
best way is a little manual tweaking to get things going.
It does rather sound as if something has gone awry in that process,  
however.
Fltk works just fine on PPC hosts (e.g. this Mac) and I have cross- 
compiled code onto PPC targets running VxWorks in the past, without  
any particular image colour problems.


_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to