• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

Analitza

Getting Started

Overview | Getting Started | Tutorials | Examples and Showcases

Install Analitza

In Linux, if your distribution have already the package then installing is easy, for example in Debian type as root user:

aptitude install libanalitza-dev

In Windows the task is very simple thanks to KDE Installer you just need to follow the wizard and check to install the Analitza package. For more information about KDE on windows read this.

Just remeber that Analitza version depends of KDE version, and your distribution (in case of Linux) or KDE Installer (in case of windows) can have and old version of KDE.

Build and Install Analitza

In case the repositories doesn't have the library package or you want the last version of Analitza, then you can build and then install the library from sources.

First, check this prerequisites:

  • Make sure you have Git installed.
  • Make sure you have CMake installed.
  • Analitza needs a successful installation of KDELibs, however since doesn't use the most heavy/exotics components from KDELibs, then you can build Analitza using an older version of KDELibs, you just need to install the kdelibs-dev package from your repository (from distibution in case of Linux , and from KDE Installer in case of windows) If you still want to build KDELibs then read here the details.
  • If you want to use 3D features of Analitza (like drawing implicit surfaces for instance), then you need to make sure that OpenGL development libraries are correctly installed in your system.
  • If you want to build a command line calculator called calgebra, then you need the readline development libraries.

Next, let's follow these steps in your terminal:

  • git clone git://anongit.kde.org/analitza
  • For Linux type:
    cd analitza && mkdir build && cd build
    For Windows create a folder called build inside analitza and then you need to go there (inside build folder).
  • cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` -DCMAKE_BUILD_TYPE=debugfull
  • make install

For more information about building KDE Software you can read here and here.

Setup a CMake Project

Once the Analitza is installed, then you have headers and sublibraries binaries for each Modules. The installation process ensures that cmake will find the library by using find_package macro, this because an AnalitzaConfig.cmake was installed. Here you have more information about CMake macros.

Now, let see this basic template for a CMake project:

project(mycalculator)
find_package(KDE4 REQUIRED)
find_package(Qt4 REQUIRED)
find_package(OpenGL REQUIRED)
find_package(Analitza REQUIRED)
include_directories(
${KDE4_INCLUDES}
${CMAKE_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${ANALITZA_INCLUDE_DIR}
${OPENGL_INCLUDE_DIR}
)
set(mycalculator_SRCS main.cpp)
kde4_add_executable(mycalculator ${mycalculator_SRCS})
target_link_libraries(mycalculator
${KDE4_KDECORE_LIBS}
${QT_QTGUI_LIBRARY}
${ANALITZA_LIBRARY}
${ANALITZAPLOT_LIBRARY}
${ANALITZAGUI_LIBRARY}
${OPENGL_gl_LIBRARY}
${OPENGL_glu_LIBRARY}
${QT_QTOPENGL_LIBRARY}
)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Analitza

Skip menu "Analitza"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal