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

Mike Jackson mike.jackson at bluequartz.net
Sun Aug 2 00:38:42 EDT 2009


Run "make VERBOSE=1" and post only the final link command. I have an  
idea what it might be.

Mike jackson

Sent from my iPod

On Aug 1, 2009, at 22:57, Pierre-Olivier Dallaire <pierre-olivier.dallaire at videotron.ca 
 > wrote:

> Good evening,
>
> I have slightly modified the patch from http://markmail.org/thread/m2asfe3wod52k2ym 
>  and applied it
> on the cvs paraview. This error occurs :
>
> [ 71%] Building CXX object Servers/Common/CMakeFiles/ 
> vtkPVServerCommon.dir/vtkPVServerCommonInstantiator.cxx.o
> Linking CXX shared library ../../bin/libvtkPVServerCommon.dylib
> Undefined symbols:
>   "_CFStringCreateWithCharacters", referenced from:
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>   "_DisposeHandle", referenced from:
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>   "_kCFAllocatorDefault", referenced from:
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>   "_NewHandle", referenced from:
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>   "_FSResolveAlias", referenced from:
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>   "_CFStringGetLength", referenced from:
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>   "_FSGetVolumeInfo", referenced from:
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>   "_CFStringGetTypeID", referenced from:
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>   "_CFRelease", referenced from:
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>       vtkPVFileInformation::GetSpecialDirectories()       in  
> vtkPVFileInformation.cxx.o
>   "_CFGetTypeID", referenced from:
>
> .... and more ...
>
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
> make[2]: *** [bin/libvtkPVServerCommon.dylib] Error 1
> make[1]: *** [Servers/Common/CMakeFiles/vtkPVServerCommon.dir/all]  
> Error 2
> make: *** [all] Error 2
>
> any idea / is it only related to Mac OS X ?
>
> Regards,
>
> PO
>
> On 31-Jul-09, 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
>>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090802/c28edfc2/attachment.htm>


More information about the ParaView mailing list