File: COMPILING

package info (click to toggle)
tellico 3.3.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 23,468 kB
  • sloc: cpp: 73,731; xml: 8,383; ansic: 7,003; javascript: 3,059; python: 603; perl: 63; ada: 32; sh: 28; makefile: 22
file content (109 lines) | stat: -rw-r--r-- 2,916 bytes parent folder | download
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Basic instructions for compiling Tellico
========================================

Also found at http://techbase.kde.org/Projects/Tellico/Compiling

These instructions use Tellico 3.0 as an example. For
other versions, replace 3.0 in the commands below.

-------------------------------------------------------

Source Package
=============

If you download the source package, extract all of the
files, which should create a directory named tellico-3.0/.

% tar xJvf tellico-3.0.tar.xz
% cd tellico-3.0

After that, there are three steps to build and install Tellico.

Configure
=========

The compilation environment must be configured to your
system first. The tool used to create the configuration
is CMake. CMake will check that you have all the
required development libraries and set up the file
for compiling.

In the tellico-3.0/ directory, create a directory for
building, named build/, just to keep things clear.

% mkdir build
% cd build
% cmake .. -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix`

Note the backquotes in the cmake command, they are important.

The .. tells CMake to use the top-level tellico-3.0/
directory as the source directory, and to set the
application to install in the same place as other
KDE applications. Later, when you install Tellico,
you will likely need root access, either through
the root password or sudo. To install to a different
location, use change the -DCMAKE_INSTALL_PREFIX
option.

If you do not have the necessary libraries for
building tellico, CMake will fail and show you
an error, listing which libraries you lack. Some
libraries are required for building. Some are
optional for additional functionality. The library
packages may have different names, depending on your
distribution.

Options
-------
In order to include support for using a webcam to
scan barcodes, you must have the libv4l library installed
and include -DENABLE_WEBCAM=true when you run cmake.

To include support for debugging Tellico, you should
pass the -DCMAKE_BUILD_TYPE=debug option to cmake.
-DCMAKE_BUILD_TYPE=release is for stripped, non-debugging
compilation.

Tellico has many unit tests for checking some parts of
the code for problems. The tests can be compiled by
using -DBUILD_TESTING=TRUE and then running

% make test

Compile
=======

Make is used to actually compile Tellico.

% make

There will likely be some warnings during compilation,
but if you see something like

[100%] Built target tellico

then the compilation completed successfully.

Install
=======

To install Tellico alongside other KDE applications,
you will likely need to use the sudo command.

% sudo make install

Enter your password, and Tellico should be installed
and should show up in the KDE menu, likely in the
Office menu. Or, run it from the command-line.

% tellico

Enjoy
=====

You can send questions to the tellico-users mailing list.

If you need to uninstall Tellico

% sudo make uninstall