[Paraview] Is it possible to compile against system Tcl/Tk?

Orion Poplawski orion at cora.nwra.com
Tue Apr 4 12:48:33 EDT 2006


Orion Poplawski wrote:
> Berk Geveci wrote:
>> It is not. It used to be but we ran into too many problems with people
>> using the wrong versions of Tcl/Tk and VTK. We stopped supporting it.
> 
> That's too bad.  I'd really like to build against the system Tcl/Tk, 
> which might make it acceptable to package for Fedora Extras.  I think 
> I'm close to figuring out how, just need to figure out how to pass -ltcl 
> and -ltk when building the binaries.
> 
> 

Ended up doing the following:

cmake .. \
         -DTCL_LIBRARY:PATH=tcl \
         -DTK_LIBRARY:PATH=tk \

Add applying the following patch:

--- paraview-2.4.2/CMakeLists.txt.orig  2006-03-10 10:20:16.000000000 -0700
+++ paraview-2.4.2/CMakeLists.txt       2006-03-10 10:22:08.000000000 -0700
@@ -271,10 +271,10 @@
    SET(VTK_TCL_TK_INTERNALS_DIR
      "${ParaView_SOURCE_DIR}/VTK/Utilities/TclTk/internals")
    SET(VTK_TCL_TK_WRAPPING_DIR "${ParaView_SOURCE_DIR}/VTK/Wrapping/Tcl")
-  SET(TclTk_INSTALL_NO_RUNTIME ${PV_INSTALL_NO_RUNTIME})
-  SET(TclTk_INSTALL_BIN_DIR ${PV_INSTALL_BIN_DIR})
-  SET(TclTk_INSTALL_LIB_DIR ${PV_INSTALL_LIB_DIR})
-  SUBDIRS(Utilities/TclTk)
+  #SET(TclTk_INSTALL_NO_RUNTIME ${PV_INSTALL_NO_RUNTIME})
+  #SET(TclTk_INSTALL_BIN_DIR ${PV_INSTALL_BIN_DIR})
+  #SET(TclTk_INSTALL_LIB_DIR ${PV_INSTALL_LIB_DIR})
+  #SUBDIRS(Utilities/TclTk)
  ENDIF (PARAVIEW_BUILD_GUI)

  # Specify python build so that we can use vtkTkRenderWidget with no

Which allowed me to build with the system tcl/tk libraries.  This also 
fixed my TCL_LIBRARY/init.tcl issue.

Haven't done much testing yet though beyond bringing up the main interface.

-- 
Orion Poplawski
System Administrator                   303-415-9701 x222
Colorado Research Associates/NWRA      FAX: 303-415-9702
3380 Mitchell Lane, Boulder CO 80301   http://www.co-ra.com


More information about the ParaView mailing list