These are generic notes about nufraw compilation for windows under MinGW compiler
Currently (v0.33) the windows version is tested only as standalone program 
(no Gimp plugin and batch mode)

- Download and run mingw-get-setup.exe
  - launch "MinGW installation manager" and add:
    - mingw-developers-tookit
    - mingw32-gcc-g++
    - mingw32-libz (dev and dll)
    - mingw32-pthreads-w32 (dev)
  
- Download gtk+-2.x.x-bundle.7z from https://sourceforge.net/projects/gtk-mingw/ 
  - unpack in C:\MinGW (overwrite if required)

- Download gtkimageviewr from https://github.com/Alexpux/MINGW-packages
  - unpack
  - configure
  - remove -Werror from Makefile and src/Makefile
  - make
  - make install
  - copy  lib, bin and include from C:\MinGW\msys\1.0\local to C:\MinGw

- Lensfun is an optional package to correct lens defect (CA, vignetting, etc)
  - download and run CMake installer for windows (cmake must be added to the PATH)
  - download lensfun sources ("lensfun-code" usign git)
  - run cmake-gui
    - set the sources path for "lensfun-code" directory
    - set the binary path as cmake_build inside lensfun-code (must be created)
    - 

- Unpack nufraw-x.x.tgz
  - autogen.sh
  - configure  --with-dosprefix=C:\\MinGW
  - make
  
The configure command supposed your installation of MinGW is C:\\MinGW
  
If the make gives errors on the link for unresolved symbol in libtiff
is because the pkg-config forgot the libjbig, so use these commands:

make nufraw-nufraw_main.o
g++  -W -Wall -g -O3 -fomit-frame-pointer -D_FORTIFY_SOURCE=2 -march=i686 -fopenmp -mwindows -mms-bitfields   -o nufraw.exe nufraw-nufraw_main.o libnufraw.a nufraw_icon.opc -LC:/MinGW/lib -lgthread-2.0 -lglib-2.0 -lintl   -LC:/MinGW/lib -llcms2    -LC:/MinGW/lib -ltiff   -LC:/MinGW/lib -lpng15     -Wl,-luuid -LC:/MinGW/lib -lgtkimageview -lgtk-win32-2.0 -lgdk-win32-2.0 -limm32 -lshell32 -lole32 -latk-1.0 -lpangocairo-1.0 -lgio-2.0 -lgdk_pixbuf-2.0 -lpangoft2-1.0 -lpangowin32-1.0 -lgdi32 -lfreetype -lfontconfig -lpango-1.0 -lm -lcairo -lgobject-2.0 -lglib-2.0 -lintl -ljpeg -lz  -lintl  -lws2_32 -ljbig

To create windows installer
- cd po/ 
- for FILE in *.po ; do make ${FILE/.po/.mo}; done
- make windows-installer



