File: INSTALL

package info (click to toggle)
ktikz 0.12%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 5,152 kB
  • sloc: cpp: 10,024; xml: 701; sh: 131; makefile: 20
file content (71 lines) | stat: -rw-r--r-- 2,759 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
The following are required for compilation:
- an ordinary C++ development environment (g++, make, C++ libraries and
  headers, ...)
- cmake (if you want to install the KPart)
- a standard LaTeX environment
- a Qt 4 development environment (libraries, headers, qmake, ...): only
  QtCore, QtGui and QtXml are required, at least in version 4.6
- the poppler-qt4 libraries and headers, at least in version 0.6
- the kdelibs development environment (only if you want KDE integration
  and the KPart), at least in version 4.3
- the LaTeX pgf package (which includes TikZ)
- the LaTeX preview package

In Ubuntu you would obtain those by installing the following packages:
- build-essential
- cmake (if you want to install the KDE version)
- libqt4-dev
- qt4-dev-tools
- libpoppler-qt4-dev
- kdelibs5-dev (only if you want KDE integration and the KPart)
- pgf
- preview-latex-style

Install the Qt-only (qtikz) application (using qmake):
------------------------------------------------------

1. Edit the paths in qmake/qtikzconfig.pri
2. Run the following commands (this will create an executable named qtikz):
  mkdir buildqt
  cd buildqt
  qmake ../qtikz.pro
  make
  sudo make install
  sudo update-mime-database /usr/share/mime

Note that qmake will tell you where the files will be installed. If
you don't like the installation directories, you can change them in
the file qmake/qtikzconfig.pri before running make.  Make sure to make
the changes in qmake/qtikzconfig.pri before running make.

In order to uninstall qtikz run the following commands in the build directory:
  sudo make uninstall
  sudo update-mime-database /usr/share/mime

Install the KDE (ktikz) application and the KPart (using cmake):
----------------------------------------------------------------

Run the following commands (this will create an executable named ktikz
and a KPart which will be loaded when clicking a *.pgf or *.tikz file
in Konqueror):
  mkdir build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
  make
  sudo make install

Because a new mimetype (text/x-pgf) is added to the system, as a user one
may additionally have to run
  kbuildsycoca4
or restart KDE so that konqueror uses the KPart for this mimetype.

In order to uninstall ktikz run the following commands in the build directory
(the path in the last command depends of course on where the mimetype was
installed, see the output of the make uninstall command for the correct path):
  sudo make uninstall
  sudo update-mime-database /usr/share/mime

You may additionally run the following command to remove the installation
directories created during "make install" (WARNING: this will also remove
the directories if they are not empty, use at your own risk):
  sudo make uninstalldirs