Changes between Version 31 and Version 32 of MacBuild


Ignore:
Timestamp:
Jan 29, 2008, 10:26:31 AM (16 years ago)
Author:
Nicolas
Comment:

Reapply charlief's changes after removing spam

Legend:

Unmodified
Added
Removed
Modified
  • MacBuild

    v31 v32  
    11= Building BOINC Clients and Applications on Macintosh OS X =
    2 '''Last updated 1/10/08'''
     2'''Last updated 1/29/08'''
    33
    44This 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.
     
    2424All 64-bit BOINC software for Intel Macs must be built using GCC 4.0 and MacOS10.5 SDK. 
    2525
    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 library must 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.
    2727
    2828Be sure to follow the directions in this document to ensure that these requirements are met.
     
    4848If 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:
    4949
    50   1. Use the BOINC autoconf / automake scripts to build these libraries and the jpeg and curl 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.
     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.
    5151
    5252 (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.)
     
    6464== Building BOINC Manager with embedded Core Client plus libraries libboinc.a and libboinc_graphics_api.a ==
    6565
    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):
     66BOINC 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
     68wxMac-2.8.7 (needed only if you are building the BOINC Manager):
    6969
    7070[http://www.wxwidgets.org]
    7171
    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.17.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
     76curl-7.18.0:
    7777
    7878[http://curl.haxx.se]
    7979
    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
     82c-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]
    8187
    8288jpeg-6b (needed only if you are building the BOINC libboinc_graphics_api.a library):
     
    8692[ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz]
    8793
    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.17.1 require autoconf 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.''
    8995
    9096Upgrades for autoconf and automake are available from www.gnu.org:
     
    98104As 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.
    99105
    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.
     106These 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.
    101107
    102108Building 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.
     
    105111   2. Put the following 3 directories inside the BOINC_dev folder (omit any you don't need):
    106112{{{
    107 curl-7.17.1
     113c-ares-1.5.1
     114curl-7.18.0
    108115jpeg-6b
    109 wxMac-2.6.3
     116wxMac-2.8.7
    110117}}}
    111118      Important: do not change the names of any of these 3 directories.
     
    118125
    119126The 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 curl, jpeg and wxMac libraries as follows:
     127   4. Run the script to build the c-ares, curl, jpeg and wxMac libraries as follows:
    121128{{{
    122129cd {path}/BOINC_dev/boinc/mac_build/
     
    125132      If you don't wish to force a full rebuild of everything, omit the -clean argument.
    126133
    127       Note: this script builds 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 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.
    128135   5. Build BOINC as follows:
    129136