Building kst from source using automake

cd graphics
make -f Makefile.cvs
./configure --prefix=/usr
cd kst
make
su -c "make install"

You may need to change the prefix value to point where your kde is installed. Kst currently requires KDE3.4 or newer (but not Qt/KDE4).

Non-standard installation location

If for some reason you wish to install Kst to a non-standard location (which can be useful if you do not have root privileges, or wish to have multiple versions of Kst installed at the same time) then keep in mind the following:

  • In order for Kst to be able to fully load its modular components you will need to add the install path to the KDEDIRS variable.
    For example, if you used:
    ./configure --prefix=/home/user/kst 
    during the building of Kst then you could add the following to your .bashrc file:
    export KDEDIRS=/home/user/kst:$KDEDIRS 
  • If you wish to make use of the javaScript command line from within Kst, then you need to add the install path, suffixed with /bin, to the PATH variable.
    For example, if you used:
    ./configure --prefix=/home/user/kst 
    during the building of Kst then you could add the following to your .bashrc file:
    export PATH=$PATH:/home/user/kst/bin 

Other notes

Using a version of automake more recent than 1.10 may result in the following error, when you issue the command make -f Makefile.cvs

*** YOU'RE USING automake (GNU automake) 1.11.1.
*** KDE requires automake 1.6.1 or newer

If you see this error then simply edit the graphics/admin/cvs.sh file. Look for a line (should be #71) that reads:

... automake*1.6.* | automake*1.7.* | automake*1.8.* | automake*1.9.* | automake*1.10.* )

and change it to read:

... automake*1.6.* | automake*1.7.* | automake*1.8.* | automake*1.9.* | automake*1.10.* | automake*1.11.* )


Building kst from source using cmake

cd graphics/kst
cmake .
make
make install

You may need to type in the following command before "cmake ." if qt3 is not found by cmake.
export QTDIR=QT3_PATH  where QT3_PATH is the location of qt3 on your machine

Building the kst manual is as simple as:

cd graphics/doc/kst
cmake .
make
make install

In order for KST to start properly, you may need to do the following after the installation process is completed:

  • Add the following line to the .bashrc file located in your home folder.
    export KDEDIRS=$KDEDIRS:/usr/local
  • Running as root create a new file named /etc/ld.so.conf.d/kst.conf, with the following contents:
    /usr/local/lib
  • In a terminal run the following command as root:
    ldconfig

Non-standard installation location

If for some reason you wish to install Kst to a non-standard location (which can be useful if you do not have root privileges, or wish to have multiple versions of Kst installed at the same time) then keep in mind the following:

  • In order for Kst to be able to fully load its modular components you will need to add the install path to the KDEDIRS variable.
    For example, if you used:
    cmake ../kst -DCMAKE_INSTALL_PREFIX=/home/user/kst 
    during the building of Kst then you could add the following to your .bashrc file:
    export KDEDIRS=/home/user/kst:$KDEDIRS 
  • If you wish to make use of the javaScript command line from within Kst, then you need to add the install path, suffixed with /bin, to the PATH variable.
    For example, if you used:
    cmake ../kst -DCMAKE_INSTALL_PREFIX=/home/user/kst 
    during the building of Kst then you could add the following to your .bashrc file:
    export PATH=$PATH:/home/user/kst/bin 

Valid HTML 4.01! Valid CSS!