Hi,

I'm trying to compile FLTK 1.1.9 (Rev 6106)
for MacOSX 10.4 and get Universal Binaries.  I am compiling
from MacOSX 10.5 (Leopard).  Browsing through these forums
I came across a few similar items but nothing definitive.
My procedure is this which takes place in the top level directory:

$ export CXXFLAGS="-isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch 
ppc"
$ export LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
$ ./configure --with-archflags="-arch i386 -arch ppc" --enable-xft 
--enable-threads
$ make

This all seems to work fine but the linking process fails on Fluid
and thus I have no Fluid and also none of the demos. The output
appears to have something to do with the linker:

This all seems to work fine but the linkingLinking fluid...
Undefined symbols for architecture ppc:
  "_strtod$UNIX2003", referenced from:
      _png_handle_sCAL in libfltk_png.a(pngrutil.o)
      _png_handle_sCAL in libfltk_png.a(pngrutil.o)
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
Undefined symbols for architecture i386:
  "_strtod$UNIX2003", referenced from:
      _png_handle_sCAL in libfltk_png.a(pngrutil.o)
      _png_handle_sCAL in libfltk_png.a(pngrutil.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: 
/var/folders/ek/ekr3TlLeGmShjRDfPpVA0U+++TI/-Tmp-//cc3YaCsk.out (No such file 
or directory)
make[1]: *** [fluid] Error 1
make: *** [all] Error 1

Any ideas? Obviously the reason I am doing this is because my software,
which uses FLTK, needs to be able to run on 10.4 and 10.5 machines.

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

Reply via email to