This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
forked from bemoody/wfdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathINSTALL
141 lines (103 loc) · 6.2 KB
/
INSTALL
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
file: INSTALL G. Moody 30 January 2000
Last revised: 21 July 2013
WFDB Software Package installation notes
These notes are infrequently updated, but are included here for those who may
not have ready access to the World Wide Web. For those who do, please visit
PhysioNet, where up-to-date quick-start guides including installation notes
for popular operating systems are available (find a guide for your platform at
http://physionet.org/physiotools/wfdb.shtml).
Although ready-to-run binaries are available for several popular platforms,
we strongly recommend building the WFDB Software Package from sources. Doing
so is the best way to ensure that the components of the package will work
together properly on your system, and that your software is up-to-date. The
process of building the package is simple and quick.
The GNU C compiler (gcc) is available freely for all platforms, and it is
strongly recommended. We will help you to solve any problems you may encounter
in building the WFDB Software Package using gcc on your platform; our
experience has been that such builds are trouble-free if you follow the
instructions in our quick-start guides (see above).
Some users have reported success in compiling the WFDB Software Package, except
for WAVE, using various commercial compilers. We don't use or recommend these
compilers, and we offer no instructions or support for doing so whatsoever. If
you choose to use one of these unsupported compilers, you are on your own!
PREPARATION
There are three prerequisites for a complete build. All are free, open-source
software available for all popular platforms:
* Software development tools (make, gcc, X11 libraries and *.h files, etc.)
+ GNU/Linux, Unix, etc.: usually included
+ Mac OS X: install Mac OS X Developer Tools, X11 for Mac OS X, X11 SDK
(all included in current Mac OS X CD sets)
+ MS-Windows: Install Cygwin, including (at least) the following optional
packages: ImageMagick, X-start-menu-icons, bc, curl, cygutils-extra,
diffutils, gcc, gcc-fortran, gv, libX11-devel, libcurl-devel,
libexpat1-devel, make, sunrpc, twm, and xview-devel. (Other required
packages will be installed automatically if those listed are selected.)
Detailed instructions are available at
http://physionet.org/physiotools/cygwin/
* An HTTP client library, either libcurl (preferred) or libwww
+ GNU/Linux, Unix, etc.: usually included, or from http://curl.haxx.se/
(libcurl) or http://www.w3.org/Library/ (libwww)
+ Mac OS X: install libcurl or libwww (both base and development packages)
from Fink (http://fink.sourceforge.net)
+ MS-Windows: install curl-devel from Cygwin (see above)
One or both of these libraries may already be installed on your system;
to check, try running the commands
curl-config --version
libwww-config --version
* The XView libraries and *.h files
+ MS-Windows: install xview-devel from Cygwin (see above)
+ Other platforms: free from http://physionet.org/physiotools/xview/
Detailed instructions for obtaining and installing these prerequisites are
included in the WFDB quick-start guides for the popular platforms (see above).
Brief notes about other platforms are at the end of this file.
BUILDING AND INSTALLING
Once you have installed the necessary prerequisites, the WFDB installation
process is the same on all platforms:
1. Open a terminal emulator window and navigate to the top-level directory
of the WFDB sources (the directory that contains this file).
2. Configure the package by typing:
./configure
You will normally need root permissions (on MS-Windows, administrator
permissions) to run 'make install'. If you don't have root/administrator
permissions, use configure's --prefix option to specify a directory
in which you have permission to write, like this:
./configure --prefix=/some/writable/directory
3. Build and install the WFDB library and applications by typing:
make install
4. Test the installation by typing:
make check
If there are any errors, look in the checkpkg directory for details.
FURTHER READING
Once you have successfully compiled and installed the WFDB Software Package,
you will find a great deal of information about using it on PhysioNet; begin
by looking in http://physionet.org/physiotools/manuals.shtml.
Many frequently asked questions about this software are answered in the
PhysioNet FAQ (http://physionet.org/faq.shtml).
UNINSTALLING
If for any reason you wish to uninstall the WFDB Software Package, type:
make uninstall
from this directory. You will need root permissions to uninstall unless
you changed WFDBROOT before installing the package.
_______________________________________________________________________________
Under MS-DOS, MacOS 9 and earlier, or other operating systems
Sorry, but you are on your own here. Previous versions of the WFDB library
and some of the applications have been compiled successfully by MS-DOS and
Macintosh users (and on OS/2 and VMS, among other environments). The sources
are written in highly portable C and should not be difficult to port to any
environment where an ANSI/ISO or K&R C compiler and the standard C library are
available.
Often vendors of proprietary compilers and operating systems provide little or
no documentation about how to build libraries (especially shared/dynamically
linked libraries), although there may be clear and simple instructions for
compiling C programs that use the vendor's own libraries only. If this
describes your situation, you may find it easiest to compile the WFDB library
sources as ordinary source files together with the programs that use the WFDB
library functions. This approach won't yield the benefits of reduced
compilation time and reduced executable size available on platforms that
support shared libraries, but it should allow you to compile and run the WFDB
software (except for WAVE) with a minimum of difficulty.
If you find that changes are necessary in order to compile this software
successfully on your platform, please send details to the author
(george@mit.edu) so that others can benefit from your experience.
Contributions of working binaries are welcome, but please write first before
sending them to me. Thanks!