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

Berk Geveci berk.geveci at kitware.com
Fri Jul 31 17:01:09 EDT 2009


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