[Paraview] ParaView Mac OS X and Cocoa ... again

Michael Jackson mike.jackson at bluequartz.net
Fri Jul 31 17:15:42 EDT 2009


I have a patch, but it is kinda old at this point. I think it was  
against the PV 3.6 branch. I can include it here so that you can see  
what I did to get things to work or maybe I'll just generate a new  
patch against the PV 3.6 branch and you can look through it?

   Last time I tried I actually loaded a 5GB dataset into paraview on  
OS X.

The first hurdle is to get rid of the "forced" carbon build for OS X.  
Get the committed and then start working the rest. Clinton had a patch  
for one of the progress workers or something like that. I also needed  
the FindBoost.cmake from the latest CMake 2.6.4 (but that was probably  
for my own use.. )

   I'll help however I can..
---
Mike Jackson                 www.bluequartz.net



On Jul 31, 2009, at 5:01 PM, Berk Geveci wrote:

> Mike,
>
> I would like to have the cvs ParaView working with Cocoa (hopefully
> while still preserving Carbon build functionality). Do you have
> patches to do this? If not, can we work together to get this working?
>
> Thanks,
> -berk
>
> On Fri, Jul 31, 2009 at 4:52 PM, Michael
> Jackson<mike.jackson at bluequartz.net> wrote:
>> Index: CMakeLists.txt
>> ===================================================================
>> RCS file: /cvsroot/ParaView3/ParaView3/CMakeLists.txt,v
>> retrieving revision 1.97.2.1
>> diff -u -r1.97.2.1 CMakeLists.txt
>> --- CMakeLists.txt      18 May 2009 20:34:23 -0000      1.97.2.1
>> +++ CMakeLists.txt      11 Jun 2009 18:20:48 -0000
>> @@ -106,10 +106,13 @@
>>       ENDIF (NOT qt_version4_x_tmp)
>>     ENDIF (NOT qt_version_tmp)
>>     # enforce Carbon in VTK for Qt/Mac
>> -    IF(Q_WS_MAC)
>> +    IF(Q_WS_MAC AND QT_MAC_USE_COCOA)
>> +      SET(VTK_USE_CARBON OFF CACHE BOOL "Build VTK with Carbon"  
>> FORCE)
>> +      SET(VTK_USE_COCOA ON CACHE BOOL "Build VTK with Cocoa" FORCE)
>> +    ELSE(Q_WS_MAC AND QT_MAC_USE_COCOA)
>>       SET(VTK_USE_CARBON ON CACHE BOOL "Build VTK with Carbon" FORCE)
>>       SET(VTK_USE_COCOA OFF CACHE BOOL "Build VTK with Cocoa" FORCE)
>> -    ENDIF(Q_WS_MAC)
>> +    ENDIF(Q_WS_MAC AND QT_MAC_USE_COCOA)
>>   ENDIF(NOT QT4_FOUND)
>>  ELSE (PARAVIEW_BUILD_QT_GUI)
>>   SET(VTK_USE_QT OFF CACHE BOOL "Build VTK with Qt Support" FORCE)
>> Index: Qt/Widgets/pqProgressBarHelper.cxx
>> ===================================================================
>>
>> Here is patch (kinda crappy I know.. ) but if you can pick through  
>> it you
>> can see what you will need to change. I think there may be some other
>> problems but get this put in place and try the build again.
>>
>>  I _do_ have a functioning PV 3.6 64 Bit Cocoa build running on OS  
>> X intel
>> (Mac Pro) so I know it works.
>>
>> Good Luck.
>> _________________________________________________________
>> Mike Jackson                  mike.jackson at bluequartz.net
>> BlueQuartz Software                    www.bluequartz.net
>> Principal Software Engineer                  Dayton, Ohio
>>
>>
>>
>> On Jul 31, 2009, at 3:27 PM, Pierre-Olivier Dallaire wrote:
>>
>>> Good afternoon,
>>>
>>> I'm tryig to get a fully functional paraview installation based on  
>>> qt
>>> cocoa 64. Here are the steps that I have followed :
>>>
>>> 0) Compile a fresh version of cmake-2.6.4
>>> 1) Compile QT with Cocoa option and arch x86_64 / this worked  
>>> without
>>> problem
>>> 2) Configure paraview using BUILD_SHARED_LIBS:BOOL=ON,
>>> CMAKE_OSX_ARCHITECTURES:STRING=x86_64, VTK_USE_CARBON:BOOL=OFF and
>>> VTK_USE_COCOA:BOOL=ON
>>>
>>> When re-running cmake to take into account my new settings,  
>>> VTK_USE_CARBON
>>> switches back to ON and VTK_USE_COCOA to OFF.
>>> However, my qt cocoa flavor is found by cmake ;
>>>
>>> -- Looking for QT_MAC_USE_COCOA
>>> -- Looking for QT_MAC_USE_COCOA - found
>>> -- Found Qt-Version 4.5.2
>>>
>>> What is the problem here / it seems that ParaView does want to use  
>>> cocoa
>>> ???
>>>
>>> Thanks !
>>>
>>> PO
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.paraview.org/mailman/listinfo/paraview
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>



More information about the ParaView mailing list