1 How to Build stdcx 4.1.3 for Tuscany SDO 2 3 stdcxx is an implementation of the C++ Standard Library provided by Apache. 4 5 The website is at http://incubator.apache.org/stdcxx/. 6 7 At the time of writing, the current release is 4.1.3 and is available as 8 source distribution only. This document explains how to build stdcxx for 9 Windows XP and Red Hat Enterprise Linux 3 in the way required by the SDO build 10 process. 11 12 stdcxx on Windows XP 13 -------------------- 14 15 stdcxx is supported only when used with Microsoft Visual Studio C++ V7.1 16 17 The release is distributed as a gzipped tar file, called 18 stdcxx-incubating-4.1.3.tar.gz. Extract the contents of this file into a 19 convenient directory. For this example let's assume it is 20 C:\Tuscany\stdcxx-4.1.3 21 22 Define the STDCXX_HOME environment variable to refer to this directory. The 23 Tuscany SDO build system uses this environment variable to locate stdcxx. 24 25 Create two directories to contain the results of building stdcxx. The first is 26 for the debug enabled version and must be 27 28 <STDCXX_HOME>\Debug 29 30 The second is for the release (ie optimised) version and must be 31 32 <STDCXX_HOME>\Release 33 34 Launch an MSVC++ 7.1 command window. In the command window, set the default 35 directory to <STDCXX_HOME> where there is a file called generate.bat. Create 36 the project definitions that MSVC++ 7.1 will need in order to build stdcxx by 37 running generate.bat using the following command: 38 39 $ .\generate.bat /BUILDDIR:<STDCXX_HOME>\Debug /CONFIG:VC71 40 41 It is necessary to provide the full, absolute path to the build directory - it 42 is not sufficient to provide a relative path. (This restriction will be fixed 43 in a future release.) 44 45 Repeat this operation for the release build, via the command: 46 47 $ .\generate.bat /BUILDDIR:<STDCXX_HOME>\Release /CONFIG:VC71 48 49 Still using the MSVC++ 7.1 command window, set the default directory to one of 50 the two build directories eg 51 52 $ cd <STDCXX_HOME>\Debug 53 54 Then launch the developer studio via 55 56 $ devenv VC71.sln 57 58 Select the configuration to build. For the Debug version of SDO this will be 59 "15d Debug Thread-safe Dll". Then select "Build Solution". The build will take 60 a while to complete and runs a test suite when it is finished. The test suite 61 is extensive and produces a scattering of errors, however the library build 62 itself is fine. 63 64 Repeat this process for the release version, setting the default directory to 65 66 $ cd <STDCXX_HOME>\Release 67 68 and choosing "12d Optimized Thread-safe Dll" as the build configuration. 69 70 This provides Tuscany SDO with the versions of stdcxx that it needs for both 71 Release and Debug builds. 72 73 stdcxx on Linux 74 --------------- 75 76 The release is distributed as a gzipped tar file, called 77 stdcxx-incubating-4.1.3.tar.gz. Extract the contents of this file into a 78 convenient directory. For this example, let's assume it is 79 /home/Tuscany/stdcxx-4.1.3 80 81 Define the STDCXX_HOME environment variable to refer to this directory. The 82 Tuscany SDO build system uses this environment variable to locate stdcxx. 83 84 Change directory to STDCXX_HOME. Then build a debug version of the stdcxx 85 library using the following command: 86 87 $ gmake BUILDDIR=$STDCXX_HOME/Debug BUILDTYPE=15d CONFIG=gcc.config 88 89 This will create a sub-directory of STDCXX_HOME called Debug and place the 90 build products below that. 91 92 For a release version the command is: 93 94 $ gmake BUILDDIR=$STDCXX_HOME/Release BUILDTYPE=12d CONFIG=gcc.config
Attached FilesTo refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
You are not allowed to attach a file to this page.