1. First, download the source code world_wind_1.4.0_source.zip from the official website of nasa.
Http://worldwind.arc.nasa.gov/download.html.
2. The WorldWind operation requires DirectX support. Download The DirectX 9.0c multi-country language edition, decompress and run dxsetup.exe, and install it
Default path. Then go to the system directory (assuming drive C) C: \ WINDOWS \ Microsoft. NET \ DirectX for Managed Code to check
Check the nine dll files in the 1.0.2902.0 folder. These dll files are the files to be applied.
Microsoft. DirectX. Direct3DX. dll version 5.4.0.3900 cannot meet World_Wind_1.4.0 requirements.
The Microsoft. DirectX. Direct3DX. dll file version in the 1.0.2911.0 folder is 9.12.589.0. Otherwise
The MeasureString attribute cannot be found. You can use ildasm to view the differences between the two files.
3. Reference DirectX related components to compile the source code. World_Wind_1.4.0 contains 16 engineering files, wherein WorldWind is started
. Pay attention to the dependencies between various projects. If it is successfully compiled and run, a virtual Earth will appear.
Information:
(1) LoaderLock Detected
Message: DLL "E: \ project \ Digital Earth \ World_Wind_1.4.0_Source \ bin \ Debug \ Microsoft. DirectX. dll"
Attackers attempt to execute managed code within the OS loader lock. Do not try to run managed code in the DllMain or image initialization function.
The application will be suspended.
Solution: click "debug" in the VS2005 toolbar --> select Managed Debugging Assistants in the open window to go
Drop the check box that is triggered by LoaderLock.
(2) System. IO. FileNotFoundException not processed
Message: the specified module cannot be found. (Exception from HRESULT: 0x8007007E)
World Wind Error
A Fatal Error has occurred:
The following error (s) occurred:
Unable to locate a compatible graphics adapter. Make sure you are running the latest
Version of DirectX.
Errors in the application.
Solution: Run dxdiag in the windows Start Menu to view the DirectX information of the Local Machine and check whether the Direct3D function is available (this
This problem occurs because the 3D function is not enabled.) If this problem is disabled, right-click the desktop and choose Properties> Settings> advanced
--> For troubleshooting, set hardware acceleration to the maximum. If not, download the latest video card driver and try it.
You can see the effect after you check it out.