Tellico/Compiling: Difference between revisions

From KDE UserBase Wiki
(Created page with 'To compile Tellico from the source code, you must [http://tellico-project.org/download download the source package] or get the code from the KDE extragear/office SVN module. ...')
 
No edit summary
 
(10 intermediate revisions by 5 users not shown)
Line 1: Line 1:
To compile [[Tellico]] from the source code, you must [http://tellico-project.org/download download the source package] or get the code from the KDE extragear/office SVN module.
<languages />


If you download the source package, extract all of the files, which should create a directory named ''tellico-2.0/''.
<translate>
<!--T:1-->
The instructions for compiling [[Special:myLanguage/Tellico|Tellico]] have [http://techbase.kde.org/Projects/Tellico/Compiling moved to TechBase].


<code>
<!--T:2-->
% tar xjvf tellico-2.0.tar.bz2
[[Category:Admin]]
% cd tellico-2.0
</code>


After that, there are three steps to build and install Tellico.
</translate>
 
1. '''Configure '''
 
The compilation environment must be configured to your system first. The tool used to create the configuration is ''[http://www.cmake.org CMake]''. CMake will check that you have all the required development libraries and set up the files for compiling.
 
In the ''tellico-2.0/'' directory, create a directory for building, named ''build/'', just to keep things clear.
 
<code>
% mkdir build
% cd build
% cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
</code>
 
{{Note|Note the backquotes in the cmake command, they are important.}}
 
The tells CMake to use the top-level ''tellico-2.0/'' directory as the source directory, and to build the application to install in the same place as the rest of the KDE workspace. Later, when you install Tellico, you will likely need to root access, either through the root password or ''sudo''.
 
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.
 
2. '''Compile'''
 
''Make'' is used to actually compile Tellico.
 
<code>
% make
</code>
 
There will likely be some warnings during compilation, but if you see something like
 
[100%] Built target tellico
 
then the compilation completed successfully.
 
3. '''Install'''
 
To install Tellico alongside other KDE applications, you will likely need to use the ''sudo'' command.
 
<code>
% sudo make install
</code>
 
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.
 
<code>
% tellico
</code>
 
 
4. '''Enjoy'''
 
You can send questions to the [http://tellico-project.org/mailing-list tellico-users mailing list].

Latest revision as of 05:27, 22 July 2011

The instructions for compiling Tellico have moved to TechBase.