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

Michael Jackson mike.jackson at bluequartz.net
Sun Sep 28 18:00:38 EDT 2008


For what ever reason, it isn't compiling something in 64bit. Can you  
compile just one arch, either 32bit or 64 bit?

Also, there is a jpeg library in VTK 5.2 which _can_ be built for 64  
bit so you might look to that for answers..


Mike

On Sep 28, 2008, at 4:11 PM, Elvis Dowson wrote:

> 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
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list