source: trunk/FACT++/MAINPAGE@ 10782

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