Skip to content

Commit ed76cb2

Browse files
FreddieAkeroydFreddie Akeroyd
authored andcommitted
Update docs. Refs #343
git-svn-id: https://svn.nexusformat.org/code/trunk@1869 ff5d1e40-2be0-497f-93bd-dc18237bd3c7
1 parent b021cce commit ed76cb2

7 files changed

Lines changed: 44 additions & 256 deletions

File tree

AUTHORS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Nick Maliszewskyj <nickm@nist.gov> (CVS/ChangeLog username: ncm)
55
Chris Moreton-Smith <C.M.Moreton-Smith@rl.ac.uk> (CVS/ChangeLog username: cmm)
66
Ray Osborn <ROsborn@anl.gov> (CVS/ChangeLog username: rio)
77
Jon Tischler <tischlerjz@ornl.gov> (CVS/ChangeLog username: jzt)
8-
Freddie Akeroyd <F.A.Akeroyd@rl.ac.uk> (CVS/ChangeLog username: faa59)
8+
Freddie Akeroyd <freddie.akeroyd@stfc.ac.uk> (CVS/ChangeLog username: faa59)
99
Jens Krueger <jens.krueger@frm2.tum.de> (CVS/ChangeLog username: jk)
1010
Joern Beckmann <joern.beckmann@frm2.tum.de> (CVS/ChangeLog username: jb)
1111
Peter Peterson <petersonpf@ornl.gov> (CVS/ChangeLog username: pfp)
1212
Hartmut Gilde <Hartmut.Gilde@frm2.tum.de> (CVS/ChangeLog username: hg)
1313

14-
$Id$
14+
$Id$

Makefile.am

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ CONTRIB=contrib
3434
endif
3535
SUBDIRS=third_party include src bindings applications test scripts examples doc macosx_install_kit $(CONTRIB)
3636

37-
EXTRA_DIST=build_rules.am nexus_spec.in nexus.spec autoversion.sh \
38-
build_rpm.in README.cygwin README.WIN32 README.macosx \
39-
README.MinGW make_mingw_links SConstruct nexus_scons_utils.py \
37+
EXTRA_DIST=build_rules.am nexus_spec.in nexus.spec autogen.sh autoversion.sh \
38+
build_rpm.in README.cygwin README.macosx \
39+
README.MinGW make_mingw_links \
4040
configure_mingw_kit Windows_extra InstallerBits \
4141
README.VS2008.pdf
4242

README

Lines changed: 28 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -3,169 +3,43 @@ NeXus - a common format for neutron and X-ray scattering data
33
http://www.nexusformat.org/
44
-------------------------------------------------------------------------
55

6+
See COPYING file for licence information
7+
68
Installation Instructions
79
=========================
810

9-
Unix (including Mac OS X)
10-
-------------------------
11+
Unix (including Mac OS X) source distribution
12+
---------------------------------------------
13+
14+
If you have downloaded a source distribution (e.g. nexus-4.3.0.tar.gz) then you will already have a file called "configure" and the basic sequence to follow is:
15+
16+
./configure # use sh ./configure if this does not work
17+
make
18+
make check
19+
make install
20+
21+
this may not, however, build all the nexus utilities and binding you require, and may also locate the wrong HDF libraries and final installation directory. Thus you will probably need to pass some options to "configure" to control this.
22+
23+
General information about "configure" is located in the file called INSTALL
24+
25+
To see a list of possible options type
26+
27+
./configure --help
28+
29+
HDF libraries used by nexus are available via your system software package manager or can be downloaded from http://www.hdfgroup.org/
30+
31+
A typical run of configure might be:
1132

12-
We have recently changed the installation procedure to use the GNU autoconf
13-
system. This will automatically check for the relevant HDF and other libraries
14-
and adjust the configuration scripts accordingly.
33+
./configure --prefix=/usr/local/nexus --with-hdf5=/usr/local/hdf5
1534

16-
1) Ensure that you have current versions of the HDF4 and/or the HDF5
17-
libraries. It is now possible to link the NeXus libraries against
18-
either or both libraries, depending on the selected make option.
19-
20-
The libraries, which are available as precompiled binaries for a wide
21-
range of systems, may be downloaded from:
22-
23-
http://www.hdfgroup.org/
35+
Unix (including Mac OS X) svn checkout
36+
--------------------------------------
2437

25-
2) At present it is necessary to run the autogen shell script to produce the
26-
correct configure file.
38+
As the "configure" file mentioned is a generated file, it is not included in the version control checkout. To create it run:
2739

2840
sh autogen.sh
2941

30-
3) Run 'configure' and 'make'.
31-
32-
./configure
33-
./make
34-
35-
If there are any problems, try different configure options to see if one
36-
will work. You can see what switches are available by typing
37-
38-
./configure --help
39-
40-
4) Install the files in the default location (usually /usr/local/nexus) using
41-
42-
make install
43-
44-
5) Test the installation using
45-
46-
make test
47-
48-
The standard test procedures produce the following output:
49-
50-
Number of global attributes: 4
51-
NeXus_version = 2.0.0.
52-
file_name = NXtest.nx5
53-
HDF5_Version = 1.4.3
54-
file_time = 2002-05-17 14:40:24-0600
55-
Group: entry(NXentry) contains 8 items
56-
ch_data( 4)
57-
Values : NeXus data
58-
Subgroup: data(NXdata)
59-
i1_data(20)
60-
Values : 1 2 3 4
61-
i2_data(22)
62-
Values : 1000 2000 3000 4000
63-
i4_data(24)
64-
Values : 1000000 2000000 3000000 4000000
65-
r4_data( 5)
66-
Values : 1.00 2.00 3.00 4.00
67-
: 5.00 6.00 7.00 8.00
68-
: 9.00 10.00 11.00 12.00
69-
: 13.00 14.00 15.00 16.00
70-
: 17.00 18.00 19.00 20.00
71-
r8_data( 6)
72-
Values : 1.00 2.00 3.00 4.00
73-
: 5.00 6.00 7.00 8.00
74-
: 9.00 10.00 11.00 12.00
75-
: 13.00 14.00 15.00 16.00
76-
: 17.00 18.00 19.00 20.00
77-
ch_attribute : NeXus
78-
i4_attribute : 42
79-
r4_attribute : 3.141593
80-
Subgroup: sample(NXsample)
81-
Link Check OK
82-
83-
There are small differences in the formatting of the C and Fortran
84-
files. All of them may be viewed by NXbrowse using, e.g.:
85-
86-
./NXbrowse NXtest.nxs
87-
88-
Windows
89-
-------
90-
See README.WIN32.
91-
92-
Mac OS X
93-
--------
94-
See README.macosx
95-
96-
VMS
97-
---
98-
1) There is no VMS version of HDF5, so it is only possible to link to
99-
the HDF4 libraries. Ensure that you have the current versions,
100-
which are available as precompiled binaries at:
101-
102-
http://www.hdfgroup.org/
103-
104-
The NeXus libraries link against the following libraries:
105-
106-
2) Edit MAKE_VMS.COM to specify the correct location of the HDF
107-
libraries, and comment out either the F77 or F90 options if necessary.
108-
109-
3) If you are installing the Fortran 90 library, edit NXtest.f90 to
110-
replace NXACC_CREATE5 with NXACC_CREATE4 in the first call to NXopen.
111-
112-
4) Run MAKE_VMS.COM (i.e. type @MAKE_VMS) to build the NeXus libraries
113-
and utilities.
114-
115-
5) Run the test programs to check the installation.
116-
117-
$ RUN NAPI4_TEST (Tests C creation of NXtest.nx4)
118-
$ RUN NAPIF_TEST or NXtest (Tests Fortran creation of NXtest.nxs)
119-
120-
6) Install the NeXus libraries NEXUS.OLB and/or NEXUS90.OLB, and the
121-
include (or module) files in a standard location for building other
122-
NeXus programs.
123-
124-
125-
Comments to : ROsborn@anl.gov
126-
127-
Argonne National Laboratory is operated by The University of Chicago for
128-
the U.S. Department of Energy under contract W-31-109-ENG-38.
129-
LEGAL POSTLUDE
130-
--------------
131-
The NeXus API is free software; you can redistribute it and/or modify
132-
it under the terms of the GNU Lesser General Public License as published
133-
by the Free Software Foundation; either version 2.1 of the License, or
134-
(at your option) any later version.
135-
136-
The NeXus API is distributed in the hope that it will be useful,
137-
but WITHOUT ANY WARRANTY; without even the implied warranty of
138-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
139-
GNU Lesser General Public License for more details.
140-
141-
You should have received a copy of the GNU Lesser General Public License
142-
along with this program; if not, write to the Free Software
143-
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
144-
145-
DISCLAIMER OF LIABILITY: This document was prepared as an account of
146-
work sponsored by an agency of the U.S. Government. Neither the U.S.
147-
Government nor any agency thereof, nor the University of Chicago, nor
148-
any of their employees or officers, makes any warranty, express or
149-
implied, or assumes any legal liability or responsibility for the
150-
accuracy, completeness, or usefulness of any information, apparatus,
151-
product, or process disclosed, or represents that its use would not
152-
infringe privately owned rights.
153-
154-
DISCLAIMER OF ENDORSEMENT: Reference to any specific commercial
155-
product, process, or service by trade name, trademark, manufacturer,
156-
or otherwise does not necessarily constitute or imply its endorsement,
157-
recommendation, or favoring by the U.S. Government or any agency
158-
thereof. The views and opinions of document authors do not necessarily
159-
state or reflect those of the U.S. Government or any agency thereof,
160-
Argonne National Laboratory, or the University of Chicago.
161-
162-
COPYRIGHT STATUS: Documents authored by Argonne National Laboratory
163-
employees resulted from work under U.S. Government contract
164-
W-31-109-ENG-38 and are subject to the following license: the
165-
Government is granted for itself and others acting on its behalf a
166-
paid-up, nonexclusive, irrevokable worldwide license in these
167-
documents to reproduce, prepare derivative works, and perform publicly
168-
and display publicly by or on behalf of the Government.
42+
and then follow the same procedure as above. You may also want to look at the README.developers file
16943

17044
----------------------------------------------------------------------------
17145

README.MinGW

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,3 @@ Freddie Akeroyd (F.A.Akeroyd@rl.ac.uk)
5252
--
5353

5454
$Id$
55-
===================================================================
56-
RCS file: /isis/cvs/repository/nexus/applications/NXtranslate/text_xml/Makefile.am,v
57-
retrieving revision 1.3
58-
diff -r1.3 Makefile.am
59-
32c32

README.WIN32

Lines changed: 0 additions & 85 deletions
This file was deleted.

README.developers

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ you must add these to the DISTCHECK_CONFIGURE_FLAGS variable in Makefile.am
4949

5050
To generate an RPM install kit see README.rpm
5151

52+
Also see README.versions for setting nexus release versions
53+
5254
If you have problems
5355
--------------------
5456

@@ -66,14 +68,12 @@ now requires autoconf 2.61 or above
6668
NeXus Developer Mailing Lists
6769
-----------------------------
6870

69-
CVS commit/log messages are automatically sent to the nexus-cvs@anl.gov
70-
mailing list - if you wish to receive these, subscribe to the list via the link
71+
SVN commit/log messages are automatically sent to the nexus-code-svn@nexusformat.org mailing list - if you wish to receive these, subscribe to the list via the link
7172

72-
http://www.neutron.anl.gov/mailman/listinfo/nexus-cvs
73+
http://lists.nexusformat.org/mailman/listinfo/nexus-code-svn
7374

74-
Any general developer questions should be directed to nexus-developers@anl.gov
75-
list - you can subscribe to this via the link
75+
Any general questions should be directed to nexus@nexusformat.org list - you can subscribe to this via the link
7676

77-
http://www.neutron.anl.gov/mailman/listinfo/nexus-developers
77+
http://lists.nexusformat.org/mailman/listinfo/nexus
7878

7979
$Id$

bindings/python/Makefile.am

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ EXTRA_DIST = README.html nxs.napi.html nxstest.py run_nxstest setup.py
3838

3939
nxs.napi.html : $(srcdir)/nxs/napi.py
4040
env NEXUSLIB=../../src/.libs/libNeXus.$(SHARED_EXT) pydoc -w $(srcdir)/nxs/napi.py
41-
mv napi.html $@
41+
if test -r napi.html; then \
42+
mv napi.html $@; \
43+
else \
44+
touch $@; \
45+
fi
4246

4347
install-data-hook :
4448
sed -e "s|nxprefix = .*|nxprefix = \'${prefix}\'|" < ${srcdir}/nxs/napi.py > $(DESTDIR)${nxspythondir}/napi.py

0 commit comments

Comments
 (0)