[vtkusers] Re: [CMake] Re: VTK /Cmake OSX universal binary quality dashboards

Dan White dan at chalkie.org.uk
Thu Jun 8 03:20:34 EDT 2006


Hi Yves,

I thought the
CMAKE_OSX_SYSROOT:STRING=/Developer/SDKs/MacOSX10.4u.sdk/
flag should set it to use the apple universal SDK
if you indeed have that installed,
so you should be able to build universal binaries on a PPC Mac
just the same as you build universal binaries on a intel Mac?

Or am I missing something important, as usual...

As for code optimisations, where are the differences in these between  
say a linux i386 build and an OSX i386 build.
Same VTK C++ code being compiled, same processor...?
The APIs that the VTK compiles libraries see for openGL, python, etc.  
should be platform independent?

What am I missing here? Quite a lots of important details I expect.

I hope it might be possible to still use the compiler flag -fast
to optimise both PPC and i386?

But as mentioned before it might be better to have a special case in  
cmake for OSX,
where if you are building a universal binary, you have options to set  
the compilation and some other needed flags differently for ppc and  
i386?
I think you can do that in XCode, and even set them for specific c++  
files.

I wish I was a C++ programmer so I could actually do something here....
I'm only a biologist...
A simple vtkPython script is about my limit.

Dan





On 7 Jun 2006, at 20:45, Yves Starreveld wrote:

> and you built on intel, and I built on .ppc
>
> clearly (as the other issues also show) there is a ways to go on  
> this universal binary thing.
>
> There are also a bunch of little optimizations in the code that are  
> hardware dependent that will require dealing with (like rounding  
> techniques, fast floors, etc. etc.)
>
> Yves
> On 7-Jun-06, at 1:37 PM, Dan White wrote:
>
>> Hi Yves,
>>
>> Indeed it is funny because I get this!
>>
>> white:~/Desktop/VTKgcc/VTK/bin dan$ lipo -info  
>> libvtkFilteringPythonD.dylib
>> Architectures in the fat file: libvtkFilteringPythonD.dylib are:  
>> ppc i386
>> white:~/Desktop/VTKgcc/VTK/bin dan$
>>
>> So at least as far as my build got  it was making universal .dylib
>>
>> Dan
>>
>>
>>
>>
>> On 7 Jun 2006, at 20:29, Yves Starreveld wrote:
>>
>>> Funny, I just did a clean build with those settings, and lipo  
>>> tells me:
>>>
>>> ystarrev$ lipo -info libvtkCommon.dylib
>>> Non-fat file: libvtkCommon.dylib is architecture: ppc
>>>
>>> Yves
>>>
>>> On 7-Jun-06, at 1:23 PM, Dan White wrote:
>>>
>>>> Hi Glen,
>>>>
>>>> maybe it would be best to have a universal build as the quality  
>>>> dashboard submission?
>>>> if you have an intel mac to build it on, using
>>>>
>>>> CMAKE_OSX_ARCHITECTURES:STRING=ppc;i386
>>>> CMAKE_OSX_SYSROOT:STRING=/Developer/SDKs/MacOSX10.4u.sdk/
>>>>
>>>> I just discovered that is is easy to build universal binaries...
>>>>
>>>> I guess unless someone needs to have an intel only binary for  
>>>> some specific purpose,
>>>> then universal is better as you test building both ppc and i386  
>>>> architecures at the same time?
>>>>
>>>> but then again the tests would only be run on the intel parts of  
>>>> the binaries not on the ppc parts...
>>>> on an intel machine that is.
>>>>
>>>> Maybe I/We/someone should also submit an OSX universal binary  
>>>> VTK quality dashboard built on a PPC.
>>>> I have a G5 powermac that could be used for that,
>>>> if someone shows me how to set up the nightly build and  
>>>> dashboard submission....
>>>>
>>>> cheers
>>>>
>>>> Dan
>>>>
>>>> On 7 Jun 2006, at 18:45, Glen Lehmann wrote:
>>>>
>>>>> Hi Dan,
>>>>>
>>>>> OK, I've just submitted a carbon dashboard built on an intel  
>>>>> Mac.  I
>>>>> don't know how often Kitware's VTK dashboard rolls up and it won't
>>>>> show up until then.  Tomorrow's dashboard will also build the Tcl
>>>>> libraries.
>>>>>
>>>>> There were 2 Tk-related build errors that I have just committed  
>>>>> a fix
>>>>> for, the bug report is here:
>>>>> http://www.vtk.org/Bug/bug.php?op=show&bugid=3233
>>>>>
>>>>> The only remaining difference between our builds now is  
>>>>> Python2.4.  I
>>>>> suggest turning on CMAKE_VERBOSE_MAKEFILE and post (or log a  
>>>>> bug with)
>>>>> the compiler error.
>>>>>
>>>>> Cheers,
>>>>>
>>>>> Glen
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On 07/06/06, Sean McBride <sean at rogue-research.com> wrote:
>>>>>> On 2006-06-07 15:13, Dan White said:
>>>>>>
>>>>>> >Anyone else managed a OSX x86 intel VTK build?
>>>>>>
>>>>>> I'm not sure if it will be useful, but you could look at my  
>>>>>> nightly
>>>>>> cmake build.  It is built on a PPC but is a Universal Binary:
>>>>>>
>>>>>> <http://www.cmake.org/Testing/Sites/RogueResearchPPC/Darwin8.6- 
>>>>>> G4-
>>>>>> gcc4.0.1-univ/20060607-0100-Nightly/Notes.html>
>>>>>>
>>>>>> --
>>>>>> ____________________________________________________________
>>>>>> Sean McBride, B. Eng                 sean at rogue-research.com
>>>>>> Rogue Research                        www.rogue-research.com
>>>>>> Mac Software Developer              Montréal, Québec, Canada
>>>>>>
>>>>>>
>>>>>>
>>>>
>>>> Dr. Daniel James White BSc. (Hons.) PhD
>>>> Bioimaging Coordinator
>>>> Nanoscience Centre and Department of Biological and  
>>>> Environmental Sciences
>>>> Division of Molecular Recognition
>>>> Ambiotica C242
>>>> PO Box 35
>>>> University of Jyväskylä
>>>> Jyväskylä
>>>> FIN 40014
>>>> Finland
>>>>
>>>> +358 14 260 4183 (work)
>>>> +358 468102840 (mobile)
>>>> http://www.bioimagexd.org
>>>> http://www.chalkie.org.uk
>>>> dan at chalkie.org.uk
>>>> white at cc.jyu.fi
>>>>
>>>>
>>>> _______________________________________________
>>>> CMake mailing list
>>>> CMake at cmake.org
>>>> http://www.cmake.org/mailman/listinfo/cmake
>>>
>>
>> Dr. Daniel James White BSc. (Hons.) PhD
>> Bioimaging Coordinator
>> Nanoscience Centre and Department of Biological and Environmental  
>> Sciences
>> Division of Molecular Recognition
>> Ambiotica C242
>> PO Box 35
>> University of Jyväskylä
>> Jyväskylä
>> FIN 40014
>> Finland
>>
>> +358 14 260 4183 (work)
>> +358 468102840 (mobile)
>> http://www.bioimagexd.org
>> http://www.chalkie.org.uk
>> dan at chalkie.org.uk
>> white at cc.jyu.fi
>>
>>
>

Dr. Daniel James White BSc. (Hons.) PhD
Bioimaging Coordinator
Nanoscience Centre and Department of Biological and Environmental  
Sciences
Division of Molecular Recognition
Ambiotica C242
PO Box 35
University of Jyväskylä
Jyväskylä
FIN 40014
Finland

+358 14 260 4183 (work)
+358 468102840 (mobile)
http://www.bioimagexd.org
http://www.chalkie.org.uk
dan at chalkie.org.uk
white at cc.jyu.fi





More information about the vtkusers mailing list