Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
diana:windows:building:udunits [2010-01-18 17:44:56]
dages created
diana:windows:building:udunits [2022-05-31 09:29:31] (current)
Line 5: Line 5:
 First, get the latest source (1.12.9) from http://www.unidata.ucar.edu/downloads/udunits/index.jsp and extract it in a convenient place. First, get the latest source (1.12.9) from http://www.unidata.ucar.edu/downloads/udunits/index.jsp and extract it in a convenient place.
  
-Building UDUNITS is not straightforward.  Its autotools infrastructure is old, and its configure script does not use the correct autoconf idiom for locating ''yacc'', so you have to specify it manually; moreover, it fails to recognize g77, and uses POSIX features without defining the appropriate ''_XOPEN_SOURCE'' macro. +Building UDUNITS is not straightforward.  Its autotools infrastructure is old, and its configure script does not use the correct autoconf idiom for locating ''yacc'', so you have to specify it manually; moreover, it fails to recognize g77, and uses POSIX features without defining the appropriate ''_XOPEN_SOURCE'' macro.  As a result, the ''configure'' command line is a bit of a mess:
- +
-The ''configure'' command line is a bit of a mess:+
  
   $ cd src   $ cd src
-  $ LD_YACC=-ly LDFLAGS=-no-undefined CPPFLAGS='-Df2cFortran -D_POSIX_MAX_INPUT=255' FC=g77 ./configure --prefix=/opt/udunits+  $ LDFLAGS=-L/c/met.no/lib CPPFLAGS='-I/c/met.no/include -Df2cFortran -D_POSIX_MAX_INPUT=255' LD_YACC=-ly FC=g77 ./configure --prefix=/c/met.no 
 + 
 +UDUNITS includes Perl modules and man pages which require additional tools to build, so we'll just manually build and install the parts we need:
  
-UDUNITS includes Perl modules and man pages which require additional tools to build, so we'll just manually build and install the library and binary:+  $ make -C lib installed_library installed_headers installed_etcfiles 
 +  $ make -C port install 
 +  $ make -C udunits installed_program 
 +  $ cp COPYRIGHT /c/met.no/copyright/udunits.txt
  
-  $ cd lib +**XXX** do we actually need the program?  If not, we can skip the last two lines.
-  $ make installed_library installed_headers +
-  $ cd ../udunits +
-  $ make installed_program+
  • diana/windows/building/udunits.1263836696.txt.gz
  • Last modified: 2022-05-31 09:23:14
  • (external edit)