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