3 | | == Setting up dependencies == |
| 5 | 1. checkout the latest revions of ossim. For my windows build I would put it under c:\ossim\vs2005\ |
| 6 | |
| 7 | so you have at least the following: |
| 8 | |
| 9 | * libwms |
| 10 | * ossim |
| 11 | * ossimPlanet |
| 12 | * ossimPlanetQt |
| 13 | * ossim_plugins |
| 14 | * ossim_package_support |
| 15 | |
| 16 | 2. Download the ossim_dependencies from http://ossim.telascience.org/ossimdata/Windows/vs2005 for the visual studio 2005 build. |
| 17 | |
| 18 | you should extract and have a directory called ossim_dependencies in c:\ossim\vs2005 |
| 19 | |
| 20 | 3. Now let's compile the dependencies. This is a 2 step process. First go into ossim_dependencies\vcprojects. |
| 21 | You only need to load the ossim_deps solution. Make sure you have it set for release. I have not fixed other modes yet. |
| 22 | Hit build solution. This will create a 3rdParty directory used by OpenSceneGraph and for ossim into the ossim_dependencies\src\3rdParty. |
| 23 | |
| 24 | 4. Once the dependencies are finished cd into ossim_dependencies\src\OpenSceneGraph\VisualStudio. |
| 25 | Open the OpenSceneGraphLib solution. This is the only one that we have setup. Set to release mode for build and hit build solution. This solution |
| 26 | will put things under ossim_dependencies\src\OpenSceneGraph\lib\win32 and ossim_dependencies\src\OpenSceneGraph\bin\win32. Once this is finished building you |
| 27 | are now ready to build the ossim libraries. |
| 28 | |
| 29 | |
| 30 | |
| 31 | Building OSSIM: |
| 32 | |
| 33 | If you want the GUI for ossimPlanetQt then you must download the GPL version of Qt 4.2.3 that we had fixed to produce visual studio projects. We have it |
| 34 | here for download and it's called Qt.tgz or Qt.zip. Extract it at the root c:\. It should produce the subdirectories c:\Qt\4.2-msvc2005\ ..... |
| 35 | |
| 36 | Setup the following envirnment variables under the control panel/System Icon. On XP go to the Advanced tab and hit Environment Variables. Add a user path to |
| 37 | c:\Qt\4.2-msvc2005\bin for the qmake executable. Now add QMAKESPEC variable and set it to win32-msvc2005 so the make spec will target visual studio projects. |
| 38 | Finally setup the QTDIR variable to point to c:\Qt\4.2-msvc2005 |
| 39 | |
| 40 | Now you are ready to build the ossim tree. This is again a couple of steps. Most of the core we have a single solution for. the GUI is a little different |
| 41 | since we must use qmake to produce the studio projects and then build. |
| 42 | |
| 43 | 1. cd into c:\ossim\vs2005\ossim\projects\vs2005. Open up the solution project file. It is setup to do the non GUI builds and will compile ossim, ossimPlanet, libwms, |
| 44 | and the currently supported plugins. Select the Release mode and hit build solution. The output goes to C:\ossim\vs2005\ossim\projects\vs2005\release\bin, |
| 45 | C:\ossim\vs2005\ossim\projects\vs2005\release\lib and C:\ossim\vs2005\ossim\projects\vs2005\release\bin\plugins |
| 46 | |
| 47 | 2. open up a visual studio command prompt by going to the menu option tools/Visual Studio 2005 Command Prompt. This will setup for command line stuff for visual studio. |
| 48 | cd into the C:\ossim\vs2005\ossimPlanetQt. within there you should cd into src directory and type in qmake. After that, you hould have an osismPlanetQt.vcproj in that |
| 49 | same directory. Open that project up in Visual Studio and set to release mode and hit build. It should put the libraries in C:\ossim\vs2005\ossimPlanetQt\lib. |
| 50 | |
| 51 | 3. now cd into C:\ossim\vs2005\ossimPlanetQt\apps\ossimplanet. run qmake and you should produce a file called ossimplanet.vcproj. Open this up in VisualStudio and set to |
| 52 | Release mode and hit build. this will put the ossimplanet.exe in release/ in the same directory. |
| 53 | |
| 54 | |
| 55 | Packaging: |
| 56 | |
| 57 | Optionally a binary package can be created for windows installation. We use the INNO compiler to build windwos installers. You can obtain it and install it from here: |
| 58 | http://www.jrsoftware.org/isinfo.php |
| 59 | if this link is bad then do a google search for inno setup. |
| 60 | |
| 61 | Once installed cd into C:\ossim\vs2005\ossim_package_support\vs2005. You should be able to double click on a file called ossimPlanet.iss and it will bring up the inno setup |
| 62 | compiler. If you hit the build buttun it will create a setup.exe file in the output directory in the same location. |
| 63 | |
| 64 | == mingw build == |
| 65 | |
| 66 | === Setting up dependencies === |