Compiling the sources
From World Wind Wiki
Revision as of 23:16, 10 May 2005 (edit) Nosilleg (Talk | contribs) (moved stuff around) ← Previous diff |
Revision as of 02:09, 12 May 2005 (edit) (undo) Nosilleg (Talk | contribs) (added back debug & release info to commandline version) Next diff → |
||
Line 58: | Line 58: | ||
# Run 'Devenv.exe WorldWindow.sln /build Debug' | # Run 'Devenv.exe WorldWindow.sln /build Debug' | ||
# Run 'Devenv.exe WorldWind.sln /build Debug' | # Run 'Devenv.exe WorldWind.sln /build Debug' | ||
+ | * Replace 'Debug' with 'Release' as desired | ||
+ | * As of 1.3.0 the references in the Release build point to /Debug dll's. So to /rebuild a release, /rebuild debug first. | ||
+ | |||
Revision as of 02:09, 12 May 2005
Compiling the sources allows you to create executables from modified code. The instructions below show you how to compile the lastest code from the CVS repositories.
Contents |
Preparation
Install Software
The following software must be installed before starting. See DevTools for download locations.
- Latest World Wind
- .NET Framework SDK
- DirectX SDK
- WinCVS
- NAnt OR Visual Studio (e.g. Microsoft Visual C# Express Edition Beta 2)
Get the Source Code
See Source Code for more information.
- Create a directory on your drive where you'd like to develop from (eg C:\wwdev)
- Launch WinCVS
- Select your directory in the directory pane on the left side
- Right Click and choose "
Checkout Module...
" - Type "
WorldWind
" in "Module Name and path on the server" - Type "
:pserver;username=anonymous;hostname=cvs.sourceforge.net:/cvsroot/nasa-exp
" in "CVSROOT" - Click OK. CVS Will now check out the source code for WorldWind in a "
WorldWind
" directory under your chosen one. (A window may come up asking for your default directory. Just click OK) - Close WinCVS
Copy Data
Now copy the "C:\Program Files\NASA\World Wind 1.3\Data\Earth
" directory to "C:\wwdev\WorldWind\bin\Debug\Data
"
Compile the Code
Compiling with NAnt
- Open a Command Prompt and cd to your work directory (
cd \wwdev\WorldWind
) - Type "
c:\nant-0.85-rc2\bin\nant
" (change the path to reflect where you installed Nant)
If all goes well, you should get BUILD SUCCEEDED in the end
Compiling with Visual Studio
Compile within Studio
- Navigate to the following file (double click it):
- C:\app\ww\src-cvs\WorldWind\WorldWindow.sln
- If using MS VS 2005 it will ask to convert the file, NEXT->NEXT->FINISH
- F6 to build
- Close MS VS
- Navigate to the following file (double click it):
- C:\app\ww\src-cvs\WorldWind\WorldWind.sln
- If using MS VS 2005 it will ask to convert the file, NEXT->NEXT->FINISH
- F5 to build and start
- Final step MSVS->Main Menu->File->Save or Save as.
Compile from the commandline
- Launch the 'Visual Studio .NET 2003 Command Prompt' (under Start / Programs / Visual Studio .NET / Visual Studio .NET Tools)
- CD to the WorldWind source root.
- Run 'Devenv.exe WorldWindow.sln /build Debug'
- Run 'Devenv.exe WorldWind.sln /build Debug'
- Replace 'Debug' with 'Release' as desired
- As of 1.3.0 the references in the Release build point to /Debug dll's. So to /rebuild a release, /rebuild debug first.
Run Your Compiled Code
Your newly built WorldWind should now be ready to go. Double click on "WorldWind.exe
" in "C:\wwdev\WorldWind\bin\Debug
"
and it should start.
If you make changes to the source files that you would like to compile, just follow the Compile the Code instructions again to recompile.