WorldWind Series 1: getting started

Source: Internet
Author: User

Download WorldWind 1.4 from the official website todaySource codeI started my research, but I found many problems at runtime. The following are my solutions to help netizens who have encountered the same problem set sail!

Error 1:

Cause: the referenced DLL file cannot be found.
Solution:
1. Change the release mode to debug mode (the easiest way to do is to add a reference again)
2. Copy all the files in the debug file to the world_wind_1.4.0_source \ WorldWind \ bin \ x86 \ release directory.
See:Http://bbs.godeyes.cn/showtopic-324487.aspx
Assume that the root directory of all source files is world_wind_1.4.0_source. In this directory, find world_wind_1.4.0_source \ bin \ debug, and set the config, data, and plugins directories and avifile. DLL, flickrnet. DLL, org. mentalist. security. DLL, zedgraph. copy and paste the DLL to the world_wind_1.4.0_source \ WorldWind \ bin \ x86 \ release directory.

Error 2: loaderlock Problem

Solution:
CTRL + D + E or Alt + CTL + E or use the menu (debugging-> exception) --> exception window --> managerdebuggingassistants --> remove the loaderlock Option
Refer to my blog:Http://www.cnblogs.com/wuhenke/archive/2009/09/12/1565135.html#1644371

Error 3: Debug is run in debug status. Generation is successful but not started.Program
Cause: Unknown
Solution:
1 Ctrl + F5 run without debugging
2. Set the solution platform to x86

The following is the content I have collected and reproduced: Http://hi.baidu.com/paladin1893/blog/item/e359f9cabd581217be09e6d8.html NASA World Wind open source project configuration

NASA World Wind open-source project configuration

NASA World Wind is an open-source 3D graphics Virtual Earth system on a C # developed personal computer. It combines ground images taken from satellites by NASA from blue marble, Landsat 7, SRTM, modem5, and others.

Users can download the. NET source code http://worldwind.arc.nasa.gov here/

After the download, open the solution, which is available in vs2005 (2008). There are 16 projects in total.

The configuration steps are as follows:

1. Install DirectX

Install DirectX before compiling and running, because the Child Project in worl wind has reference to it, as follows:

The pluginsdk project requires three references: Microsoft. DirectX, Microsoft. DirectX. direct3d, Microsoft. DirectX. direct3dx;
WorldWind requires four references: Microsoft. DirectX, Microsoft. DirectX. direct3d, Microsoft. DirectX. direct3dx, Microsoft. DirectX. directinput.

DirectX is a collection of Microsoft technologies integrated to provide Windows platform multimedia operation APIs, supporting applications, multimedia software and 3D games.

I downloaded the directx9.0cmulti-language version. After the version is decompressed, run the program dxsetup.exe.

Ii. Syntax modification errors

Somehow, the downloaded source code has very low-level syntax errors, and there are many mistakes. However, it doesn't matter because it is easy to modify. The syntax error mainly occurs in the output that represents the latitude and longitude.CodeThe left and right quotation marks are usually not paired. You only need to add the missing quotation marks completely.

---- Example ----:

Before modification:
Labeltext + = string. Format ("\ nbearing: {0: F1 }?, Azimuth. degrees );
After modification:
Labeltext + = string. Format ("\ nbearing: {0: F1 }? ", Azimuth. degrees );

This syntax has many errors, but note that missing quotation marks include single quotation marks and double quotation marks.

 

3. Add other references

1. After the above work is completed, re-compile the project. pluginsdk and worldwindow must compile and generate the DLL to meet the reference requirements of other sub-projects;

2. Assume that the root directory of all source files is world_wind_1.4.0_source. In this directory, locate world_wind_1.4.0_source \ bin \ debug and set the config, Data, plugins, and avifile directories in this directory. DLL, flickrnet. DLL, org. mentalist. security. DLL, zedgraph. copy and paste the DLL to the world_wind_1.4.0_source \ WorldWind \ bin \ x86 \ release directory.

After completing the above work, You can compile and run the world wind source code. During the compilation process, you don't have to worry about any error prompts. directly go to "continue" until "complete ". You can see the running window of World Wind.

Reprinted my supplementary instructions:

1. "1. Install DirectX": I didn't have this problem because I have installed WorldWind on my computer. It will help you install DirectX.

2. "II. Syntax modification error": I still encounter problems because single quotation marks or double quotation marks are missing. But there may be a problem with the modified reprinted above, that is, you want to change "?" To "". The question mark is meaningless here. If you do not remove the question mark, the following problems will occur, 

3. "3. Add other references" cannot be debugged in the release mode. It is only applicable to publishing and not suitable for research and learning.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.