> > Shouldn't need a Makefile for this... > > > > fltk-config --use-gl --compile myprog.cxx > > > > Works just fine, and using fltk-config will ensure that all > the correct > > libs are pulled in. > > This doesn't work for me. It complains that > /sw/lib/libfltk.sylib and libfltk_gl.dylib > was built for i386 which is not the architecture being linked.
Oh, that's interesting... Is your app statically linked to the fltk libs, or is it using the dylibs? To be honest, I tend to link statically, as it ducks a lot of the pain introduced by the binary changes from the whole 32/64 ppc/intel business. I take it that the fink package is bodged to build the fltk dylibs then? The stock fltk tarballs do not build the dylibs by default - you have to ask for them specifically, so it seems that the fink folk have decided they "know better"... > It would be a major deal > to try moving my entire fink configuration to 64 bits, > and an even bigger deal to make > my large program 64-bit compliant, but if you think that is > the problem, I could try. No, don't try that, not with fltk 1.1 on OSX 10.6 or later, as Apple did some stuff to the carbon API's such that fltk-1.1.x tarballs will not build in 64-bit mode on OSX now. If you *want* to switch to 64-bit on OSX, you'll need to switch to fltk-1.3, which is 64-bit clean. Also, note that fltk-1.1.10 has a tweaked build process such that it will still build clean on 64-bit 10.6 OSX, albeit forcing 32-bit mode. I see from Greg's posts that he says the problem is "fixed" by using fltk-1.1.10, so that may be the path of least resistance for you? It should be a drop-in for any existing 1.1.7 codebase. SELEX Galileo Ltd Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

