summaryrefslogtreecommitdiffstats
path: root/docs/quickstart.rst
diff options
context:
space:
mode:
authorMariaMatveeva <matveeva.maria@gmail.com>2016-08-26 14:29:03 +0200
committerMariaMatveeva <matveeva.maria@gmail.com>2016-08-26 14:29:03 +0200
commit48b868c5208816b007ec1d9c7940e75b4c64e5ce (patch)
treeca1f4a3bc0838b94b9fe9774d23ca1848948c303 /docs/quickstart.rst
parentd0aabc426cb01d488e9d41a66623773da73ff5e3 (diff)
downloaduca-48b868c5208816b007ec1d9c7940e75b4c64e5ce.tar.gz
uca-48b868c5208816b007ec1d9c7940e75b4c64e5ce.tar.bz2
uca-48b868c5208816b007ec1d9c7940e75b4c64e5ce.tar.xz
uca-48b868c5208816b007ec1d9c7940e75b4c64e5ce.zip
Update documentation
Diffstat (limited to 'docs/quickstart.rst')
-rw-r--r--docs/quickstart.rst21
1 files changed, 14 insertions, 7 deletions
diff --git a/docs/quickstart.rst b/docs/quickstart.rst
index 05f8df1..b154800 100644
--- a/docs/quickstart.rst
+++ b/docs/quickstart.rst
@@ -47,13 +47,18 @@ To generate bindings for third-party languages, you have to install ::
Fetching the sources
^^^^^^^^^^^^^^^^^^^^
-Untar the distribution ::
+Clone the repository ::
- untar xfz libuca-x.y.z.tar.gz
+ git clone https://github.com/ufo-kit/libuca
-or clone the repository ::
+or download the latest release at https://github.com/ufo-kit/libuca/releases and
+unzip the ``.zip`` file::
- git clone https://github.com/ufo-kit/libuca
+ unzip libuca-x.y.z.zip
+
+or untar the ``.tar.gz`` file::
+
+ tar -zxvf libuca-x.y.z.tar.gz
and create a new, empty build directory inside::
@@ -176,12 +181,14 @@ Then you need to setup the type system::
UcaCamera *camera;
GError *error = NULL; /* this _must_ be set to NULL */
- g_type_init ();
+ #if !(GLIB_CHECK_VERSION (2, 36, 0))
+ g_type_init();
+ #endif
Now you can instantiate new camera *objects*. Each camera is identified
by a human-readable string, in this case we want to access any pco
camera that is supported by
-`libpco <http://ufo.kit.edu/repos/libpco.git/>`__. To instantiate a
+`libpco <http://ufo.kit.edu/extra/libpco/html/>`__. To instantiate a
camera we have to create a plugin manager first::
manager = uca_plugin_manager_new ();
@@ -251,7 +258,7 @@ where the result is stored::
);
g_print ("Width of the region of interest: %d\n", roi_width);
- g_print ("Exposure time: %3.5s\n", exposure_time);
+ g_print ("Exposure time: %3.5fs\n", exposure_time);
In a similar way, properties are set with ``g_object_set``::