From: <pat...@us...> - 2007-06-11 16:00:09
|
Revision: 578 http://svn.sourceforge.net/xml-cppdom/?rev=578&view=rev Author: patrickh Date: 2007-06-11 09:00:10 -0700 (Mon, 11 Jun 2007) Log Message: ----------- Updated the build instructions to reflect the current state of things. In particular, I have added information about building universal binaries on Mac OS X--mainly so that I don't forget how to do it. Modified Paths: -------------- trunk/README Modified: trunk/README =================================================================== --- trunk/README 2007-06-11 15:49:41 UTC (rev 577) +++ trunk/README 2007-06-11 16:00:10 UTC (rev 578) @@ -7,25 +7,6 @@ - CppUnit (optional for test suite): See cppunit.sf.net - (optional) SConsAddons - Addon library for the build system. https://realityforge.vrsource.org/SconsAddons -Building on Windows -=================== -Open the file vc7\cppdom.sln using Visual Studio (version 2002 or newer -is required). Build the desired targets (usually "Debug - DLL" and -"Release - DLL"). The compiled files will be in the 'lib' subdirectory of -the source tree. - -Installation must be performed by hand. The following commands show a -possible way to install everything correctly: - - mkdir C:\cppdom\include\cppdom - mkdir C:\cppdom\lib - copy cppdom\*.h C:\cppdom\include\cppdom - copy lib\*.lib C:\cppdom\lib - copy lib\*.dll C:\cppdom\lib - -NOTE: Compiling the OPTIONAL Spirit-based parser (see cppdom\SpiritParser.cpp) -is not currently supported by the Visual Studio solution vc7\cppdom.sln. - Building ======== CppDom uses the scons build system. You can download scons from www.scons.org. @@ -48,3 +29,17 @@ type 'scons' to build cppdom shared lib. type 'scons install' to install on the system type 'scons install prefix=$HOME/software' to install in your account + +Universal Binaries +================== + +To build the CppDOM libraries as univeral binaries (Mac OS X only), use the +following command: + + scons darwin_universal=yes var_arch=universal var_type=optimized + +This will default to using the Mac OS X 10.4 universal SDK in +/Developer/SDKs/MacOSX10.4.u.sdk. To override this, add the following +option to the above command line: + + darwin_sdk=/path/to/platform/sdk This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pat...@us...> - 2007-06-28 22:05:07
|
Revision: 612 http://svn.sourceforge.net/xml-cppdom/?rev=612&view=rev Author: patrickh Date: 2007-06-28 15:05:08 -0700 (Thu, 28 Jun 2007) Log Message: ----------- Updated the instructions for building on Mac OS X. Modified Paths: -------------- trunk/README Modified: trunk/README =================================================================== --- trunk/README 2007-06-28 22:04:45 UTC (rev 611) +++ trunk/README 2007-06-28 22:05:08 UTC (rev 612) @@ -30,16 +30,25 @@ type 'scons install' to install on the system type 'scons install prefix=$HOME/software' to install in your account +Mac OS X +======== + +On Mac OS X, the build may auto-detect that it can build multiple +architectures (not necessarily universal binaries), but this case is not +currently handled well. SCons will complain that there are multiple ways to +build the same target and exit with an error. To work around this, specify +the desired architecture explicitly (pass var_arch=ppc, var_arch=ia32, or +var_arch=ppc64 on the scons command line) or build a universal binary (see +below). + Universal Binaries ================== To build the CppDOM libraries as univeral binaries (Mac OS X only), use the following command: - scons darwin_universal=yes var_arch=universal var_type=optimized + scons darwin_universal=yes var_arch=universal var_type=optimized \ + darwin_sdk=/Developer/SDKs/MacOSX10.4u.sdk -This will default to using the Mac OS X 10.4 universal SDK in -/Developer/SDKs/MacOSX10.4.u.sdk. To override this, add the following -option to the above command line: - - darwin_sdk=/path/to/platform/sdk +An alternate platform SDK can be used by using the appropriate value with +the darwin_sdk command line arcument. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <pat...@us...> - 2007-08-01 15:03:52
|
Revision: 621 http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=621&view=rev Author: patrickh Date: 2007-08-01 08:03:55 -0700 (Wed, 01 Aug 2007) Log Message: ----------- Added information about the joys of building on Windows. Modified Paths: -------------- trunk/README Modified: trunk/README =================================================================== --- trunk/README 2007-07-31 22:22:18 UTC (rev 620) +++ trunk/README 2007-08-01 15:03:55 UTC (rev 621) @@ -30,6 +30,45 @@ type 'scons install' to install on the system type 'scons install prefix=$HOME/software' to install in your account +Windows +======= + +CppDOM can be compiled with Visual C++ 6.0 and newer. However, SCons tries to +be smart and pick the version of Visual C++ that it thinks you should use +(always--or almost always--the newest version). To override this, use the +MSVS_VERSION command line option. For example, to force compilation with +Visual C++ 7.0 (from Visual Studio .NET 2002), run the following: + + scons MSVS_VERSION=7.0 + +Let's say we want to use Visual C++ 8.0 (from Visual Studio 8) instead. In +that case, run the following: + + scons MSVS_VERSION=8.0 + +If there is only one version of Visual Studio installed, SCons will find it, +and using the MSVS_VERSION argument is unnecessary. + +64-bit Windows +============== + +To build a 64-bit version of CppDOM on Windows, Visual Studio 2005 (also +known as Visual Studio 8) must be used, and it must be run on a 64-bit +Windows installation. The trick, however, is that the 32-bit version of +Python must be used. Otherwise, SCons will not find the Visual Studio +installation because it looks in the wrong place in the Registry and in +"C:\Program Files\Microsoft Visual Studio 8" instead of in +"C:\Program Files (x86)\Microsoft Visual Studio 8". + +So, to build both the 32-bit and the 64-bit versions of CppDOM, run the +following: + + scons MSVS_VERSION=8.0 + +To build only the 64-bit version, run the following: + + scons MSVS_VERSION=8.0 var_arch=x64 + Mac OS X ======== This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |