home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / Getting Started / MPW Development / Installation Guide < prev   
Encoding:
Text File  |  1996-04-29  |  10.2 KB  |  134 lines  |  [TEXT/ttxt]

  1. OpenDoc
  2. Development
  3. Framework
  4.                                                                                                                                                                                     
  5. Installation Guide for MPW
  6. ODF Release 1                                                                                                                                                             
  7.  
  8. This document provides installation instructions for installing ODF for use with MPW based compilers.
  9.  
  10.  
  11. Table of Contents
  12. -------------------------
  13. • Configuring your MPW Environment
  14. • Installing ODF
  15. • Installing Cyberdog Support
  16.  
  17.  
  18. Configuring Your MPW Environment
  19.  
  20. Before installing ODF, you must make sure that your MPW environment is configured for compiling ODF. To do that, you must do the following:
  21.  
  22.    1) Install MPW from ETO 20.
  23.    2) Install the MPW Additions.
  24.    3) Install the OpenDoc headers, libraries, and build support for MPW.
  25.  
  26.  
  27. 1) Install MPW from ETO 20.
  28. Copy your MPW folder from the ETO 20 CD. 
  29.  
  30. IMPORTANT: You must use the MrC and SCpp compilers found on ETO 20 (or later) to compile ODF, because ODF uses the template instantiation mechanisms of these compilers for its template-based classes.
  31.  
  32.  
  33. 2) Install the MPW Additions
  34. The folder "MPW Additions" contains additions to your MPW environment that are necessary to build ODF. They include startup files, the QuickDrawGXLib shared library, which is missing from ETO #20 and is needed by ODF, as well as SOM for MPW. Copy the files in each subfolder to the corresponding folder in your MPW environment.
  35.  
  36.  
  37. 3) Install the OpenDoc headers, libraries, and build support for MPW.
  38. In the "OpenDoc Development" folder, you will find two folders called "OpenDoc" and "Build Support". Copy them to your MPW Shell directory.
  39.  
  40.  
  41. Installing ODF
  42.  
  43. For the most part, installing ODF is simply a matter of copying the ODF source and tools to your local hard drive. However, since ODF supports several different compilers, there are some files that you don't need to copy if you are doing all of your development with MPW. 
  44.  
  45. The basic steps you need to follow when installing ODF for MPW are as shown in the following list. These steps are explained in more detail below.
  46.  
  47.    1) Copy the ODFDev folder to your local hard drive.
  48.    2) Copy the stationery files for the ODF example parts to your Stationery folder. (optional)
  49.    3) Copy any desired reference materials to your local hard drive. (optional)
  50.    4) Make an alias to the ODF library (and sample parts).
  51.    5) Copy the UserStartup•ODF file to MPW's "Startup Items" folder.
  52.  
  53. Note: These steps describe how to install the Debug version of the ODFLibrary and examples. If you simply want to play with the Release version of the ODF parts, copy the appropriate files from the "ODF Sample Parts" folder to your system. For details on doing this, see the information about this folder in the Contents of This CD section of the Important Information document at the root level of  ODF Release 1.
  54.  
  55.  
  56. 1) Copy the ODFDev folder to your local hard drive.
  57. You can copy the ODFDev folder in its entirety to your local hard drive. This folder contains the ODF source code and the source code for ODF's example parts. The ODFDev:ODF subfolder also contains configurations and project setups for building the ODF libraries. 
  58.  
  59. Once you’ve copied ODFDev, you can throw away folders for other environments. Inside the ODF folder, you can throw away the RB (Symantec C++ for PowerMacintosh - Rainbow) and CW (CodeWarrior) folders. You only need to keep the MC (MRC) and/or SC (Symantec) and SL (Shared Library) folders. The same is true for all the example projects.
  60.  
  61. The following table indicates for each folder which compiler is used and the resulting binary. Notice that the 68K ODF Shared Library is currently built with the Symantec 68K compiler and the PPC ODF Shared Library is built with CodeWarrior.
  62.  
  63. Folder                                             Compiler Used                           ODF Folder                                                                                                                                         Sample Folders
  64.  
  65. CWPPCDebug              CodeWarrior                PPC Debug ODF Static Libraries                    PPC Debug Part Editor
  66. CWPPCRelease            CodeWarrior                PPC Release ODF Static Libraries            PPC Release Part Editor
  67. MCPPCDebug                    MrC                                                PPC Debug ODF Static Libraries                    PPC Debug Part Editor
  68. MCPPCRelease            MrC               PPC Release ODF Static Libraries         PPC Release Part Editor
  69. RBPPCDebug           Rainbow              PPC Debug  ODF Static Libraries          PPC Debug Part Editor
  70. RBPPCRelease   Rainbow              PPC Release ODF Static Libraries         PPC Release Part Editor
  71.  
  72. CW68KDebug        CodeWarrior          68K Debug ODF Static Libraries           68K Debug Part Editor
  73. CW68KRelease      CodeWarrior          68K Release ODF Static Libraries         68K Release Part Editor
  74. SC68KDebug        Symantec 68K         68K Debug ODF Static Libraries           68K Debug Part Editor
  75. SC68KRelease      Symantec 68K         68K Release ODF Static Libraries         68K Release Part Editor
  76.  
  77. SLPPCDebug     CodeWarrior          PPC Debug ODF Shared Library                n/a
  78. SLPPCRelease   CodeWarrior          PPC Release ODF Shared Library                 n/a
  79. SL68KDebug        Symantec 68K         68K Debug ODF Shared Library                n/a
  80. SL68KRelease   Symantec 68K         68K Release ODF Shared Library           n/a
  81.  
  82.  
  83. The following table indicates which folders are necessary for each supported compiler. 
  84.  
  85. Folder                        CW/PPC           CW/68K            Symantec68K            MrC             Rainbow
  86.  
  87. CWPPCDebug         Y              N                 N               N             N        
  88. CWPPCRelease       Y              N                 N               N             N
  89. MCPPCDebug            N              N                 N               Y             N
  90. MCPPCRelease          N              N                 N               Y             N    
  91. RBPPCDebug            N              N                 N               N             Y    
  92. RBPPCRelease       N              N                 N               N             Y    
  93.  
  94. CW68KDebug            N              Y                 N               N             N    
  95. CW68kRelease          N              Y                 N               N             N    
  96. SC68KDebug            N              N                 Y               N             N    
  97. SC68KRelease       N              N                 Y               N             N    
  98.  
  99. SL68KDebug         N              Y                 Y               N             N    
  100. SL68KRelease          N              Y                 Y               N             N    
  101. SLPPCDebug            Y              N                 N               Y             Y    
  102. SLPPCRelease          Y              N                 N               Y             Y    
  103.  
  104. 2) Copy the stationery files for the ODF example parts to your Stationery folder. (optional)
  105. If you want to run the ODF sample parts, you will need to copy the stationery files for these parts into your Stationery folder. The stationery files are located in the "ODF Sample Parts:Stationery" folder. 
  106.  
  107. 3) Copy any desired reference materials to your local hard drive. (optional)
  108. ODF comes with several documents and tools, such as the ODF Class Reference and MacBrowse, that can make it easier to navigate through the ODF code. You can copy any of these to your local hard drive.
  109.  
  110. The "Documentation" folder contains the ODF Class Reference, which is a QuickView database that allows you to quickly search for the documentation for a particular class or method. Make sure that the QuickView application and the ODF Class Reference document are in the same folder when you launch the application. 
  111.  
  112. The 'Tools & Goodies:MacBrowse' folder contains the MacBrowse application that enables you to browse the ODF source code directly.  It also contains a subfolder with the MacParse tool, which you can use to create parsed files for use with MacBrowse.
  113.  
  114. The "Tools & Goodies:Object Master™" folder contains an empty ObjectMaster project, which you can use to create a browsable set of the ODF source code.
  115.  
  116. 4) Make an alias to the ODF library (and sample parts).
  117. To make debugging with ODF easier, you need to make an alias to the debug version of the ODF shared library and put the alias into your Editors folder. If your ODF environment is on a different volume than your system folder, you can create an Editors folder at the root level of your development hard drive and put the alias there. (OpenDoc does not allow you to put aliases to files on different volumes in the Editors folder.)
  118.  
  119. Note: The ODFLibrary (or an alias to it) must be located in your Editors folder. Part editors that were built with ODF require the existence of this library and will not run without it.
  120.  
  121. The debug versions of the ODF shared library (ODFLibrary) are already built. The ODFLibrary for PowerPC  is located in the "ODFDev:ODF:SLPPCDebug:Bin:" folder. The ODFLibrary for 68K is located in the "ODFDef:ODF:SL68KDebug:Bin:" folder.
  122.  
  123. If you want to debug the ODF sample parts, you can also add an alias to each of these part editors to your Editors folder. The debug version of an ODF part editor is located within either the "MCPPCDebug:Bin:" folder for PowerPC or the "SC68KDebug:Bin:" folder for 68K of the particular sample part. For example, the debug, PowerPC part editor for ODFDraw is located in the "ODFDev:Draw:MCPPCDebug:Bin:" folder.
  124.  
  125. For convenience, you can also make an alias to the symbol files for the ODFLibrary (ODFLibrary.xSYM) and put it on your desktop. You can then use this alias to find the ODFLibrary debugging information quickly when you launch your debugger.
  126.  
  127. IMPORTANT: Make sure that the release version of the ODFLibrary or any of the ODF sample parts are not installed on your machine while you are attempting to trace through either the ODFLibrary or sample parts. The chances are good that you will not get the right library. OpenDoc searches for the first part editor and library that matches its search parameters. The release version of the ODF libraries and samples are simply optimized versions that do not have internal debugging information, such as Macsbug symbols or assertions.
  128.  
  129. 5) Copy the UserStartup•ODF file to MPW's "Startup Items" folder.
  130. The UserStartup•ODF file is located in the "ODFDev:MPW-ToolServer Additions" folder. Copy this file into your MPW's "Startup Items" folder and restart MPW. When MPW restarts, it will ask you to specify the location of your ODF folder. The folder you want to specify is "ODFDev:ODF:".  MPW may also ask you to specify the location of your OpenDoc files. If the OpenDoc files are installed properly inside your MPW folder, you can simply specify your MPW folder, otherwise, you will have to specify your OpenDoc SDK folder containing the OpenDoc Interfaces and Libraries.
  131.  
  132.  
  133. © 1993 - 1996 Apple Computer, Inc. All rights reserved.
  134. Apple, the Apple Logo, Macintosh, and OpenDoc are trademarks of Apple Computer, Inc., registered in the United States and other countries.