Debian Codegraph @

matio-1.5.0/README

raw
1 MATIO - MATLAB MAT file I/O library
2
3 Table of Contents
4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 1.0 Introduction
6 1.1 Contact
7 1.2 Acknowledgements
8 1.3 Contributing
9 1.4 Questions and Reporting Bugs
10 2.0 Building
11 2.1 Dependencies
12 2.1.1 zlib
13 2.1.2 HDF-5
14 2.2 Building matio
15 2.2.1 Quick Build Guide
16 2.2.2 Configure Options
17 2.2.3 Visual Studio
18 2.2.4 Testsuite
19 2.3 Platforms
20 3.0 License
21
22 1.0 Introduction
23 matio is an open-source library for reading/writing MATLAB MAT files.
24 This library is designed for use by programs/libraries that do not have
25 access or do not want to rely on MATLAB's shared library.
26
27 1.1 Contact
28 You can contact me (Christopher Hulbert) through email at
29 [email protected].
30
31 1.2 Acknowledgements
32 The following people/organizations have helped in the development of
33 matio through patches, bug reports, and/or testing:
34 * Jacco van Beek
35 * SGI in support of Interactive Supercomputing, Inc.
36 * Scilab (http://www.scilab.org/)
37 * Steven Leibman <[email protected]>
38 * OpenMEEG (http://www-sop.inria.fr/athena/software/OpenMEEG/)
39
40 1.3 Contributing
41 Part of my reason for releasing this software is I have many other
42 projects to work on and have many features I would still like to
43 implement. If you make changes, I would appreciate your contributions
44 and more than likely will include them in future releases. If you are
45 interested in collaborations, contact me via email (see Section 1.1).
46
47 1.4 Questions and Reporting Bugs
48 Questions can be askes using the forums on the sourceforge site hosting
49 matio (http://sourceforge.net/projects/matio/forums).
50
51 Bugs, enhancements, etc. should be submitted using one of the trackers
52 on the sourceforge page
53 (http://sourceforge.net/tracker/?group_id=176643).
54
55
56 2.0 Building
57 This section describes how to build matio. Section 2.1 describes the
58 dependencies, Section 2.2 how to build/test matio, and Section 2.3
59 documents the platforms matio has been tested on.
60
61 2.1 Dependencies
62 MATIO has two optional dependencies. These are not required for the
63 software to work, but without them some files may be unreadable. Zlib
64 is required to read/write level 5 MAT files that use compression. HDF5
65 is required to work with newer MAT files that use the HDF5-format
66 files
67
68 2.1.1 zlib
69 To support compressed MAT files, zlib 1.2.3 or greater is
70 required. The zlib software can be downloaded from
71 http://zlib.net.
72
73 2.1.2 HDF5
74 Support for MAT file version 7.3 requires the HDF5 library. This
75 library can be downloaded from The HDF Group website
76 (http://www.hdfgroup.org/). MATIO requires HDF5 version 1.8.x,
77 and must be built with default API version 1.8 (i.e.
78 '--with-default-api-version=v18').
79
80 For windows, the pre-compiled binaries can be used which also
81 include a DLL of zlib to satisfy the zlib dependency.
82
83 2.2 Building matio
84 2.2.1 Quick Build Guide
85 The primary method for building the software is using 'configure'
86 followed by 'make'. After building, the testsuite can be executed to
87 test the software using 'make check'. The software can be installed
88 using 'make install'. For example,
89 $ tar zxf matio-X.Y.Z.tar.gz
90 $ cd matio-X.Y.Z
91 $ ./configure
92 $ make
93 $ make check
94 $ make install
95
96 If any of the tests in the testsuite fail, you should report the failure
97 using the tracker (see Section 1.4). You should attache the generated
98 testsuite.log file to the bug report.
99
100 2.2.2 Configure Options
101 The configure script used to build the software takes a number of
102 options. This section describes the key options.
103
104 * --enable-mat73=yes
105 This flag en/disables the support for version 7.3 MAT files.
106 The option only makes sense if built with HDF5 as support
107 for version 7.3 files will be disabled if HDF5 is not
108 available.
109 * --enable-extended-sparse=yes
110 Enable extended sparse matrix data types not supported in
111 MATLAB. MATLAB only supports double-precision sparse data.
112 With this flag, matio will read sparse data with other
113 types (i.e. single-precision and integer types).
114 * --with-matlab=DIR
115 This option specifies the directory (DIR) with the 'matlab'
116 program. With this option, the testsuite will check that the
117 MAT files written by matio can be read into MATLAB. Without
118 this, the test will only check that matio can read the file
119 written and if successful the test will be skipped. If matio
120 can not read the file, the test will fail.
121 * --with-zlib=DIR
122 This option specifies the prefix where zlib is installed
123 (see Section 2.1.1 for information about zlib).
124 * --with-hdf5=DIR
125 This option specifies the prefix where the HDF5 software is
126 installed (see Section 2.1.2 for information about HDF5).
127 * --with-default-file-ver=version
128 This option sets the default MAT file version (4,5,7.3) that
129 will be used when writing. The default file version is used
130 by the Mat_Create macro and the Mat_CreateVer function when
131 MAT_FT_DEFAULT is used for the version argument.
132 * --with-libdir-suffix=suffix
133 This option specifies a suffix to apply to library
134 directories when installing and looking for dependent
135 libraries (i.e. HDF5 and zlib). For example, some multi-arch
136 Linux distributions install 64-bit libraries into lib64 and
137 32-bit libraries into lib.
138
139 2.2.3 Visual Studio
140 A visual studio solution is provided as visual_studio/matio.sln.
141 The solution is set up to build a DLL of the matio library
142 (libmatio.dll) and matdump tool in release mode and assumes HDF5 is
143 available in the directory specified by the HDF5_DIR environment
144 variable. The build was tested with the HDF5 visual studio pre-built
145 Windows binaries including zlib.
146
147 2.2.4 Testsuite
148 A testsuite is available when building with the GNU autotools. To
149 run the testsuite, First configure and build matio. After building
150 run 'make check' to run the testsuite. If matio was built without
151 zlib, the compressed variable tests will be skipped. If built
152 without HDF5, the tests for version 7.3 MAT files will be skipped.
153 If the path to the MATLAB application was not specified
154 (--with-matlab), the write tests will fail if matio cannot read the
155 file and skip if matio can read the file. The write tests will pass
156 if MATLAB is available and can also read the file.
157
158 To report matio testsuite failures, compress the testsuite.log file
159 in the test sub-directory of the build directory. Upload the
160 compressed log file along with a bug report (see Section 1.4 for
161 information on reporting bugs).
162
163 2.3 Platforms
164 The library has been tested/used on Linux, Windows, OS X, and AIX
165 including both little-endian and big-endian architecture.
166
167 3.0 License
168 This software is provided under a Simplified BSD license. See the COPYING
169 file for details on the license.