Project

General

Profile

Building on Windows Using Visual Studio Express 2012 » History » Version 22

Robin Mills, 18 Mar 2016 07:45

1 12 Nehal J Wani
h1. Building exiv2 on Windows Using Microsoft Visual Studio Express 2012
2 15 Nehal J Wani
3 22 Robin Mills
*Caution:*
4
5
# This article *_only*_ applies to exiv2 _*v0.24*_
6
# For _*v0.25 and later*_ , open the solution file msvc2005/exiv2.sln in _*ANY*_ version of Visual Studio 2005/8/10/12/13/15
7
# For _*v0.23 and earlier*_, open the solution file msvc2005/exiv2.sln in Visual Studio 2005/8/10
8
# Users of _*Visual Studio 2003*_ should open msvc2003/exiv2.sln
9
# Because of template/stl/compiler incompatibility, exiv2 cannot be built using any version of Visual Studio prior to 2003
10
11 20 Nehal J Wani
*Last revision on which this method was tested: r3288
12 21 Nehal J Wani
*Operating Systems on which this method was tested: Windows7 Professional and Home-Premium 64bit
13 19 Nehal J Wani
14 18 Nehal J Wani
# Download "@Microsoft Visual Studio Express 2012@":http://www.microsoft.com/en-in/download/details.aspx?id=34673
15
# Download "@win32svn@":http://sourceforge.net/projects/win32svn/files/latest/download and install it in @C:\Program Files (x86)\Subversion@
16 2 Nehal J Wani
# Open command prompt and type: 
17
<pre>
18
mkdir C:\gnu #Can be some other location too.
19
cd C:\gnu
20
svn checkout svn://dev.exiv2.org/svn/trunk #Download latest exiv2 source code
21
</pre>
22 18 Nehal J Wani
# Download "@expat-2.1.0@":http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz/download and extract it to @C:\gnu@
23
# Download "@zlib-1.2.7@":http://sourceforge.net/projects/libpng/files/zlib/1.2.7/zlib-1.2.7.tar.gz/download and extract it to @C:\gnu@ 
24 3 Nehal J Wani
!Windows_BuildDir.png!
25 4 Nehal J Wani
# Navigate to @C:\gnu\trunk\msvc2012@ and open the file @exiv2.sln@ in @Microsoft Visual Studio Express 2012@
26 1 Nehal J Wani
!exiv2.sln.png!
27 2 Nehal J Wani
# Press @OK@ for all security warnings. #Believe me, exiv2's code is clean, we don't pose security threats :)
28 9 Nehal J Wani
!VisualStudioSecurityWarning.png!
29 7 Nehal J Wani
# Go to @Build->Configuration Manager@.
30 2 Nehal J Wani
!VisualStudio2012_Build.png!
31 7 Nehal J Wani
Tick build for all projects. You will have 8 combinations @[{Debug|DebugDLL|Release|ReleaseDLL}|{x64|Win32}]@ to choose from. Click close.
32 4 Nehal J Wani
!VisualStudio2012_BuildConfig.png!
33 2 Nehal J Wani
# Go to @Build->Build Solution@. After the build is complete, you'll see in the output window: 
34
<pre>========== Build: 32 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========</pre>
35 13 Nehal J Wani
# All the built binaries are available in @C:\gnu\trunk\msvc2012\bin@
36
!VisualStudio2012FinalBuild.png!
37 18 Nehal J Wani
# Install "@cygwin (64-bit)@":https://cygwin.com/setup-x86_64.exe or "@cygwin (32-bit)@":https://cygwin.com/setup-x86.exe
38 9 Nehal J Wani
# While selecting packages, make sure to select make and dos2unix.
39 10 Nehal J Wani
!Cygwin_package_make.png!
40
!Cygwin_package_dos2unix.png!
41 11 Nehal J Wani
# Open the @cygwin terminal@. Navigate to @C:\gnu\trunk\tests@ and run tests:
42
!CygwinExiv2Tests.png!