File: README

package info (click to toggle)
labplot 2.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 51,864 kB
  • sloc: cpp: 122,588; ansic: 4,287; python: 808; yacc: 536; xml: 227; sh: 179; awk: 35; makefile: 7
file content (67 lines) | stat: -rw-r--r-- 2,430 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
liborigin, standalone version
---------------------

This code is a standalone library for reading OriginLab project files.

It is based on the code at
	http://sourceforge.net/projects/liborigin
	http://soft.proindependent.com/liborigin2

Additionally, some fixes were applied to silence UBSan warnings caused by
uninitialised POD struct members.

AUTHORS:  Knut Franke, Miquel Garriga, Stefan Gerlach, Alex Kargovsky, Russell Standish, Ion Vasilief

DEPENDENCIES: tree.hh (included) http://tree.phi-sci.com/

---------------------------------------------------------------------------
COMPILING: liborigin uses CMake for the building process.
		CMake is available at http://www.cmake.org/

After installing CMake on your system, issue the following commands:
	$ mkdir build
	$ cd build
	$ cmake ..
	$ make
	$ make install

This will compile and install:
	a shared and a static version of liborigin library
	opj2dat, a program to extract data tables of an origin project into ASCII .dat files
	liborigin.pc a pkg-config metadata file to get compiler and linker flags
	c++ devel headers

Individual components (origin-static, origin, opj2dat, or doc) can be generated and installed by requesting
a specific target on the make command line.
For example:
	$ make origin-static
builds the static liborigin.a library only. Then:
	$ make install
installs the c++ devel headers, liborigin.pc, and liborigin.a

Doc generation requires doxygen (http://doxygen.org)

To include liborigin in a project using cmake add
	find_package(PkgConfig)
	pkg_check_modules(liborigin liborigin=>3.0.0)
	target_link_libraries( my_target ${liborigin_LIBRARIES} )
	target_include_directories( my_target PUBLIC ${liborigin_INCLUDE_DIRS} )
to the project CMakeLists.txt file.

To include liborigin in a project using qmake add
	CONFIG += link_pkgconfig
	PKGCONFIG += liborigin
to the project.pro file.

Logging of origin file parsing process is deactivated by default.
To enable it define a GENERATE_CODE_FOR_LOG variable at the cmake command:
    $ cmake -DGENERATE_CODE_FOR_LOG=1 ..

---------------------------------------------------------------------------
FEATURES:
	* supports the import of any project from version 3.5 to latest (2017)
	* includes a pkg-config metadata file

---------------------------------------------------------------------------
EXAMPLES:
	* opj2dat (included) extracts the data tables of an origin project file into dat files