[Paraview] ParaView on the Mac
Jon H Kaspersen
Jon.H.Kaspersen at sintef.no
Tue Dec 14 15:27:39 EST 2004
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
========================================================
More information about the ParaView
mailing list