13 | | unpack and place in /Users/Shared/Development |
14 | | run ranlib on all of the static libraries there. |
15 | | {{{ |
16 | | cd /Users/Shared/Development/ossim_dependencies/lib |
17 | | ranlib *.a |
18 | | cd ../nuiSDK/lib |
19 | | ranlib *.a |
| 15 | 2. Make a development directory in /users/Shared/ |
| 16 | mkdir /Users/Shared/Development/ |
| 17 | |
| 18 | 3. Change the directory to /Users/Shared/Development/ |
| 19 | cd /Users/Shared/Development/ |
| 20 | |
| 21 | 4. Check out all of the OSSIM modules using SVN |
| 22 | svn co http://svn.osgeo.org/ossim/trunk . (note the trailing dot) |
| 23 | |
| 24 | 5. Download the OSSIM Dependencies |
| 25 | http://ossim.telascience.org/ossimdata/MacOSX/ossim_dependencies.tgz (click the link to download) |
| 26 | |
| 27 | 6. Move the ossim_dependencies.tgz to /Users/Shared/Development/ |
| 28 | mv /users/davidlucas/Downloads/ossim_dependencies.tar /Users/Shared/Development/ |
| 29 | |
| 30 | 7. Extract the ossim_dependencies.tgz using tar |
| 31 | tar -xvf ossim_dependencies.tar |
| 32 | |
| 33 | 8. Remove the ossim_dependencies.tgz (optional) |
| 34 | rm ossim_dependencies.tgz |
| 35 | |
| 36 | 9. Xcode Build Instructions |
| 37 | Open up Xcode |
| 38 | |
| 39 | Select File Menu / Open |
| 40 | Navigate to /Users/Shared/Development/ossim/xcode/ossim/ |
| 41 | Select ossim.xcodeproj |
| 42 | Click open |
| 43 | |
| 44 | Set Active Build Configuration to Release |
| 45 | Click Build |
| 46 | |
| 47 | 10. Launch Active Executable |
| 48 | Select Build Menu / Build Results |
| 49 | Set Active Executable to ossimplanet |
| 50 | Select Run Menu / Run |
21 | | === svn checkout summary === |
22 | | |
23 | | svn will now checkout a master ossim repository, functionality is divided into the subdirectories shown below: |
24 | | |
25 | | * ossim - base library for image and geospatial processing |
26 | | * ossim_qt - qt3 interface (imagelinker, iview applications) |
27 | | * libwms - provides OGC Web Mapping Services interface |
28 | | * ossimPlanet - base library for planet visualization |
29 | | * ossimPlanetQt - qt4 interface for ossimPlanet application |
30 | | * ossim_plugins - dynamic plugins for ossim |
31 | | * ossimplanetCocoa - Cocoa version of ossimplanet |
32 | | |
33 | | Follow the [[cvs instructions | svn instructions]] to checkout the source code trees. We recommend you set up your source code under /Users/Shared/Development to match up with the path settings in the xcode projects. |
34 | | |
35 | | xcode assumes that all modules are located side by side in: |
36 | | {{{ |
37 | | /Users/Shared/Development/ossim |
38 | | }}} |
39 | | |
40 | | == Building and Running in Xcode == |
41 | | |
42 | | The MacOSX build is performed with xcode. It assumes that all of the svn subtrees have been checked out per the svn instructions and are sitting side by side in your development directory. Navigate into the ossim subdirectory and load the xcode project |
43 | | {{{ |
44 | | /Users/Shared/Development/ossim/xcode/ossim/ossim.xcodeproj |
45 | | }}} |
46 | | |
47 | | |
48 | | Loading this project into xcode will reveal Targets and subtargets that will build all of the ossim related frameworks and apps. It assumes ossim_dependencies has been downloaded and placed in /Users/Shared/Development. |
49 | | |
50 | | There are xcode projects in each of these directories with appropriate dependencies between the projects. All projects now load a common_settings xcode config file where cross project settings and environmental variables are maintained. The projects now build into a shared build directory located in /var/tmp. We have taken steps to minimize the potential conflicts with other paths and projects and reduce start up effort with common settings. |
51 | | |
52 | | Make sure that the build configuration is "Release" |
53 | | |
54 | | In the ossim.xcodeproj select the All target and build. The All target is an aggregate target that will build all of the dependencies. Select the ossimPlanet application as the executable and run. |