Actions
Building exiv2 on Windows Using Microsoft Visual Studio Express 2012¶
Caution:
- This article only applies to exiv2 v0.24
- For v0.26 and later , open the solution file msvc/exiv2.sln in ANY version of Visual Studio 2005/8/10/12/13/15
- For v0.25 and earlier, open the solution file msvc2005/exiv2.sln in Visual Studio 2005/8/10
- Users of Visual Studio 2003 should open msvc2003/exiv2.sln
- Because of template/stl/compiler incompatibility, exiv2 cannot be built using any version of Visual Studio prior to 2003
*Last revision on which this method was tested: r3288
*Operating Systems on which this method was tested: Windows7 Professional and Home-Premium 64bit
- Download
Microsoft Visual Studio Express 2012 - Download
win32svnand install it inC:\Program Files (x86)\Subversion - Open command prompt and type:
mkdir C:\gnu #Can be some other location too. cd C:\gnu svn checkout svn://dev.exiv2.org/svn/trunk #Download latest exiv2 source code
- Download
expat-2.1.0and extract it toC:\gnu - Download
zlib-1.2.7and extract it toC:\gnu
- Navigate to
C:\gnu\trunk\msvc2012and open the fileexiv2.slninMicrosoft Visual Studio Express 2012
- Press
OKfor all security warnings. #Believe me, exiv2's code is clean, we don't pose security threats :)
- Go to
Build->Configuration Manager.
Tick build for all projects. You will have 8 combinations[{Debug|DebugDLL|Release|ReleaseDLL}|{x64|Win32}]to choose from. Click close.
- Go to
Build->Build Solution. After the build is complete, you'll see in the output window:========== Build: 32 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
- All the built binaries are available in
C:\gnu\trunk\msvc2012\bin
- Install
cygwin (64-bit)orcygwin (32-bit) - While selecting packages, make sure to select make and dos2unix.


- Open the
cygwin terminal. Navigate toC:\gnu\trunk\testsand run tests:
Updated by Robin Mills about 5 years ago ยท 23 revisions