Project

General

Profile

Actions

Building exiv2 on Windows Using MinGW

*Last revision on which this method was tested: r3288
*Operating Systems on which this method was tested: Windows7 Professional and Home-Premium 64bit

  1. Download MinGW
  2. While selecting packages, make sure that the selected packages include the ones listed in the file MinGW_Required_Packages.txt
  3. pkg-config is not part of standard MinGW installation. Assuming your MinGW installation is in C:\MinGW, download pkg-config and extract pkg-config.exe executable to C:\MinGW\bin. Then download glib and extract liglib-2.0-0.dll to C:\MinGW\bin. Open command prompt and type:
    cd C:/MinGW/bin
    cp libintl-8.dll intl.dll
    
  4. For building exiv2, open command prompt and type:
    mkdir C:\gnu
    cd C:\gnu
    svn checkout svn://dev.exiv2.org/svn/trunk
    cd trunk
    set PATH=c:\MinGW\bin;c:\MinGW\msys\1.0\bin;C:\MinGW\msys\1.0\local\bin;
    bash
    PS1="\! \${PWD}> "; #Optional
    make config
    ./configure
    make
    make install
    export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
    make samples
    make tests
    
    1. Troubleshooting: If you get the error...
      /usr/bin/grep: /home/keith/staged/mingw32/lib/libiconv.la: No such file or directory
      /usr/bin/sed: can't read /home/keith/staged/mingw32/lib/libiconv.la: No such file or directory
      libtool: link: `/home/keith/staged/mingw32/lib/libiconv.la' is not a valid libtool archive
      

      ...then open command prompt and type:
      grep keith C:\MinGW\lib
      

      and remove all *.la files containing that word.
      Refer: keith-hard-link-bug

Updated by Nehal J Wani over 7 years ago ยท 7 revisions