Building on Windows Using Visual Studio Express 2012 » History » Version 21
Nehal J Wani, 14 Aug 2014 16:08
1 | 12 | Nehal J Wani | h1. Building exiv2 on Windows Using Microsoft Visual Studio Express 2012 |
---|---|---|---|
2 | 15 | Nehal J Wani | |
3 | 20 | Nehal J Wani | *Last revision on which this method was tested: r3288 |
4 | 21 | Nehal J Wani | *Operating Systems on which this method was tested: Windows7 Professional and Home-Premium 64bit |
5 | 19 | Nehal J Wani | |
6 | 18 | Nehal J Wani | # Download "@Microsoft Visual Studio Express 2012@":http://www.microsoft.com/en-in/download/details.aspx?id=34673 |
7 | # Download "@win32svn@":http://sourceforge.net/projects/win32svn/files/latest/download and install it in @C:\Program Files (x86)\Subversion@ |
||
8 | 2 | Nehal J Wani | # Open command prompt and type: |
9 | <pre> |
||
10 | mkdir C:\gnu #Can be some other location too. |
||
11 | cd C:\gnu |
||
12 | svn checkout svn://dev.exiv2.org/svn/trunk #Download latest exiv2 source code |
||
13 | </pre> |
||
14 | 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@ |
15 | # 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@ |
||
16 | 3 | Nehal J Wani | !Windows_BuildDir.png! |
17 | 4 | Nehal J Wani | # Navigate to @C:\gnu\trunk\msvc2012@ and open the file @exiv2.sln@ in @Microsoft Visual Studio Express 2012@ |
18 | 1 | Nehal J Wani | !exiv2.sln.png! |
19 | 2 | Nehal J Wani | # Press @OK@ for all security warnings. #Believe me, exiv2's code is clean, we don't pose security threats :) |
20 | 9 | Nehal J Wani | !VisualStudioSecurityWarning.png! |
21 | 7 | Nehal J Wani | # Go to @Build->Configuration Manager@. |
22 | 2 | Nehal J Wani | !VisualStudio2012_Build.png! |
23 | 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. |
24 | 4 | Nehal J Wani | !VisualStudio2012_BuildConfig.png! |
25 | 2 | Nehal J Wani | # Go to @Build->Build Solution@. After the build is complete, you'll see in the output window: |
26 | <pre>========== Build: 32 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========</pre> |
||
27 | 13 | Nehal J Wani | # All the built binaries are available in @C:\gnu\trunk\msvc2012\bin@ |
28 | !VisualStudio2012FinalBuild.png! |
||
29 | 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 |
30 | 9 | Nehal J Wani | # While selecting packages, make sure to select make and dos2unix. |
31 | 10 | Nehal J Wani | !Cygwin_package_make.png! |
32 | !Cygwin_package_dos2unix.png! |
||
33 | 11 | Nehal J Wani | # Open the @cygwin terminal@. Navigate to @C:\gnu\trunk\tests@ and run tests: |
34 | !CygwinExiv2Tests.png! |