[vtkusers] vtk5.6.1 compile error on mac os x 10.6.8
David Gobbi
david.gobbi at gmail.com
Mon Jul 18 14:08:04 EDT 2011
I don't know that is causing the error, but there is a problem with
your config. If you want to use Tk, you should turn on VTK_WRAP_TCL,
even if you only plan to use Tk through Python.
- David
On Mon, Jul 18, 2011 at 10:23 AM, Jinghua Ge <jinghuage at cct.lsu.edu> wrote:
> Dear David,
>
> I can see how the ActiveTcl/tk can cause the problem I had.
> I deleted the Tcl/Tk I installed and am using the system Tcl/Tk now.
>
> I set Cocoa ON and X off.
>
> This time I have error messages like this:
>
> /Developer/SDKs/MacOSX10.6.sdk/usr/include/tkIntXlibDecls.h:669:
> error: declaration of C function ‘void XSetDashes(Display*, _XGC*,
> int, const char*, int)’ conflicts with
> /Developer/SDKs/MacOSX10.6.sdk/usr/include/X11/Xlib.h:3219: error:
> previous declaration ‘int XSetDashes(Display*, _XGC*, int, const
> char*, int)’ here
>
> What did I miss?
>
> Thank you!
>
> --
> Jinghua
>
>
> P. S. Here is a complete ccmake config I am using:
>
> ApplicationServices
> /System/Library/Frameworks/ApplicationServices.framework
> BUILD_EXAMPLES ON
> BUILD_SHARED_LIBS ON
> BUILD_TESTING ON
> CMAKE_BACKWARDS_COMPATIBILITY 2.4
> CMAKE_BUILD_TYPE Release
> CMAKE_INSTALL_PREFIX /Users/jinghua/Develop/VTK-Bin
> CMAKE_OSX_ARCHITECTURES x86_64
> CMAKE_OSX_DEPLOYMENT_TARGET 10.6
> CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.6.sdk
> IOKit
> /System/Library/Frameworks/IOKit.framework
> VTKMY_WRAP_PYTHON ON
> VTKMY_WRAP_TCL OFF
> VTK_DATA_ROOT /Users/jinghua/Develop/VTKData
> VTK_EXTRA_COMPILER_WARNINGS OFF
> VTK_LARGE_DATA_ROOT VTK_LARGE_DATA_ROOT-NOTFOUND
> VTK_USE_CARBON OFF
> VTK_USE_CHARTS ON
> VTK_USE_COCOA ON
> VTK_USE_GEOVIS ON
> VTK_USE_INFOVIS ON
> VTK_USE_N_WAY_ARRAYS ON
> VTK_USE_PARALLEL OFF
> VTK_USE_QT OFF
> VTK_USE_RENDERING ON
> VTK_USE_TEXT_ANALYSIS OFF
> VTK_USE_VIEWS ON
> VTK_USE_X OFF
> VTK_WRAP_JAVA OFF
> VTK_WRAP_PYTHON ON
> VTK_WRAP_PYTHON_SIP OFF
> VTK_WRAP_TCL OFF
>
>
>
>
> On Sun, Jul 17, 2011 at 8:56 PM, David Gobbi <david.gobbi at gmail.com> wrote:
>> Hi Jinghua,
>>
>> The tcl/tk that you chose probably uses Carbon instead of Cocoa.
>> You cannot use a Cocoa VTK with a Carbon tcl/tk or vice-versa.
>>
>> Do you have any specific need for python 2.7 and tcl/tk 8.6? If not,
>> you can avoid a lot of trouble by using the python and tcl/tk that
>> come with OS X 10.6, instead of downloading and building your own.
>>
>> If you do need ActiveTcl 8.6, you'll have to figure out whether it uses
>> Cocoa or Carbon and proceed from there.
>>
>> - David
>>
>>
>> On Fri, Jul 15, 2011 at 3:28 PM, Jinghua Ge <jinghuage at cct.lsu.edu> wrote:
>>> Hi,
>>>
>>> I am having trouble building a python wrapping of vtk5.6.1 on my mac,
>>> Mac os x 10.6.8
>>> I am using:
>>>
>>> Active Tcl/tk 8.6
>>> CMake 2.8.5
>>> Python 2.7.2
>>>
>>> CMake configuration: shared-lib, x86_64, MacOS sdk 10.6, Cocoa, Python
>>> wrap -- on; other: default
>>>
>>>
>>> Error message:
>>>
>>> ..../VTK/Rendering/vtkCocoaTkUtilities.mm:57: error: ‘struct
>>> TkWindowPrivate’ has no member named ‘view’
>>>
>>> Please help. Thanks much!
>>>
>>> --
>>> Jinghua
>>
>
More information about the vtkusers
mailing list