Changes between Version 3 and Version 4 of CompilingMapGuideVCExpress


Ignore:
Timestamp:
Mar 5, 2014, 3:16:38 AM (10 years ago)
Author:
jng
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CompilingMapGuideVCExpress

    v3 v4  
    1 = Building MapGuide trunk with Visual C++ Express Edition =
     1= Building MapGuide trunk with Visual Studio Express Edition =
    22
    33== Environment Setup ==
    44
    5  * [http://www.microsoft.com/express/Downloads/Download-2008.aspx Microsoft Visual C++ 2008 Express Edition]
    6  * [http://www.microsoft.com/downloads/details.aspx?FamilyID=e6e1c3df-a74f-4207-8586-711ebe331cdc&displaylang=en Windows SDK for Windows Server 2008 and .NET Framework 3.5]
     5 * [http://www.microsoft.com/en-us/download/details.aspx?id=34673 Microsoft Visual Studio 2012 Express Edition for Windows Desktop]
    76
    8 The Windows SDK provides us with the x64 native/cross compilers if you want to build MapGuide in 64-bit. This is not required if you are only building in 32-bit.
     7With the [http://trac.osgeo.org/mapguide/wiki/MapGuideRfc135 move to VS2012 as the defacto C++ compiler for windows], building MapGuide on Windows with free tools has never been easier.
    98
    10 == Setting up x64 compilers ==
     9Visual Studio 2012 Express for Windows Desktop now includes *both* x86 and x64 C++ compilers. Installation of additional Windows SDKs and other tools to get the x64 compiler is no longer required. However it is worth noting that the x64 compiler that comes with Visual Studio 2012 Express is a cross-compiler (ie. x86_amd64), and not a native one. This is not really important for building MapGuide, but something to note for when building FDO.
    1110
    12 If you don't intend to build 64-bit MapGuide you can skip this section.
     11Before building MapGuide manually via Visual Studio or via msbuild from the command-line, you must set up some environment variables.
     12
     13To set up the environment for 32-bit compilation, launch the Developer Command Prompt for VS2012 and run:
     14{{{
     15setenvironment.bat
     16}}}
     17
     18To set up the environment for 64-bit compilation, launch the Developer Command Prompt for VS2012 and run:
     19{{{
     20setenvironment64.bat
     21}}}
     22
     23Launching Visual Studio (wdexpress.exe) from that same command-line afterwards will carry the initialized environment variables into Visual Studio.
     24
     25All future references to Visual Studio in this page, assume it has been launched with these environment variables set.
    1326
    1427== Build Oem ==
     
    1629=== Manual ===
    1730
    18 Open Oem.sln in Visual C++ Express and build the solution using your configuration of choice. You will get an error about a particular project not loading (SQLiteGUI). This is because VS express doesn't support solutions with mixed project types. Fortunately, this project is not required and the error can be safely ignored.
     31Open Oem.sln in Visual Studio 2012 Express and build the solution using your configuration of choice.
    1932
    2033Then open the CS-Map OpenSource.sln and build that solution using the same configuration.
     
    2235=== Automated ===
    2336
    24 From the Visual Studio 2008 command prompt type the following from the Oem folder:
     37From the Developer Command Prompt for VS2012 type the following from the Oem folder:
    2538
    2639{{{
     
    4457=== Manual ===
    4558
    46 Open Server.sln in Visual C++ Express and build the solution using the same configuration used to build your Oem components.
     59Open Server.sln in Visual Studio 2012 Express and build the solution using the same configuration used to build your Oem components.
    4760
    4861=== Automated ===
    4962
    50 From the Visual Studio 2008 command prompt type the following from the MgDev\Server folder:
     63From the Developer Command Prompt for VS2012 type the following from the MgDev\Server folder:
    5164
    5265{{{
     
    5871=== Manual ===
    5972
    60 Open WebTier.sln in Visual C++ Express and build the solution using the same configuration used to build the Server solution.
     73Open WebTier.sln in Visual Studio 2012 Express and build the solution using the same configuration used to build the Server solution.
    6174
    6275=== Automated ===
    6376
    64 From the Visual Studio 2008 command prompt type the following from the MgDev\Web\src folder:
     77From the Developer Command Prompt for VS2012 type the following from the MgDev\Web\src folder:
    6578
    6679{{{
     
    8497}}}
    8598
    86 will copy all the compiled binaries and required files into a pre-defined output directory (default is `MgDev\Release`. You can specify a custom output directory by using the `-o` switch)
     99will copy all the compiled binaries and required files into a pre-defined output directory (default is `MgDev\Release` for 32-bit and `MgDev\Release64` for 64-bit. You can specify a custom output directory by using the `-o` switch)