[Paraview] Tcl installation path in 2.4.0
Brad King
brad.king at kitware.com
Thu Nov 10 12:40:31 EST 2005
Amy Squillacote wrote:
> At 10:40 PM 11/9/2005, Neil Carlson wrote:
>> I want to install each version of paraview into its own tree and
>> not scattered about like the default setup.
FYI, the default setup follows the conventions of debian packages.
Multiple paraview versions can share the same installation prefix if one
just renames the executables in the bin directory to have version numbers.
>> Building an rpm, I
>> also need to install it into a temporary root (rpm_build_root)
>> and not /. To this end I tweaked the CMakeLists.txt file to set
>> the PV_INSTALL_{LIB,INCLUDE,DATA}_DIR variables to simply
>> ${PV_INSTALL_ROOT}/{lib,include,share}. I also set
>> TclTk_INSTALL_LIB_DIR to ${PV_INSTALL_LIB_DIR}. (I note that the
>> 2.4.0 CMakeLists.txt file included this latter change too.) When
>> I ran cmake, I set PV_INSTALL_ROOT to /opt/paraview/2.4.0, and
>> CMAKE_INSTALL_PREFIX to /var/tmp/paraview.
You don't need to change the CMakeLists.txt file to configure the
install locations. The default settings will not be used if you set the
variables in the CMake cache. This should do what you want:
cmake -DPV_INSTALL_BIN_DIR:PATH=/bin \
-DPV_INSTALL_LIB_DIR:PATH=/lib \
-DPV_INSTALL_DATA_DIR:PATH=/share \
-DCMAKE_INSTALL_PREFIX:PATH=/opt/paraview/2.4.0 \
../paraview-2.4.0 &&
make &&
make install DESTDIR=/var/tmp/paraview
>> ParaView error: InitializeTcl failed
>> Tcl_Init error: Can't find a usable init.tcl in the following
>> directories:
>> /usr/local/lib/tcl8.4 /opt/src/rpm/lib/tcl8.4 /opt/src/lib/tcl8.4 ...
>>
>> I don't know where it's picking up those directories, but none of
>> them are correct (obviously); it's in /opt/paraview/2.4.0/lib/tcl8.4
The tcl library itself tries to compute a bunch of paths in which to
look for init.tcl. I don't know why it selects these paths.
-Brad
More information about the ParaView
mailing list