= Building MapGuide trunk with Visual C++ Express Edition = == Environment Setup == * [http://www.microsoft.com/express/Downloads/Download-2008.aspx Microsoft Visual C++ 2008 Express Edition] * [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] The Windows SDK provides us with the x64 native/cross compilers if you want to build MapGuide in 64-bit. == Setting up x64 compilers == If you don't intend to build 64-bit MapGuide you can skip this section. == Build Oem == === Manual === 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. Then open the CS-Map OpenSource.sln and build that solution using the same configuration. === Automated === ... == A note about building CS-Map in 64-bit == When building the OpenSource.sln in a 32-bit system using the 64-bit cross compiler, you will get a post-build error. This is because the Compiler.vcproj project has a post-build step that runs the compiled executable to compile the Coordinate System dictionaries. The compiled executable being a 64-bit binary, will not run on a 32-bit system. The current CS-Map trunk has been patched to not run the post-build event for x64 if being cross-compiled on a 32-bit machine. Nevertheless, the Coordinate System Dictionaries will still have to be compiled at least once. To resolve this, build the OpenSource.sln (Compiler and Library) in 32-bit first, this will trigger the post-build event and compile your CS dictionaries. Then only build the Library.vcproj project in 64-bit. For subsequent builds, you only need to build the Library.vcproj project == Build Server == === Manual === Open Server.sln in Visual C++ Express and build the solution using the same configuration used to build your Oem components. === Automated === ... == Build WebTier == === Manual === Open WebTier.sln in Visual C++ Express and build the solution using the same configuration used to build the Server solution. === Automated === ...