home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Getting Started / MPW Development / Installation Guide < prev   
Encoding:
Text File  |  1996-09-17  |  8.4 KB  |  126 lines  |  [TEXT/ttxt]

  1. OpenDoc
  2. Development
  3. Framework
  4.                                                                                                                                                                                     
  5. Installation Guide for MPW
  6. ODF Release 2                                                                                                                                                            
  7.  
  8. This document provides installation instructions for using ODF with MPW based compilers.
  9.  
  10.  
  11. Table of Contents
  12. -------------------------
  13. • Step 1 - Installing MPW from ETO #21
  14. • Step 2 - Installing MPW Additions
  15. • Step 3 - Copying ODFDev
  16. • Step 4 - Locating ODF, OpenDoc and Cyberdog folders
  17. • Step 5 - Making an alias to the ODF library (and sample parts).
  18.  
  19.  
  20.  
  21. Step 1 - Installing MPW from ETO #21
  22.  
  23. Install MPW ('MPW' and 'Interfaces&Libraries' folders) from the ETO 21 CD.  This is the version of ETO you should be using. Previous version of ETO might give you unexpected results.
  24.  
  25.  
  26.  
  27. Step 2 - Installing MPW Additions
  28.  
  29. Open the MPW Additions folder, it contains two folders:
  30.  
  31. • folder 'INTO Interfaces&Libraries'
  32. This folder contains the headers and libraries for Cyberdog 1.1 (Cyberdog SDK folder) and OpenDoc 1.1 (OpenDoc folder). Move the contents of this folder into your 'Interfaces&Libraries' folder. Cyberdog headers and libraries are now required to build some ODF 2 components, such as the Internet layer or the ODFBitmap sample part. (Cyberdog is not required to run the ODFBitmap sample part.)
  33.  
  34. • folder 'INTO Startup Items'
  35. This folder contains the “UserStartup•ODF” (for MPW) and “UserStartupTS•ODF” (for ToolServer) files. Move the appropriate file into your 'Startup Items' (or 'TS Startup Items') folder located inside the MPW folder. Note: you will need to relaunch MPW (see step 4).
  36.  
  37. Note: Some scripts and tools used by the ODF build system are located in the “ODF:Tools:Mac:” folder. The startup scripts add this path to your command path automatically.
  38.  
  39.  
  40.  
  41. Step 3 - Copying ODFDev
  42.  
  43. 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 contains configurations and project setups for building the ODF libraries. 
  44.  
  45. The ODF folder and the folders for each sample part contain multiple subfolders folders that specify the build configurations for each development environment. Inside these folders are project files and build scripts required for building ODF (or the sample part) with the specified development environment. Once you have copied the ODFDev folder to your local hard drive, you can throw away the folders for any development environments you are not using. 
  46.  
  47. For building part editors with MPW, you need to keep only the folders that use the MrC and/or Symantec compilers, depending on your configuration. For building ODF's shared libraries, you must keep the Shared Library folders. 
  48.  
  49. The following table lists the folder name, the supported compiler, and the resulting configuration for the ODF library or part editor. Notice that the 68K ODF Shared Library is currently built with the MPW Symantec 68K compiler and the PPC ODF Shared Library is always built with CodeWarrior.
  50.  
  51. Folder                                  Compiler                                        Resulting ODF Libraries                                                    Resulting Sample Part
  52.  
  53. CWPPCDebug              CodeWarrior                PPC Debug ODF Static Libraries                    PPC Debug Part Editor
  54. CWPPCRelease            CodeWarrior                PPC Release ODF Static Libraries            PPC Release Part Editor
  55. MCPPCDebug                    MrC                                                PPC Debug ODF Static Libraries                    PPC Debug Part Editor
  56. MCPPCRelease            MrC               PPC Release ODF Static Libraries         PPC Release Part Editor
  57.  
  58. CW68KDebug        CodeWarrior          68K Debug ODF Static Libraries           68K Debug Part Editor
  59. CW68KRelease      CodeWarrior          68K Release ODF Static Libraries         68K Release Part Editor
  60. SC68KDebug        Symantec 68K         68K Debug ODF Static Libraries           68K Debug Part Editor
  61. SC68KRelease      Symantec 68K         68K Release ODF Static Libraries         68K Release Part Editor
  62.  
  63. SLPPCDebug     CodeWarrior          PPC Debug ODF Shared Library                n/a
  64. SLPPCRelease   CodeWarrior          PPC Release ODF Shared Library                 n/a
  65. SL68KDebug        Symantec 68K         68K Debug ODF Shared Library                n/a
  66. SL68KRelease   Symantec 68K         68K Release ODF Shared Library           n/a
  67.  
  68.  
  69. The following table indicates which folders are necessary for each supported compiler. 
  70.  
  71. Folder                        CW/PPC           CW/68K            Symantec68K            MrC    
  72.  
  73. CWPPCDebug            Yes              No                 No                No
  74. CWPPCRelease          Yes              No                 No                No
  75. MCPPCDebug               No               No                 No                Yes
  76. MCPPCRelease             No               No                 No                Yes    
  77.  
  78. CW68KDebug               No               Yes                No                No    
  79. CW68kRelease             No               Yes                No                No    
  80. SC68KDebug               No               No                 Yes               No    
  81. SC68KRelease          No               No                 Yes               No    
  82.  
  83. SL68KDebug            No               Yes                Yes               No    
  84. SL68KRelease             No               Yes                Yes               No    
  85. SLPPCDebug               Yes              No                 No                Yes    
  86. SLPPCRelease             Yes              No                 No                Yes    
  87.  
  88.  
  89.  
  90. Step 4 -  Locating ODF, OpenDoc and Cyberdog folders
  91.  
  92. If your MPW shell is running, quit and relaunch it. 
  93.  
  94. After launching MPW, you will be asked to locate your ODF folder and OpenDoc SDK folder.
  95.  
  96. For the ODF folder:
  97. - Find your ODFDev folder and select the 'ODFDev:ODF:' folder
  98.  
  99. For the OpenDoc SDK folder:
  100. - Find the 'OpenDoc' folder from the OpenDoc SDK. This folder should be located inside your “Interfaces&Libraries” folder (see step 2).
  101.  
  102. Once you locate these folders, MPW stores the paths to these folders in your MPW preferences folder (in the file ODF_Folder for the ODF path, and the files FWOpenDocInterfaces and FWOpenDocLibraries for the OpenDoc SDK). MPW will not prompt you for these folders again (unless the paths to these folders change).
  103.  
  104. Note: The ODF build system will locate automatically the CybderDog SDK which should also be inside your Interfaces&Libraries folder.
  105.  
  106.  
  107.  
  108. Step 5 - Making an alias to the ODF Library (and sample parts).
  109.  
  110. To make debugging with ODF easier, you should make an alias to the debug version of the ODF shared library and put that alias into your Editors folder. Debuggers use this alias during debugging sessions to trace your code's execution into the ODF shared library.
  111.  
  112. If your ODFDev folder 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.)
  113.  
  114. 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.
  115.  
  116. 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.
  117.  
  118. 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.
  119.  
  120. 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.
  121.  
  122. 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.
  123.  
  124.  
  125. © 1993 - 1996 Apple Computer, Inc. All rights reserved.
  126. Apple, the Apple Logo, Macintosh, and OpenDoc are trademarks of Apple Computer, Inc., registered in the United States and other countries.