Changes between Version 3 and Version 4 of BuildMacApp
- Timestamp:
- Apr 2, 2008, 3:55:05 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildMacApp
v3 v4 29 29 * 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. 30 30 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 CVStree 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.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 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. 32 32 33 33 At the time this is written, the BOINC Makefiles do not build 64-bit binaries. … … 39 39 Apple 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. 40 40 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".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`. 42 42 43 43 Be sure to select a custom install and get the OS 10.3.9 SDK if you want to support the powerpc-apple-darwin platform. … … 47 47 48 48 The 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 project50 * Use a generic Makefile with a custom shell script51 * Use a custom Makefile49 * Create an XCode project 50 * Use a generic Makefile with a custom shell script 51 * Use a custom Makefile 52 52 53 53 The basic requirements for building each platform are: 54 * Specify the architecture: ppc, i386 or x86_6455 * 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. 58 58 59 59 == Preparing To Build == … … 74 74 Build BOINC as follows: 75 75 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: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: 77 77 78 78 {{{ … … 121 121 If 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. 122 122 123 == Build Your Application ==123 == Build Your Application Using Cross-Development == 124 124 125 125 We 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: