On 23 Nov 2011, at 16:44, Jim Schatzman wrote: > Most Linux open-source packages have some method for building 32-bit > libraries on 64-bit platforms. Typically, setting > > export CFLAGS=-m32 > export CXXFLAGS=-m32 > > does the trick, possibly along with making sure that 64-bit libraries go to > /usr/lib64 or /usr/local/lib64 and 32-bit libraries go to /usr/lib or > /usr/local/lib. > > However, this does not work with fltk 1.1.10 because the build system ignores > CFLAGS and CXXFLAGS. It does use ARCHFLAGS, but if you set ARCHFLAGS=-m32, > you eventually get > > Linking fluid... > /usr/bin/ld: skipping incompatible ../lib/libfltk_png.a when searching for > -lfltk_png > /usr/bin/ld: cannot find -lfltk_png > > I am attempting to build a 32-bit version on Centos 6.0 x8_64. > > Any ideas?
If Greg's method doesn't work for you, then you can try my less graceful approach, which is to run configure as normal, then hand-edit the makeinclude file to set the options and paths the way I want them. (All the interesting stuff is in the makeinclude file, though you might want to take a peek into config.h as well, just in case there are any data sizes or etc that you are concerned about!) ...Which almost certainly is exactly what you were hoping to avoid in the first place... But Greg's way *ought* to work. As an aside, I think this all works a bit better in 1.3.x so you might want to give that a whirl too - it's almost as stable as 1.1.10, and has a bunch of useful extra functionality. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
