source: trunk/FACT++/MAINPAGE@ 10689

Last change on this file since 10689 was 10686, checked in by tbretz, 14 years ago
Added TOC.
File size: 10.2 KB
Line 
1// **************************************************************************
2/** @mainpage
3
4@brief FACT++ - The FACT slow control software
5
6@author thomas.bretz@epfl.ch et al.
7<!--@version 1.0-->
8
9<hr width="100%">
10
11@section toc Table of contents
12<table border='1' bgcolor=#FAFAFA width='100%'>
13<tr>
14<td>
15<ul>
16<li> @ref install_sec
17 <ul>
18 <li> @ref rootwarning
19 <li> @ref packages
20 <li> @ref installroot
21 </ul>
22<li> @ref demos
23<li> @ref dimremarks
24<li> @ref addtab
25<li> @ref References
26 <ul>
27 <li> @ref generalref
28 <li> @ref boostref
29 <li> @ref fitsref
30 <li> @ref qtroot
31 </ul>
32<li> @ref availableprograms
33<li> @ref Examples
34</ul>
35</tr>
36</td>
37</table>
38
39@section install_sec Installation
40
41FACT++ can be downloaded from the svn by
42
43\verbatim
44 svn checkout https://fact.isdc.unige.ch/svn/trunk/FACT++ [localdir]
45\endverbatim
46
47it includes a dim version which is automatically compiled.
48
49For compilation use
50
51\verbatim
52 ./configure
53 make
54\endverbatim
55
56Check the \b ./configure options with \b --help. It might look
57confusing, but some features like FITS or QT4 can be switched off,
58if the necessary library is not at hand and the feature is not needed.
59For example, if the GUI is not needed its compilation can be switched
60off by disabling QT4 support with \b --without-qt4.
61
62If you use a custom built root version on your system without QT
63support, but have a distribution packe (e.g. debian package) with
64QT support available, you can give the path to root executables,
65for example, with <B>--with-rootsys=/usr/bin</B>. All other paths
66are extracted from subsequent calls to \b root-config.
67
68Running \b ./configure will take some time. It tries to really check
69carefully that everything needed is available on your system, so that you
70get errors before you start compilation.
71
72If \b ./configure fails and you send a bug report please attach
73the file config.log.
74
75If \b make fails and you send a bug report please attach
76the complete output of <B>make V=1</B>.
77
78\b Reminder: These programs use shared libraries, i.e. whenever you re-compile
79part of the project some of them might be re-compiled as well. As a result
80already running programs might crash unexpectedly! This is \b not a bug.
81
82In principle configure also supports
83
84\verbatim
85 make install
86\endverbatim
87
88which would install the package and the libraries in your system,
89although at the moment this is not recommended
90
91@subsection rootwarning ROOT warnings during compilation
92
93During compilation of the GUI you get some warning from root's TQtWidget.h.
94These warnings are completely harmless and can be ignored. However, it is sometimes
95advicable to get rid of them to get a clean compiler run which makes development
96easier.
97
98Therefore replace
99\verbatim
100inline void resize(const QSize &size) { QPixmap newSize(size); *(QPixmap *)this = newSize; }
101\endverbatim
102by
103\verbatim
104inline void resize(const QSize &sz) { QPixmap newSize(sz); *(QPixmap *)this = newSize; }
105\endverbatim
106in TQtWidget.h
107
108
109@subsection packages Required packages
110
111The following section gives a list of packages which were necessary after
112a fresh Ubuntu 11.04 installation. In addition to all the development
113packages the corresponding package with the library is needed.
114
115<i>Required</i>
116- subversion
117- gcc
118- g++
119- make
120- libreadline6-dev
121- libcfitsio3-dev
122- libccfits-dev
123- libmysqlclient-dev
124- libmysql++-dev
125- libboost-all-dev
126- libx11-dev
127
128<i>If you want 'did'</i>
129- lesstif2-dev
130
131<i>To compile the gui</i>
132- libqt4-dev
133- root (see section about root, currently recommended versions 5.18/00b-5.26/00e)
134
135<i>To create your own documentation</i>
136- graphviz
137- doxygen
138- help2man
139
140<i>For developers</i>
141- autoconf
142- autoconf-archive
143- libtool
144- qt4-designer
145
146<i>Some nice to have (FACT++)</i>
147- colorsvn
148- colorgcc
149- colordiff
150
151<i>Some nice to have (system)</i>
152- fte
153- efte
154- htop
155
156@subsection installroot How to install root 5.26/00 on Ubuntu 11.04 (natty)
157
158- install gpp4.4, gcc4.4, g++4.4 (root does not compile with gcc4.5)
159- make links to hidden X11 libraries:
160<B><pre>
161cd /usr/local
162sudo ln -s x86_64-linux-gnu/libX* .
163</pre></B>
164- in the root source directory
165<B><pre>
166./configure --enable-qt --with-cc=gcc-4.4 --with-cxx=g++-4.4 --with-xrootd-opts=--syslibs=/usr/lib/x86_64-linux-gnu --prefix=/usr/local
167</pre></B>
168- \b make
169- <b>sudo make install</b>
170- pray
171- don't forget to set LD_LIBRARY_PATH correctly before you try to start the fact gui
172
173
174@section demos Current demonstration programs
175
176- \b dserver2: A virtual board (A TCP/IP server). It is sending a
177 "hello" message after accepting a communication and then in 3s
178 intervals the current UTC time. The board can be set to state 1 or back
179 to state 0 (just as a demonstration)
180- \b dclient5: A control program. It accesses two viratual boards (start them
181 with 'dserver2 5000' and 'dserver2 4001') If both boards are connected the START
182 command can be issued to get them to state 'Running'. In this state
183 an asynchronous time stamp can be requested sending the TIME command.
184 to get back from Running to Connected use STOP.
185- \b test3: a dim console which allows to control all dim servers
186 by sending commands via the dim network.
187- Both, \b dclient5 and \b test3 accept the command line options -c0, -c1, -c2
188 to switch between different console types (or no console in the case of
189 \b dclient5). In the console you get help with 'h' and the available
190 command with 'c' You get the avilable command-line options with --help
191
192First start the two dserver2s. Then start a dclient5 (if you want it
193with console use one of the -c options) and a test3 console (with one
194of the console options if you like) you can now control the hardware
195boards with the START, STOP and TIME commands or stop (Ctrl-C) and
196start one of the programs to see what's happening. In the test3 case
197you first have to \e cd to the server to which you want to talk by \b
198DATA_LOGGER. Don't forget to start \b dns if you want to control dclient5
199from test3 via Dim.
200
201@section dimremarks Remarks about Dim usage
202
203To be able to write all received data directly to the FITS files,
204padding has been disabled calling dic_diable_padding() and
205dis_disable_padding(). This is done in our own error handler
206DimErrorRedirecter. Since this should be one of the first
207objects created in any environment it is quite save. However, every
208Dim client or server in our network which does not use the
209DimErrorRedirecter \b must call these two functions as early as
210possible.
211
212@section exitcodes Exit Code
213@section newcommand How to add a new command?
214@section description How to add help textes to services and commands?
215
216@section addtab How to add a new tab in the gui?
217
218Do the following steps in exactly this order:
219- Insert the new page from the context menu of the QTabWidget
220- Copy the QDockWidget from one of the other tabs to the clipboard
221- Paste the copied QDockWidget and add it to the new tab (only the tab should be highlited)
222- Now click on the context menu of the region in the tab (QWidget) and change the layout to grid layout
223
224
225@section Documentation
226
227Each program has an extensive help text (except the examples). This help text can
228be displayed with the \b --help option. For each program a man-page is automatically
229created (from the help-output), which (at the moment) can be accessed with <B>man
230FILE</B>.
231
232@section References
233
234@subsection generalref General references
235- <A HREF="http://www.cplusplus.com/reference">The C++ reference</A>
236- <A HREF="http://www.boost.org">boost.org: The boost C++ libraries</A>
237- <A HREF="http://www.highscore.de/cpp/boost/titelseite.html">Boris Sch&auml;ling: Die Boost C++ Bibliotheken</A>
238- <A HREF="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html">GNU Readline</A>
239- <A HREF="http://www.gnu.org/software/ncurses">GNU Ncurses</A>
240- <A HREF="http://dim.web.cern.ch/">Distributed Information Management (DIM)</A>
241- <A HREF="http://dim.web.cern.ch/dim/cpp_doc/DimCpp.html">Distributed Information Management (DIM) - C++ reference</A>
242- <A HREF="http://qt.nokia.com/">Qt homepage</A>
243- <A HREF="http://qt.nokia.com/downloads/">Qt downloads</A>
244
245@subsection boostref Boost references
246- <A HREF="http://www.boost.org/doc/libs/1_45_0/libs/bind/bind.html">boost::bind (V1.45.0)</A>
247- <A HREF="http://www.boost.org/doc/libs/1_45_0/doc/html/boost_asio.html">boost asio (V1.45.0)</A>
248- <A HREF="http://www.boost.org/doc/libs/1_45_0/doc/html/date_time.html">boost date_time (V1.45.0)</A>
249- <A HREF="http://www.boost.org/doc/libs/1_45_0/doc/html/program_options.html">boost program_options (V1.45.0)</A>
250- <A HREF="http://www.boost.org/doc/libs/1_45_0/libs/filesystem/v3/doc/index.htm">boost filesystem (V1.45.0)</A>
251- <A HREF="http://www.boost.org/doc/libs/1_45_0/libs/regex/doc/html/index.html">boost regex (V1.45.0)</A>
252- <A HREF="http://www.boost.org/doc/libs/1_45_0/libs/system/doc/index.html">boost system (error codes) (V1.45.0)</A>
253- <A HREF="http://www.boost.org/doc/libs/1_45_0/doc/html/thread.html">boost thread (V1.45.0)</A>
254- <A HREF="http://www.boost.org/doc/libs/1_45_0/libs/conversion/lexical_cast.htm">boost lexical_cast (V1.45.0)</A>
255
256@subsection fitsref FITS references
257- <A HREF="http://heasarc.gsfc.nasa.gov/docs/heasarc/fits.html">The FITS data format</A>
258- <A HREF="http://heasarc.gsfc.nasa.gov/fitsio/">FITS homepage</A>
259- <A HREF="http://heasarc.gsfc.nasa.gov/fitsio/CCfits/">CCfits - A C++ wrapper to cfitsio</A>
260- <A HREF="http://heasarc.gsfc.nasa.gov/docs/software/ftools/fv/">fv - A very simple viewer to FITS file contents</A>
261
262@subsection qtroot How to integrate root in QT?
263
264- <A HREF="http://doc.trolltech.com/4.3/designer-creating-custom-widgets.html">QT4: Creating custom widgets</A>
265- <A HREF="http://root.cern.ch/download/doc/26ROOTandQt.pdf">root: QT integration (pdf)</A>
266
267
268@section availableprograms Available programs
269
270- dns: Dim's domain-name-server (needed for any communication between Dim servers and clients)
271- did: A simple graphical interface to analyse everything in a Dim network
272
273@section Examples
274
275There are a few example programs
276- \b ./argv: Example for usage of the class Configure (command line options, configuration file)
277- \b ./time: Example for the usage of the class Time (time input/output, conversion)
278- \b ./log, \b ./logtime: A simple Dim-Service/-Client combination using MessageDimRX/MessageDimTX
279
280**/
281// **************************************************************************
Note: See TracBrowser for help on using the repository browser.