Changes between Version 31 and Version 32 of MacBuild
- Timestamp:
- Jan 29, 2008, 10:26:31 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MacBuild
v31 v32 1 1 = Building BOINC Clients and Applications on Macintosh OS X = 2 '''Last updated 1/ 10/08'''2 '''Last updated 1/29/08''' 3 3 4 4 This document applies to BOINC version 6.1.0 and later. It has instructions for building BOINC for Macintosh OS X, plus information for building science project applications to run under BOINC on Macintosh OS X. … … 24 24 All 64-bit BOINC software for Intel Macs must be built using GCC 4.0 and MacOS10.5 SDK. 25 25 26 '''The above requirements apply not only BOINC itself, but also the !WxWidgets, JPEG and cURL libraries, as well as all project applications.''' The BOINC Client does not use !WxWidgets or JPEG, so only the cURL librarymust be built for the x86_64 architecture.26 '''The above requirements apply not only BOINC itself, but also the !WxWidgets, JPEG, c-ares and cURL libraries, as well as all project applications.''' The BOINC Client does not use !WxWidgets or JPEG, so only the c-ares and cURL libraries must be built for the x86_64 architecture. 27 27 28 28 Be sure to follow the directions in this document to ensure that these requirements are met. … … 48 48 If you are building a project application to be run by BOINC, you only need to build the BOINC libraries `libboinc_api.a`, `libboinc.a`, and (if you want graphics) either `libboinc_graphics_api.` or `libboinc_graphics2.a`. (`libboinc_graphics2.a` is used for version 6 graphics, which is the method recommended for all applications.) There are two ways to do this: 49 49 50 1. Use the BOINC autoconf / automake scripts to build these libraries and the jpeg and curllibraries on which they depend. You must do all of this twice: once on a PowerPC Mac running OS 10.3.x (do '''not''' use OS 10.4), and once on an Intel Mac running OS 10.4.x.50 1. Use the BOINC autoconf / automake scripts to build these libraries and any libraries on which they depend. You must do all of this twice: once on a PowerPC Mac running OS 10.3.x (do '''not''' use OS 10.4), and once on an Intel Mac running OS 10.4.x. 51 51 52 52 (If you wish, you can combine separate Intel and PowerPC builds in a single Universal Binary mach-O file using the command-line utility lipo. For details on lipo, type 'man lipo' in Terminal; it is available on all Macs running OS10.4.x.) … … 64 64 == Building BOINC Manager with embedded Core Client plus libraries libboinc.a and libboinc_graphics_api.a == 65 65 66 BOINC depends on three third-party libraries: wxMac-2.6.3, curl-7.17.1, and jpeg-6b. (We have reverted to using wxMac-2.6.3 because we have found several bugs in later versions of wxMac.)You can obtain these from the following URLs:67 68 wxMac-2. 6.3(needed only if you are building the BOINC Manager):66 BOINC depends on four third-party libraries: wxMac-2.8.7, c-ares-1.5.1, curl-7.18.0, and jpeg-6b. You can obtain these from the following URLs: 67 68 wxMac-2.8.7 (needed only if you are building the BOINC Manager): 69 69 70 70 [http://www.wxwidgets.org] 71 71 72 [http://prdownloads.sourceforge.net/wxwindows/wxMac-2. 6.3.tar.gz]73 74 [http://downloads.sourceforge.net/wxwindows/wxMac-2. 6.3.tar.bz2]75 76 curl-7.1 7.1:72 [http://prdownloads.sourceforge.net/wxwindows/wxMac-2.8.7.tar.gz] 73 74 [http://downloads.sourceforge.net/wxwindows/wxMac-2.8.7.tar.bz2] 75 76 curl-7.18.0: 77 77 78 78 [http://curl.haxx.se] 79 79 80 [http://curl.haxx.se/download/curl-7.17.1.tar.gz] 80 [http://curl.haxx.se/download/curl-7.18.0.tar.gz] 81 82 c-ares-1.5.1 (used by curl): 83 84 [http://daniel.haxx.se/projects/c-ares/] 85 86 [http://daniel.haxx.se/projects/c-ares/c-ares-1.5.1.tar.gz] 81 87 82 88 jpeg-6b (needed only if you are building the BOINC libboinc_graphics_api.a library): … … 86 92 [ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz] 87 93 88 ''XCode 2.4.1 installs autoconf 2.59 and automake 1.6.3. XCode 3.0 installs autoconf 2.61 and automake 1.10. To determine the version number, type 'autoconf --version' or 'automake --version'. Building curl-7.1 7.1 requireautoconf 2.59 and automake 1.9.3 or later.''94 ''XCode 2.4.1 installs autoconf 2.59 and automake 1.6.3. XCode 3.0 installs autoconf 2.61 and automake 1.10. To determine the version number, type 'autoconf --version' or 'automake --version'. Building curl-7.18.0 requires autoconf 2.59 and automake 1.9.3 or later.'' 89 95 90 96 Upgrades for autoconf and automake are available from www.gnu.org: … … 98 104 As stated above, all BOINC software for Power PC Macs must be built using MacOS10.3.9 SDK and (for libraries) GCC 3.3 to assure backward compatibility with OS 10.3. All 32-bit BOINC software for Intel Macs must be built using GCC 4.0 and MacOS10.4.u SDK to allow cross-compiling. And all 64-bit BOINC software for Intel Macs must be built using GCC 4.0 and MacOS10.5 SDK. 99 105 100 These are not done by either the XCode projects which come with wxMac-2. 6.3, nor the !AutoMake scripts supplied with wxMac-2.6.3, curl-7.17.1, or jpeg-6b. So be sure to use our special scripts to build these packages.106 These are not done by either the XCode projects which come with wxMac-2.8.7, nor the !AutoMake scripts supplied with wxMac-2.8.7, c-ares-1.5.1, curl-7.18.0, or jpeg-6b. So be sure to use our special scripts to build these packages. 101 107 102 108 Building BOINC and the library packages on which it depends requires OS 10.4.4 and XCode 2.4.1 (or greater). It may be possible to use XCode 2.3 and/or versions of OS X earlier than 10.4.4, but this has not been tested by the authors. … … 105 111 2. Put the following 3 directories inside the BOINC_dev folder (omit any you don't need): 106 112 {{{ 107 curl-7.17.1 113 c-ares-1.5.1 114 curl-7.18.0 108 115 jpeg-6b 109 wxMac-2. 6.3116 wxMac-2.8.7 110 117 }}} 111 118 Important: do not change the names of any of these 3 directories. … … 118 125 119 126 The command above retrieves the source code from the HEAD or development branch of the SVN repository. See more information on [SourceCode getting the BOINC source code]. 120 4. Run the script to build the c url, jpeg and wxMac libraries as follows:127 4. Run the script to build the c-ares, curl, jpeg and wxMac libraries as follows: 121 128 {{{ 122 129 cd {path}/BOINC_dev/boinc/mac_build/ … … 125 132 If you don't wish to force a full rebuild of everything, omit the -clean argument. 126 133 127 Note: this script builds c url first, followed by jpeg and finally wxMac. If you haven't downloaded wxMac because you aren't building the BOINC Manager, the script will build curl and jpeg. Likewise, if you downloaded only curl because you need neither graphics nor the BOINC Manager, the script will build curl before quitting.134 Note: this script builds c-ares and curl first, followed by jpeg and finally wxMac. If you haven't downloaded wxMac because you aren't building the BOINC Manager, the script will build c-ares, curl and jpeg. Likewise, if you downloaded only c-ares and curl because you need neither graphics nor the BOINC Manager, the script will build c-ares and curl before quitting. 128 135 5. Build BOINC as follows: 129 136