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
|
<?xml version="1.0"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
[
<!ENTITY apiversion "@API_VERSION@">
]>
<chapter id="using_library" xmlns:xi="http://www.w3.org/2003/XInclude">
<title>Using the library</title>
<para>
Programs using libparlatype written in C can be compiled with GCC using:
<literallayout>
<literal>gcc `pkg-config --cflags parlatype` -o example example.c `pkg-config --libs parlatype`</literal>
</literallayout>
</para>
<para>
There are bindings for other languages, e.g. in Python Parlatype can be
imported like this:
<literallayout>
<literal>gi.require_version('Parlatype', '&apiversion;')</literal>
<literal>from gi.repository import Parlatype</literal>
</literallayout>
</para>
<para>There is a glade catalog for PtWaveviewer so you can include it in your
glade projects.</para>
</chapter>
|