Skip to content

Core functionalities to be used by GUI libraries for real time plotting

License

Notifications You must be signed in to change notification settings

BenjaminNavarro/rtplot-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rtplot-core

Core functionalities to be used by GUI libraries for real time plotting

Table of Contents

Package Overview

The rtplot-core package contains the following:

  • Libraries:

    • rtplot-core (shared)

Installation and Usage

The rtplot-core project is packaged using PID, a build and deployment system based on CMake.

If you wish to adopt PID for your develoment please first follow the installation procedure here.

If you already are a PID user or wish to integrate rtplot-core in your current build system, please read the appropriate section below.

Using an existing PID workspace

This method is for developers who want to install and access rtplot-core from their PID workspace.

You can use the deploy command to manually install rtplot-core in the workspace:

cd <path to pid workspace>
pid deploy package=rtplot-core # latest version
# OR
pid deploy package=rtplot-core version=x.y.z # specific version

Alternatively you can simply declare a dependency to rtplot-core in your package's CMakeLists.txt and let PID handle everything:

PID_Dependency(rtplot-core) # any version
# OR
PID_Dependency(rtplot-core VERSION x.y.z) # any version compatible with x.y.z

If you need more control over your dependency declaration, please look at PID_Dependency documentation.

Once the package dependency has been added, you can use rtplot-core/rtplot-core as a component dependency.

You can read PID_Component and PID_Component_Dependency documentations for more details.

Standalone installation

This method allows to build the package without having to create a PID workspace manually. This method is UNIX only.

All you need to do is to first clone the package locally and then run the installation script:

git clone https://github.com/BenjaminNavarro/rtplot-core.git
cd rtplot-core
./share/install/standalone_install.sh

The package as well as its dependencies will be deployed under binaries/pid-workspace.

You can pass --help to the script to list the available options.

Using rtplot-core in a CMake project

There are two ways to integrate rtplot-core in CMake project: the external API or a system install.

The first one doesn't require the installation of files outside of the package itself and so is well suited when used as a Git submodule for example. Please read this page for more information.

The second option is more traditional as it installs the package and its dependencies in a given system folder which can then be retrived using find_package(rtplot-core). You can pass the --install <path> option to the installation script to perform the installation and then follow these steps to configure your environment, find PID packages and link with their components.

Using rtplot-core with pkg-config

You can pass --pkg-config on to the installation script to generate the necessary pkg-config files. Upon completion, the script will tell you how to set the PKG_CONFIG_PATH environment variable for rtplot-core to be discoverable.

Then, to get the necessary compilation flags run:

pkg-config --static --cflags rtplot-core_rtplot-core
pkg-config --variable=c_standard rtplot-core_rtplot-core
pkg-config --variable=cxx_standard rtplot-core_rtplot-core

To get linker flags run:

pkg-config --static --libs rtplot-core_rtplot-core

Offline API Documentation

With Doxygen installed, the API documentation can be built locally by turning the BUILD_API_DOC CMake option ON and running the doc target, e.g

pid cd rtplot-core
pid -DBUILD_API_DOC=ON doc

The resulting documentation can be accessed by opening <path to rtplot-core>/build/release/share/doc/html/index.html in a web browser.

License

The license that applies to the whole package content is CeCILL. Please look at the license.txt file at the root of this repository for more details.

Authors

rtplot-core has been developed by the following authors:

  • Benjamin Navarro (LIRMM)

Please contact Benjamin Navarro (navarro@lirmm.fr) - LIRMM for more information or questions.

About

Core functionalities to be used by GUI libraries for real time plotting

Resources

License

Stars

Watchers

Forks

Packages

No packages published