To install and use the WFDB Software Package successfully, you must know how to use the Terminal application and the Unix shell. If you are unfamiliar with Unix commands, please find and study a good reference on the subject, such as David Pogue's Mac OS X: The Missing Manual, or Dave Taylor's Learning Unix for Mac OS X (both published by O'Reilly), or get the help of a local expert.
The WFDB Software Package has been successfully compiled and tested on Intel-based Macs under Mac OS X 10.6 (Snow Leopard) and 10.5 (Leopard), and on PPC-based Macs under Mac OS X 10.3 (Panther) and 10.2 (Jaguar). We have not tested other versions of OS X. Note that the XView toolkit needed in order to use WAVE is available for PPC but not (yet) for Intel-based Macs.
Thanks to Isaac Henry for the original port of the WFDB Software Package to Mac OS X; to David T. Linker, MD, of the University of Washington, for providing instructions for compiling WAVE under Mac OS X 10.2 on PPC Macs; and to Prof. Logan Donaldson, of York University (Toronto), for the port of the XView toolkit to Mac OS X 10.0 (PPC) that made David's port of WAVE possible.
If you have installed XCode 4 or later, see
export EDITOR=/usr/bin/emacsto the file named .bash_profile in your home directory.
If you download the sources (recommended):
tar xfv wfdb.tarOtherwise, decompress and unpack with this command:
tar xfvz wfdb.tar.gz
Unpacking the archive creates a directory with a name of the form wfdb-10.m.n. Enter this directory:
./configure sudo make installThe sudo command prompts for your password, needed in order to install the package in subdirectories of /usr. If you do not have administrative permissions, you may install the package in any writable directory by running make directly, adding an appropriate option:
make install WFDBROOT=/path/to/another/directoryNote that in this case you will need to add WFDBROOT/bin to your PATH, and WFDBROOT/lib to your DYLD_LIBRARY_PATH.
make checkThis step compiles a short program that exercises the WFDB library, prints a summary of test results, and prompts you to press <Enter>. After you have done so, the WFDB applications are tested. The tests are very short (typically less than a second each), except that the last one (xform using NETFILES) may take up to a minute if you have a slow or inoperative Internet connection. If any application test fails, its output can be found in the checkpkg subdirectory of the WFDB source tree; compare this output with the files of the same names that can be found in the checkpkg/expected subdirectory.
cd wfdb-10.m.n-cputype-Darwin sudo cp -pr . /usr
wave -r mitdb/200 -a atr
startx &In the xterm window, type the command:
wave -r mitdb/200 -a atr
Note that WAVE's menus (marked with a ) are opened using a right click; if you have a one-button mouse, simulate a right click by pressing and holding the apple key while clicking. Annotation editing requires the use of the middle button, which can be simulated by using the option key while clicking.
If you have not used WAVE before, you may want to follow through the tutorial
material in the beginning of the WAVE User's
The WFDB Software Package supports creation of multi-architecture ("fat") binaries that run on 32- and 64-bit Intel as well as PPC versions of Mac OS X, using XCode 3 and earlier versions based on the gcc C compiler. In XCode 4, Apple replaced gcc with its own C compiler, breaking support for its older PPC machines. As a result, you will need to choose one of these options before compiling the WFDB Software Package, if XCode 4 is installed on your computer: