1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Live Preview

From kile

Revision as of 20:11, 10 September 2011 by Mludwig2 (Talk | contribs)
Jump to: navigation, search

Compiling and Installing Okular & Kile

First of all, we create new directories. Then, we download the source code by cloning Kile's
and Okular's Git repositories, and by checking out the appropriate branches:
$ cd
$ mkdir -p kile-livepreview/src
$ cd kile-livepreview/src
$ git clone git://anongit.kde.org/okular -b viewerinterface
$ git clone git://anongit.kde.org/kile -b livepreview

We then create build directories, configure the build system, and compile & install Okular first:
$ cd ..
$ mkdir build-okular
$ cd build-okular
$ cmake ../src/okular -DCMAKE_INSTALL_PREFIX=$HOME/kile-livepreview/install -DCMAKE_BUILD_TYPE="Debug"
$ make install -j 2

and then Kile:
$ cd ..
$ mkdir build-kile
$ cd build-kile
$ cmake ../src/kile -DCMAKE_INCLUDE_PATH=$HOME/kile-livepreview/install/include/ -DCMAKE_INSTALL_PREFIX=$HOME/kile-livepreview/install -DCMAKE_BUILD_TYPE="Debug"
$ make install -j 2

Then, the following lines have to be copied to a file "$HOME/kile-livepreview/run.sh":
---begin---
#!/bin/sh
export KDEDIRS=$HOME/kile-livepreview/install/:$KDEDIRS
export KDEHOME=$HOME/kile-livepreview/.kde
export LD_LIBRARY_PATH=$HOME/kile-livepreview/install/lib64:$HOME/kile-livepreview/install/lib:$LD_LIBRARY_PATH

kbuildsycoca4
$HOME/kile-livepreview/install/bin/kile
---end---

and we have to set the correct permissions for the script "run.sh":
$ chmod +x $HOME/kile-livepreview/run.sh

Finally, Kile can be started with:
$ $HOME/kile-livepreview/run.sh
Personal tools