close Warning: Error with navigation contributor "AccountModule"

Changes between Version 19 and Version 20 of CompileWithVisualC


Ignore:
Timestamp:
Aug 30, 2015, 4:09:09 PM (3 years ago)
Author:
chris
Comment:

Update to Visual Studio 2012

Legend:

Unmodified
Added
Removed
Modified
  • CompileWithVisualC

    v19 v20  
    33You will need quite a bit of software to make this work, but all of it is available for free on the Internet.
    44
    5 == Microsoft Visual C++ 2010 Express Edition ==
     5== Microsoft Visual C++ 2012 Express Edition ==
    66
    7 Microsoft's Visual Studio is a commercial software development environment (IDE, compiler and tools) for Microsoft Windows. The Express Edition is available as a [http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express/download free download]. Microsoft requires that you register it (free) within 30 days to get a license key.
     7Microsoft's Visual Studio is a commercial software development environment (IDE, compiler and tools) for Microsoft Windows. The Express Edition is available as a [http://www.microsoft.com/en-gb/download/details.aspx?id=34673 free download]. Microsoft requires that you register it (free) within 30 days to get a license key.
    88
    99== Subversion ==
     
    3333You will need to compile OpenSSL using Visual C++.
    3434
    35  * Download the latest [http://www.openssl.org/source/ OpenSSL source code], e.g. `openssl-1.0.0d.tar.gz`
     35 * Download the latest [http://www.openssl.org/source/ OpenSSL source code], e.g. `openssl-1.0.2d.tar.gz`
    3636 * Right-click on the downloaded file and choose ''7-Zip > Open archive''
    37  * Inside the archive you will find a file called `openssl-1.0.0d.tar`, double-click on this to open it
    38  * Inside this archive you will find a folder called `openssl-1.0.0d`
     37 * Inside the archive you will find a file called `openssl-1.0.2d.tar`, double-click on this to open it
     38 * Inside this archive you will find a folder called `openssl-1.0.2d`
    3939 * Click on that folder and then click on the ''Extract'' button
    4040 * Extract it to the ''base directory''
     
    4343{{{
    4444cd <base-dir>\openssl-1.0.0d
    45 perl Configure VC-WIN32 --prefix=<box-base>\openssl
     45perl Configure VC-WIN32 no-asm --prefix=<base-directory>\openssl
    4646ms\do_ms
    4747nmake -f ms\ntdll.mak
     
    5151== Zlib ==
    5252
    53 You will need to download the [http://zlib.net/zlib125-dll.zip Zlib compiled DLL]. Extract it into `<box-base>\zlib`. You don't need to compile anything.
     53You will need to download the latest Zlib compiled DLL [http://zlib.net from the Zlib website]. Extract it into `<box-base>\zlib`. You don't need to compile anything.
    5454
    5555== PCRE ==
    5656
    57 PCRE (Perl Compatible Regular Expressions) is a regular expression support package that is needed for Box Backup file exclusion and inclusion directives.
     57PCRE (Perl Compatible Regular Expressions) is a regular expression support package that is needed for Box Backup file exclusion and inclusion directives. Since it only supports autotools out of the box, we will follow the [http://www.pcre.org/original/doc/html/NON-AUTOTOOLS-BUILD.txt user-contributed CMake build process] to compile it with Visual Studio instead:
    5858
     59 * Download the [http://www.cmake.org/download/ CMake] latest stable release, binary distribution, Windows (Win32 Installer).
     60 * Install it, and during installation, select the option to ''Add CMake to the system PATH for all users''.
     61 * Close any open command prompts (because they will not see the addition of CMake to the PATH).
    5962 * Download the latest PCRE release (in ZIP format) from the [ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ official website]
    60  * Right-click on the downloaded file and choose ''7-Zip > Extract files...''
    61  * Extract to the ''base directory''
    62  * Rename the extracted folder from `pcre-8.12` to just `pcre`
    63  * Open (or switch to) the Visual Studio Command Prompt
    64  * Change to the newly extracted directory: `cd <box-base>\pcre`
    65  * Check out some additional files from our Subversion server: `svn co https://www.boxbackup.org/svn/box/chris/win32/pcre/ .`
    66  * Copy the generic configuration files into the `build\vc2010` directory:
    67 {{{
    68 copy config.h.generic build\vc2010\config.h
    69 copy pcre.h.generic build\vc2010\pcre.h
    70 }}}
    71  * Open `<box-base>\pcre\build\vc2010\pcre.sln` as a Solution in Visual Studio
    72  * Press F7 to build the entire project and check that finishes building with no errors
     63 * Right-click on the downloaded file and choose ''Extract all...''
     64 * Extract to the ''base directory''. Open that directory and rename `pcre-<version>` to just `pcre`.
     65 * Run CMake (cmake-gui) from the Start Menu.
     66 * For the source code directory, browse to ''<<base-directory>>/pcre''.
     67 * For the binaries directory, browse to the same directory, click ''Make new folder'' and rename it to ''build'', creating this folder inside the `pcre` directory.
     68 * Click on the Configure button, choose a compiler (probably Visual Studio 11 2012)
     69 * You should see CMake detecting compiler features, and eventually it should output the line ''Configuring done'' and display a list of options in red.
     70 * Do not change any options, click the ''Generate'' button to build the makefile. It should output the line ''Generating done''.
     71 * Close the CMake GUI and open the ''PCRE.sln'' (Visual Studio Solution) file from the ''PCRE/build'' directory in Visual Studio.
     72 * Right-click on the ''pcre'' project (right-hand side of the Visual Studio window) and click ''Build''.
     73 * Check that the `Build` output line shows `0 failed`, and at least one `succeeded` or `up-to-date`.
    7374
    7475== Download Box Backup ==
     
    8889* boxbackup
    8990* openssl
    90 * openssl-1.0.0d
    9191* pcre
    9292* zlib
    9393
    94 == Configure Box Backup ==
    95 
    96 Open a command prompt, change to the ''base directory'' then ''boxbackup'', and run ''win32.bat'' to configure the sources. Otherwise, Visual C++ will complain about missing files whose names start with ''autogen'', and missing ''config.h''.
    97 
    9894== Compile Box Backup ==
    9995
    100 Open Visual C++. Choose "File/Open/Project", navigate to the base directory, then to ''boxbackup\infrastructure\msvc\2010'', and open the `boxbackup.sln` solution file in that directory.
     96Open Visual C++. Choose "File/Open/Project", navigate to the base directory, then to ''boxbackup\infrastructure\msvc\2012'', and open the `boxbackup.sln` solution file in that directory.
    10197
    10298Press '''F7''' to compile Box Backup. If the compilation is successful, ''boxbackup\Debug\bbackupd.exe'' will be created.