| 1 | Install MinGW from http://www.mingw.org/ using the MINGW installer - |
|---|
| 2 | I used MinGW-5.0.2.exe and installed the "current" binaries. As you need |
|---|
| 3 | to install MSYS later on, DO NOT install MINGW make. |
|---|
| 4 | |
|---|
| 5 | Now download the MSYS installer (I used MSYS-1.0.10.exe) and also the MSYS developer toolkit (msysDTK-1.0.1.exe in my case) from the MinGW downloads page and install. You also need to install mingw-utils (for the pexports command), which you download as a .tar.gz file and then unpack to your c:/MinGW directory |
|---|
| 6 | |
|---|
| 7 | Start MSYS, unpack the nexus distribution and edit the file "make_mingw_links" in the top directory as instructed within it; then run it |
|---|
| 8 | |
|---|
| 9 | If you wish a Microsoft compatible import library (.LIB file that references a DLL) to also be built, you need to make sure the LIB command is available in your MinGW path. Type LIB at the MSYS prompt now to check if this is so. |
|---|
| 10 | |
|---|
| 11 | Edit applications/NXtranslate/text_xml/Makefile.am and |
|---|
| 12 | applications/NXtranslate/Makefile.am and in both replace |
|---|
| 13 | `xml2-config --cflags` with -I/usr/local/include in AM_CPPFLAGS |
|---|
| 14 | |
|---|
| 15 | Now just type |
|---|
| 16 | |
|---|
| 17 | ./configure |
|---|
| 18 | make |
|---|
| 19 | make check |
|---|
| 20 | make install |
|---|
| 21 | |
|---|
| 22 | To build the JAVA interface with gcj you need to pass the JAVA home |
|---|
| 23 | directory to configure. If your gcj command is /mingw/bin/gcj then use |
|---|
| 24 | |
|---|
| 25 | ./configure --with-java-home=/mingw |
|---|
| 26 | |
|---|
| 27 | If you get a compile error about redeclaration of ssize_t when including the HDF5 header, you need to edit /usr/local/hdf5/include/H5pubconf.h and change the definition of H5_SIZEOF_SSIZE_T to e.g. |
|---|
| 28 | |
|---|
| 29 | #define H5_SIZEOF_SSIZE_T 4 /* for 32 bit machines */ |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | After building and installing you should get |
|---|
| 33 | |
|---|
| 34 | ${prefix}/lib/libNeXus.a : static library |
|---|
| 35 | ${prefix}/lib/libNeXus.dll.a : import library for libNeXus-0.dll |
|---|
| 36 | ${prefix}/bin/libNeXus-0.dll : NeXus shared library |
|---|
| 37 | ${prefix}/bin/libNeXus-0.dll.lib : MS compatible import library for libNeXus-0.dll (only built if you have ther LIB command in your path) |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | Enjoy! |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | Use libtool 1.5 but note it has problems as MinGW does not ship the unix "file" command so you get "file magic" errors |
|---|
| 45 | |
|---|
| 46 | to remedy, install file.MinGW as /usr/local/bin/file and chmod +x it |
|---|
| 47 | |
|---|
| 48 | also rename libmxml.a as libmxml.dll.a |
|---|
| 49 | |
|---|
| 50 | Freddie Akeroyd (F.A.Akeroyd@rl.ac.uk) |
|---|
| 51 | |
|---|
| 52 | -- |
|---|
| 53 | |
|---|
| 54 | $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 |
|---|