source: trunk/README.MinGW @ 1822

Revision 805, 2.4 KB checked in by faa59, 6 years ago (diff)

Add note about JAVA building

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1Install MinGW from http://www.mingw.org/ using the MINGW installer -
2I used MinGW-5.0.2.exe and installed the "current" binaries. As you need
3to install MSYS later on, DO NOT install MINGW make.
4
5Now 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
7Start MSYS, unpack the nexus distribution and edit the file "make_mingw_links" in the top directory as instructed within it; then run it
8
9If 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
11Edit applications/NXtranslate/text_xml/Makefile.am and
12applications/NXtranslate/Makefile.am and in both replace
13`xml2-config --cflags`  with  -I/usr/local/include in  AM_CPPFLAGS
14
15Now just type
16
17  ./configure
18  make
19  make check
20  make install
21
22To build the JAVA interface with gcj you need to pass the JAVA home
23directory to configure. If your gcj command is  /mingw/bin/gcj  then use
24
25  ./configure --with-java-home=/mingw
26
27If 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
32After 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
40Enjoy!
41
42
43
44Use libtool 1.5 but note it has problems as MinGW does not ship the unix "file" command so you get "file magic" errors
45
46to remedy, install  file.MinGW   as /usr/local/bin/file and chmod +x it
47
48also rename libmxml.a as libmxml.dll.a
49
50Freddie Akeroyd (F.A.Akeroyd@rl.ac.uk)
51
52--
53
54$Id$
55===================================================================
56RCS file: /isis/cvs/repository/nexus/applications/NXtranslate/text_xml/Makefile.am,v
57retrieving revision 1.3
58diff -r1.3 Makefile.am
5932c32
Note: See TracBrowser for help on using the repository browser.