[vtkusers] How to build libraries for both 32-bit and 64-bit architectures

Elvis Dowson elvis.dowson at mac.com
Sun Sep 28 16:11:19 EDT 2008


Hi Martin,
                      Sorry for the trouble, but now I have a bit of  
difficulty getting libjpeg-6b to compile also for 64-bits.

export CFLAGS="-arch i386 -arch x86_64"
export CXXFLAGS="-arch i386 -arch x86_64"
export LDFLAGS="-arch i386 -arch x86_64"

./configure --enable-shared

make

results in the following error :

ld warning: in .libs/libjpeg.dylib, file is not of required architecture
Undefined symbols for architecture x86_64:
   "_jpeg_quality_scaling", referenced from:
       _parse_switches in cjpeg.lo
   "_jpeg_set_defaults", referenced from:
       _main in cjpeg.lo
   "_jpeg_set_colorspace", referenced from:
       _parse_switches in cjpeg.lo
   "_jpeg_stdio_dest", referenced from:
       _main in cjpeg.lo
   "_jpeg_add_quant_table", referenced from:
       _read_quant_tables in rdswitch.lo
   "_jpeg_simple_progression", referenced from:
       _parse_switches in cjpeg.lo
   "_jpeg_default_colorspace", referenced from:
       _main in cjpeg.lo
   "_jpeg_finish_compress", referenced from:
       _main in cjpeg.lo
   "_jpeg_std_error", referenced from:
       _main in cjpeg.lo
   "_jpeg_start_compress", referenced from:
       _main in cjpeg.lo
   "_jpeg_write_scanlines", referenced from:
       _main in cjpeg.lo
   "_jpeg_set_quality", referenced from:
       _parse_switches in cjpeg.lo
   "_jpeg_destroy_compress", referenced from:
       _main in cjpeg.lo
   "_jpeg_CreateCompress", referenced from:
       _main in cjpeg.lo
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//ccdG7jGa.out (No such file or  
directory)
make: *** [cjpeg] Error 1


Could you email me a zip of the sources directory for your patched  
libjpeg-6b files?

Best regards,

Elvis Dowson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20080929/74f0016f/attachment.htm>


More information about the vtkusers mailing list