Building on Windows Using Visual Studio Express 2012 » History » Revision 18
Revision 17 (Nehal J Wani, 14 Aug 2014 12:39) → Revision 18/23 (Nehal J Wani, 14 Aug 2014 16:05)
h1. Building exiv2 on Windows Using Microsoft Visual Studio Express 2012
# Download "@Microsoft @Microsoft Visual Studio Express 2012@":http://www.microsoft.com/en-in/download/details.aspx?id=34673 2012@ from http://www.microsoft.com/en-in/download/details.aspx?id=34673
# Download "@win32svn@":http://sourceforge.net/projects/win32svn/files/latest/download @win32svn@ from http://sourceforge.net/projects/win32svn/files/latest/download and install it in @C:\Program Files (x86)\Subversion@
# Open command prompt and type:
<pre>
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
</pre>
# Download "@expat-2.1.0@":http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz/download @expat-2.1.0@ from expat-http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz/download and extract it to @C:\gnu@
# Download "@zlib-1.2.7@":http://sourceforge.net/projects/libpng/files/zlib/1.2.7/zlib-1.2.7.tar.gz/download @zlib-1.2.7@ from http://sourceforge.net/projects/libpng/files/zlib/1.2.7/zlib-1.2.7.tar.gz/download and extract it to @C:\gnu@
!Windows_BuildDir.png!
# Navigate to @C:\gnu\trunk\msvc2012@ and open the file @exiv2.sln@ in @Microsoft Visual Studio Express 2012@
!exiv2.sln.png!
# Press @OK@ for all security warnings. #Believe me, exiv2's code is clean, we don't pose security threats :)
!VisualStudioSecurityWarning.png!
# Go to @Build->Configuration Manager@.
!VisualStudio2012_Build.png!
Tick build for all projects. You will have 8 combinations @[{Debug|DebugDLL|Release|ReleaseDLL}|{x64|Win32}]@ to choose from. Click close.
!VisualStudio2012_BuildConfig.png!
# Go to @Build->Build Solution@. After the build is complete, you'll see in the output window:
<pre>========== Build: 32 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========</pre>
# All the built binaries are available in @C:\gnu\trunk\msvc2012\bin@
!VisualStudio2012FinalBuild.png!
# Install "@cygwin (64-bit)@":https://cygwin.com/setup-x86_64.exe cygwin from https://cygwin.com/setup-x86_64.exe (64-bit) or "@cygwin (32-bit)@":https://cygwin.com/setup-x86.exe https://cygwin.com/setup-x86.exe (32-bit)
# While selecting packages, make sure to select make and dos2unix.
!Cygwin_package_make.png!
!Cygwin_package_dos2unix.png!
# Open the @cygwin terminal@. Navigate to @C:\gnu\trunk\tests@ and run tests:
!CygwinExiv2Tests.png!
# Download "@Microsoft @Microsoft Visual Studio Express 2012@":http://www.microsoft.com/en-in/download/details.aspx?id=34673 2012@ from http://www.microsoft.com/en-in/download/details.aspx?id=34673
# Download "@win32svn@":http://sourceforge.net/projects/win32svn/files/latest/download @win32svn@ from http://sourceforge.net/projects/win32svn/files/latest/download and install it in @C:\Program Files (x86)\Subversion@
# Open command prompt and type:
<pre>
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
</pre>
# Download "@expat-2.1.0@":http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz/download @expat-2.1.0@ from expat-http://sourceforge.net/projects/expat/files/expat/2.1.0/expat-2.1.0.tar.gz/download and extract it to @C:\gnu@
# Download "@zlib-1.2.7@":http://sourceforge.net/projects/libpng/files/zlib/1.2.7/zlib-1.2.7.tar.gz/download @zlib-1.2.7@ from http://sourceforge.net/projects/libpng/files/zlib/1.2.7/zlib-1.2.7.tar.gz/download and extract it to @C:\gnu@
!Windows_BuildDir.png!
# Navigate to @C:\gnu\trunk\msvc2012@ and open the file @exiv2.sln@ in @Microsoft Visual Studio Express 2012@
!exiv2.sln.png!
# Press @OK@ for all security warnings. #Believe me, exiv2's code is clean, we don't pose security threats :)
!VisualStudioSecurityWarning.png!
# Go to @Build->Configuration Manager@.
!VisualStudio2012_Build.png!
Tick build for all projects. You will have 8 combinations @[{Debug|DebugDLL|Release|ReleaseDLL}|{x64|Win32}]@ to choose from. Click close.
!VisualStudio2012_BuildConfig.png!
# Go to @Build->Build Solution@. After the build is complete, you'll see in the output window:
<pre>========== Build: 32 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========</pre>
# All the built binaries are available in @C:\gnu\trunk\msvc2012\bin@
!VisualStudio2012FinalBuild.png!
# Install "@cygwin (64-bit)@":https://cygwin.com/setup-x86_64.exe cygwin from https://cygwin.com/setup-x86_64.exe (64-bit) or "@cygwin (32-bit)@":https://cygwin.com/setup-x86.exe https://cygwin.com/setup-x86.exe (32-bit)
# While selecting packages, make sure to select make and dos2unix.
!Cygwin_package_make.png!
!Cygwin_package_dos2unix.png!
# Open the @cygwin terminal@. Navigate to @C:\gnu\trunk\tests@ and run tests:
!CygwinExiv2Tests.png!