Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
diana:windows:building:image [2009-11-16 11:12:03]
dages
diana:windows:building:image [2022-05-31 09:29:31] (current)
Line 1: Line 1:
-====== Building libtiff, libjpeg and libpng on Windows ======+====== Building libpng, libjpeg and libtiff on Windows ======
  
-**THESE INSTRUCTIONS ARE INCORRECT**+Download and extract the correct versions of zlib, libpng, jpeg and tiff:
  
-===== zlib =====+^ Package   ^ Location                                       ^ Version ^ 
 +| libpng    | http://sourceforge.net/projects/libpng/files/  | 1.2.40 
 +| jpeg      | http://www.ijg.org/files/                      | 8       | 
 +| tiff      | ftp://ftp.remotesensing.org/pub/libtiff/       | 3.9.2   |
  
-Start by installing the MinGW version of zlib (http://downloads.sourceforge.net/project/mingw/MinGW%20zlib/zlib-1.2.3-1-mingw32/libz-1.2.3-1-mingw32-dll-1.tar.gz and http://downloads.sourceforge.net/project/mingw/MinGW%20zlib/zlib-1.2.3-1-mingw32/libz-1.2.3-1-mingw32-dev.tar.gz).  You probably have the -dll part already, but you need the -dev part to compile software that uses zlib.+Build them in the order in which they are listed in the table.
  
-===== libjpeg =====+In each case, after extracting, run the following commands:
  
-Download and extract http://www.ijg.org/files/jpegsrc.v7.tar.gz:+  $ LDFLAGS=-L/c/met.no/lib CPPFLAGS=-I/c/met.no/include ./configure --prefix=/c/met.no --disable-shared 
 +  $ make all install
  
-  $ bsdtar xf jpegsrc.v7.tar.gz  +Copy the licenses:
-  $ cd jpeg-7+
  
-See [[windows:building:issues#incorrect_library_names]]; libtiff's ''autogen.sh'' is broken, so run the following commands to fix the libtool issue:+//libpng//
  
-  $ aclocal +  $ cp LICENSE /c/met.no/copyright/libpng.txt
-  $ libtoolize --copy --force +
-  $ automake --add-missing --copy --foreign +
-  $ autoheader +
-  $ autoconf+
  
-Now you can configure, build and install:+//jpeg//
  
-  $ ./configure --prefix=/mingw +  $ cp README /c/met.no/copyright/jpeg.txt
-  $ make install+
  
-Do //not// install to ''/''; remember that ''/'' is MSYS and ''/mingw'' is MinGW.+//tiff//
  
-**Revisit later in re thread safety** +  $ cp COPYRIGHT /c/met.no/copyright/tiff.txt
- +
-===== libtiff ===== +
- +
-Download and extract ftp://ftp.remotesensing.org/pub/libtiff/tiff-3.9.2.tar.gz: +
- +
-  $ bsdtar xf tiff-3.9.2.tar.gz +
-  $ cd tiff-3.9.2 +
- +
-See [[windows:building:issues#incorrect_library_names]]; libtiff's ''autogen.sh'' is broken, so run the following commands to fix the libtool issue: +
- +
-  $ aclocal +
-  $ libtoolize --copy --force +
-  $ automake --add-missing --copy --foreign +
-  $ autoheader +
-  $ autoconf +
- +
-Now you can configure, build and install: +
- +
-  $ ./configure --prefix=/mingw +
-  $ make install +
- +
-Do //not// install to ''/''; remember that ''/'' is MSYS and ''/mingw'' is MinGW. +
- +
-**Revisit later in re thread safety** +
- +
-===== linpng ===== +
- +
-TBD+
  
  • diana/windows/building/image.1258369923.txt.gz
  • Last modified: 2022-05-31 09:23:14
  • (external edit)