[Paraview] ParaView on the Mac
Jon H Kaspersen
Jon.H.Kaspersen at sintef.no
Wed Dec 15 03:17:46 EST 2004
Mathieu,
I did a completely clean build of ParaView using your patch. Still I
am seeing
this error:
Building .o file from CXX: vtkTkRenderWidget.o...
In file included from
/Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/macosx/tkMacOSXPort.h:
81,
from
/Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/generic/tkPort.h:32,
from
/Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/generic/tkInt.h:27,
from
/Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/macosx/tkMacOSXInt.h:
19,
from
/Users/jonk/cvs/ParaViewbin/VTK/Rendering/vtkTkInternals.h:34,
from
/Users/jonk/cvs/ParaView/VTK/Rendering/vtkTkRenderWidget.cxx:21:
/Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/generic/
tkIntXlibDecls.h:663: error: declaration
of C function `void XSetDashes(Display*, _XGC*, int, const char*,
int)'
conflicts with
/usr/include/X11/Xlib.h:3792: error: previous declaration `int
XSetDashes(Display*, _XGC*, int, const char*, int)' here
/Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/generic/
tkIntXlibDecls.h:686: error: declaration
of C function `KeySym XKeycodeToKeysym(Display*, unsigned char, int)'
conflicts with
/usr/include/X11/Xlib.h:1799: error: previous declaration `KeySym
My TK_INTERNAL_PATH is pointing at the same directory as yours now:
~/ParaView/VTK/Utilities/TclTk/internals/tk8.4
Any suggestions ?
Regards
Jon
On Dec 14, 2004, at 9:46 PM, Jon H Kaspersen wrote:
> Mathieu,
>
> Mine looks like :
>
> //The path to the Tk internal headers (tkMacOSXPort.h).
> TK_INTERNAL_PATH:PATH=/Users/jonk/cvs/VTK/Utilities/TclTk/internals/
> tk8.4
>
> Regards
> Jon
> On Dec 14, 2004, at 9:41 PM, Mathieu Malaterre wrote:
>
>> Jon,
>>
>> What is the value of this variable from your CMakeCache.txt:
>>
>> TK_INTERNAL_PATH ?
>>
>> Mine look like this :
>>
>> TK_INTERNAL_PATH:PATH=~/ParaView/VTK/Utilities/TclTk/internals/tk8.4
>>
>> Thanks
>> Mathieu
>>
>> Jon H Kaspersen wrote:
>>> Hi Mathieu,
>>> I did the path and did a new make without make clean which resulted
>>> in the
>>> following error :
>>> Building .o file from CXX: vtkTkRenderWidget.o...
>>> In file included from
>>> /Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/macosx/
>>> tkMacOSXPort.h: 81,
>>> from
>>> /Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/generic/tkPort.h:
>>> 32,
>>> from
>>> /Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/generic/tkInt.h:27,
>>> from
>>> /Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/macosx/
>>> tkMacOSXInt.h: 19,
>>> from
>>> /Users/jonk/cvs/ParaViewbin/VTK/Rendering/vtkTkInternals.h:34,
>>> from
>>> /Users/jonk/cvs/ParaView/VTK/Rendering/vtkTkRenderWidget.cxx:21:
>>> /Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/generic/
>>> tkIntXlibDecls.h:663: error: declaration
>>> of C function `void XSetDashes(Display*, _XGC*, int, const char*,
>>> int)'
>>> conflicts with
>>> /usr/include/X11/Xlib.h:3792: error: previous declaration `int
>>> XSetDashes(Display*, _XGC*, int, const char*, int)' here
>>> /Users/jonk/cvs/ParaView/Utilities/TclTk/tk8.4.5/generic/
>>> tkIntXlibDecls.h:686: error: declaration
>>> of C function `KeySym XKeycodeToKeysym(Display*, unsigned char,
>>> int)'
>>> conflicts with
>>> /usr/include/X11/Xlib.h:1799: error: previous declaration `KeySym
>>> ------snip-----
>>> Would it be an idea to do a make clean first and then a new make ?
>>> Regards
>>> Jon
>>> On Dec 14, 2004, at 9:05 PM, Mathieu Malaterre wrote:
>>>> I am sorry, here it is.
>>>>
>>>> Mathieu
>>>>
>>>> Jon H Kaspersen wrote:
>>>>
>>>>> Mathieu,
>>>>> There was no attachment to your mail, could you please resend ?
>>>>> Regards
>>>>> Jon
>>>>> On Dec 14, 2004, at 3:55 PM, Mathieu Malaterre wrote:
>>>>>
>>>>>> Jon,
>>>>>>
>>>>>> Could you try to apply the attached patch to your ParaView
>>>>>> source. Go to ParaView/Utilities/TclTk and then type:
>>>>>>
>>>>>> patch -p0 < /tmp/patch (assuming you save the attachment in /tmp)
>>>>>>
>>>>>> Let us know how this work, thanks
>>>>>> Mathieu
>>>>>>
>>>>>> Jon H Kaspersen wrote:
>>>>>>
>>>>>>> Hi again,
>>>>>>> Building ParaView using the X11 libs will work, I know - I have
>>>>>>> tried that.
>>>>>>> So, I was trying to build ParaView with the Carbon approach in
>>>>>>> order not to be
>>>>>>> depending on the X11 installation. ParaView was building with
>>>>>>> the Carbon
>>>>>>> approach a while back, but was buggy, probably because of the
>>>>>>> lack of OS X
>>>>>>> support in the Tcl/Tk version I used then.
>>>>>>> Regards
>>>>>>> Jon
>>>>>>>
>>>>>>>>
>>>>>>>> ParaView always builds its own Tcl/Tk (8.4.5) that comes in the
>>>>>>>> source tree, so the version of Tcl on your system does not
>>>>>>>> matter. As far as this error, I think you have to build
>>>>>>>> ParaView with
>>>>>>>>
>>>>>>>> VTK_USE_COCOA:BOOL=OFF
>>>>>>>> VTK_USE_CARBON:BOOL=OFF
>>>>>>>> VTK_USE_X:BOOL=ON
>>>>>>>>
>>>>>>>> -Brad
>>>>>>>>
>>>>>>>>
>>>>>>> ========================================================
>>>>>>> Jon Harald Kaspersen Mob: +47 93 03
>>>>>>> 65 90
>>>>>>> Ph.D. Mechanical Engineering Senior Scientist
>>>>>>> SINTEF Helse
>>>>>>> N-7465 Trondheim
>>>>>>> NORWAY e-mail: Jon.H.Kaspersen at sintef.no
>>>>>>> WEB: http://www.sintef.no/medtek
>>>>>>> ========================================================
>>>>>>> _______________________________________________
>>>>>>> ParaView mailing list
>>>>>>> ParaView at paraview.org
>>>>>>> http://www.paraview.org/mailman/listinfo/paraview
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>> ========================================================
>>>>> Jon Harald Kaspersen Mob: +47 93 03
>>>>> 65 90
>>>>> Ph.D. Mechanical Engineering Senior Scientist
>>>>> SINTEF Helse
>>>>> N-7465 Trondheim
>>>>> NORWAY e-mail: Jon.H.Kaspersen at sintef.no
>>>>> WEB: http://www.sintef.no/medtek
>>>>> ========================================================
>>>>
>>>>
>>>> Index: CMakeLists.txt
>>>> ===================================================================
>>>> RCS file:
>>>> /cvsroot/ParaView/ParaView/Utilities/TclTk/CMakeLists.txt,v
>>>> retrieving revision 1.19
>>>> diff -u -3 -p -r1.19 CMakeLists.txt
>>>> --- CMakeLists.txt 20 Aug 2004 15:06:27 -0000 1.19
>>>> +++ CMakeLists.txt 13 Dec 2004 16:48:30 -0000
>>>> @@ -13,6 +13,12 @@
>>>>
>>>> PROJECT(TclTk)
>>>>
>>>> +SET(tk_include_paths "${TclTk_SOURCE_DIR}/tk8.4.5/generic")
>>>> +IF(VTK_USE_CARBON)
>>>> + SET(tk_include_paths ${tk_include_paths}
>>>> "${TclTk_SOURCE_DIR}/tk8.4.5/macosx")
>>>> +ENDIF(VTK_USE_CARBON)
>>>> +
>>>> +
>>>> IF(UNIX)
>>>> SET(TCL_TK_STATIC 1 CACHE INTERNAL "Build with static Tcl/Tk
>>>> support. TCL_LIBRARY and TK_LIBRARY must point to the corresponding
>>>> Tcl/Tk static libraries (example, tcl84sx.lib, tk84sx.lib)."
>>>> FORCE)
>>>> SET(TclTk_BINARY_DIR_TCLBIN "${TclTk_BINARY_DIR}/tcl8.4.5/unix")
>>>> @@ -53,7 +59,7 @@ IF(UNIX)
>>>> SET(TK_STUB_LIBRARY
>>>> ${TclTk_BINARY_DIR_TKBIN}/libtkstub8.4${TCLTK_DEBUG_EXT}.a
>>>> CACHE INTERNAL "Path to tk stub library" FORCE)
>>>> - SET(TK_INCLUDE_PATH ${TclTk_SOURCE_DIR}/tk8.4.5/generic
>>>> + SET(TK_INCLUDE_PATH "${tk_include_paths}"
>>>> CACHE INTERNAL "Path to tk include" FORCE)
>>>>
>>>> CONFIGURE_FILE(${TclTk_SOURCE_DIR}/configure_tcltk.sh.in
>>>>
>>> ========================================================
>>> Jon Harald Kaspersen Mob: +47 93 03 65
>>> 90
>>> Ph.D. Mechanical Engineering Senior Scientist
>>> SINTEF Helse
>>> N-7465 Trondheim
>>> NORWAY e-mail: Jon.H.Kaspersen at sintef.no
>>> WEB: http://www.sintef.no/medtek
>>> ========================================================
>>
>>
>>
>>
> ========================================================
> Jon Harald Kaspersen Mob: +47 93 03 65 90
> Ph.D. Mechanical Engineering
> Senior Scientist
> SINTEF Helse
> N-7465 Trondheim
> NORWAY e-mail: Jon.H.Kaspersen at sintef.no
> WEB: http://www.sintef.no/medtek
> ========================================================
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>
========================================================
Jon Harald Kaspersen Mob: +47 93 03 65 90
Ph.D. Mechanical Engineering
Senior Scientist
SINTEF Helse
N-7465 Trondheim
NORWAY e-mail: Jon.H.Kaspersen at sintef.no
WEB: http://www.sintef.no/medtek
========================================================
More information about the ParaView
mailing list