On 9 Feb 2010, at 22:13, Jim Wilson wrote:

> I'm trying to resurrect an old FLTK application, and I have  
> encountered a weird
> problem I'm hoping someone can help with.
>
> I foolishly moved to 64-bit Linux (Fedora 12/GCC 4.2.2) since my  
> last attempt to
> build *32-bit* FLTK.

Does it still work OK if you build fltk in 64-bit mode? Others have  
reported that it does, and it did for me a while back (but I had to  
convert that test box back to 32-bit for some work I was doing so  
don't actually have any 64-bit box at present...)


> Still, after:
>
>       ./configure --with-archflags="-m32"

I have never had much success getting the fltk configure to honour  
"cross-compilation" settings - though I am usually trying to do  
something more complicated that just 32/64-bit on x86, so maybe this  
case can work?


> revision 7050 (the current SVN version) of FLTK 1.1 builds with  
> just the usual
> few warnings that GCC insists on emitting these days.
>
> ./Configure *does* get confused about sizeof(long).  It omits the "- 
> m32" from
> its gcc test invocation and mistakenly measures 8 bytes.  But, I  
> don't *think*
> fltk depends on this bogus measurement.

See, at this point I usually hand-edit makeinclude and config.h to  
make them "right" for my cross-target, then build the fltk libs and  
test folder again.

Does that make a difference?

>
> All the test applications appear to work with the gtk+ and none  
> schemes.
> Plastic fails spectacularly with a striped background as shown here:
>
>       http://kodhaus.com/shot.png

Ooh, cool.

> Amazingly, the widgets continue respond and seemingly work as  
> expected in
> response to various clicky-clicks.
>
> I *think* the X server is rendering these psychedelic regions only  
> in the
> plastic scheme.  Is that right?  Or do I have it backward?

The plastic scheme uses a tile to fill the background IIRC, the  
others do not, so I guess it is the tiling that is failing here...  
May be related to guessing the wrong size for long?



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

Reply via email to