[vtkusers] How to build libraries for both 32-bit and 64-bit architectures
Elvis Dowson
elvis.dowson at mac.com
Sun Sep 28 15:05:50 EDT 2008
Thanks Martin, this worked.
Now how do I check if the newly built libpng.dylib does actually
include support for both 32-bit and 64-bit architectures?
I need to take this step by step, if I am to build all the dependent
libraries and test Qt-4.5.x and vtk-5.3.x with Cocoa support.
Best regards,
Elvis Dowson
On Sep 28, 2008, at 10:44 PM, Martin Costabel wrote:
> Elvis Dowson wrote:
> []
>> ./configure make
>> This results in the following error for libpng-1.2.31
>> /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -
>> I. -DPNG_CONFIGURE_LIBPNG -arch i386 -arch x86_64 -MT
>> libpng12_la-png.lo -MD -MP -MF .deps/libpng12_la-png.Tpo -c -o
>> libpng12_la-png.lo `test -f 'png.c' || echo './'`png.c
>> libtool: compile: gcc -DHAVE_CONFIG_H -I. -DPNG_CONFIGURE_LIBPNG -
>> arch i386 -arch x86_64 -MT libpng12_la-png.lo -MD -MP -MF .deps/
>> libpng12_la-png.Tpo -c png.c -fno-common -DPIC -o .libs/
>> libpng12_la-png.o
>> gcc-4.0: -E, -S, -save-temps and -M options are not allowed with
>> multiple -arch flags
>> make[1]: *** [libpng12_la-png.lo] Error 1
>> make: *** [all] Error 2
>> How can I disable -save-temps and -M options?
>> The ./configure --help doesnt give much or document this.
> []
>
> Try this one:
>
>> --disable-dependency-tracking speeds up one-time build
>
> --
> Martin
>
>
>
More information about the vtkusers
mailing list