Changes between Version 3 and Version 4 of BuildMacApp


Ignore:
Timestamp:
Apr 2, 2008, 3:55:05 AM (16 years ago)
Author:
charlief
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildMacApp

    v3 v4  
    2929 * Use a single development system running OS 10.5.x and cross-compile for the various platforms.  The remainder of this document describes that process.
    3030
    31 You will also need to build the BOINC libraries on each platform and any other libraries your application needs.  You can use the Makefiles supplied in the BOINC CVS tree to build the BOINC libraries with this approach, or build them as Universal Binaries using the BOINC XCode project, as described later in this document.
     31You will also need to build the BOINC libraries on each platform and any other libraries your application needs.  You can use the Makefiles supplied in the BOINC Subversion tree to build the BOINC libraries with this approach, or build them as Universal Binaries using the BOINC XCode project, as described later in this document.
    3232
    3333At the time this is written, the BOINC Makefiles do not build 64-bit binaries.
     
    3939Apple provides Software Developer Kits (SDKs) for OS 10.3.9, OS 10.4 and OS 10.5.  These include all the header files and stub libraries appropriate to the corresponding versions of OS X.
    4040
    41 You get these tools, including the GCC compilers and system library header files, by installing the XCode Tools package.  I recommend running OS 10.5.x and installing XCode Tools 3.0 or later. If you have the OS 10.5 installation DVD for your system, you can install XCode Tools at the time you install the OS, or you can install it later by opening the file "Optional Installs/XCode Tools/XCodeTools.mpkg".
     41You get these tools, including the GCC compilers and system library header files, by installing the XCode Tools package.  I recommend running OS 10.5.x and installing XCode Tools 3.0 or later. If you have the OS 10.5 installation DVD for your system, you can install XCode Tools at the time you install the OS, or you can install it later by opening the file `Optional Installs/XCode Tools/XCodeTools.mpkg`.
    4242
    4343Be sure to select a custom install and get the OS 10.3.9 SDK if you want to support the powerpc-apple-darwin platform.
     
    4747
    4848The example_app found in boinc_samples has examples of 3 different ways to build the application for all 3 platforms using cross-development:
    49 * Create an XCode project
    50 * Use a generic Makefile with a custom shell script
    51 * Use a custom Makefile
     49 * Create an XCode project
     50 * Use a generic Makefile with a custom shell script
     51 * Use a custom Makefile
    5252
    5353The basic requirements for building each platform are:
    54 * Specify the architecture: ppc, i386 or x86_64
    55 * Specify the compiler to use if it is GCC-3.3.
    56 * Specify the appropriate SDK for the minimum target OS X version.
    57 * Specify the Mac OSX Deployment Target, which is the minimum target OS X version.  This tells the compiler to reject any attempts to use APIs not available in that version of OS X.
     54 * Specify the architecture: ppc, i386 or x86_64
     55 * Specify the compiler to use if it is GCC-3.3.
     56 * Specify the appropriate SDK for the minimum target OS X version.
     57 * Specify the Mac OSX Deployment Target, which is the minimum target OS X version.  This tells the compiler to reject any attempts to use APIs not available in that version of OS X.
    5858
    5959== Preparing To Build ==
     
    7474Build BOINC as follows:
    7575
    76 BOINC itself is built using the '''boinc.xcodeproj''' file.  You can either build directly in XCode (more information below) or run the '''BuildMacBOINC.sh''' script:
     76BOINC itself is built using the `boinc.xcodeproj` file.  You can either build directly in XCode (more information below) or run the `BuildMacBOINC.sh` script:
    7777
    7878{{{
     
    121121If you are building a third-party library (such as JPEG), you will need to take the steps listed above in the section Cross-Platform Development.  See the files `boinc_samples/example_app/Makefile_mac2` and `boinc_samples/example_app/MakeMacExample.sh` for examples of how to accomplish this.
    122122
    123 == Build Your Application ==
     123== Build Your Application Using Cross-Development ==
    124124
    125125We will use the example_app to illustrate the 3 methods of cross-compiling.   Download this sample project from Subversion, and put it in the same BOINC_dev folder.  To do this, type the following in Terminal: