On Jul 5, 2011, at 12:09 PM, Sean McBride wrote:

> On Tue, 5 Jul 2011 12:39:57 +0400, Elena Pourmal said:
> 
>> In the past I only built universal binaries for HDF5 and HDF4 command
>> line utilities (not libraries). I used different machines and didn't not
>> use compiler flags on the same machine (but tried it both ways;
>> unfortunately I couldn't make binaries built on 64-bit Intel to work on
>> 32-bit Intel). Here is the procedure I followed:
> 
> Is the CMake support now in working order?  Because with CMake, you just have 
> to set CMAKE_OSX_ARCHITECTURES and it will build universal.  (Assuming 
> results of 'try runs' are not used to decide things like endianess and 
> pointer size.)
> 
> -- 
> ____________________________________________________________
> Sean McBride, B. Eng                 [email protected]
> Rogue Research                        www.rogue-research.com 
> Mac Software Developer              Montréal, Québec, Canada


Not that easy. There is a program that is generated that is then run to get 
very specific details about floating point conversions and things like that 
during the build. The output from that program generates a source file that is 
included in the build of the library. For my own HDF5 1.6.9 repo I did all the 
necessary additions to actually make the source file that was produced 
universal binary compatible. I offered it for inclusion into the latest HDF5 
sources but was declined. So about the best you can do is come up with a script 
that uses cmake to create 4 build trees for HDF5 and then lipo everything 
together at the end.

___________________________________________________________
Mike Jackson                      www.bluequartz.net
Principal Software Engineer       [email protected] 
BlueQuartz Software               Dayton, Ohio
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to