Difference: BuildingGPSTkUnderWindows (14 vs. 15)

Revision 15
12 May 2009 - Main.AllenFarris
Line: 1 to 1
 
META TOPICPARENT name="BuildingGPSTkUnderUnix"

Building under Microsoft Visual Studio

Line: 52 to 52
 
  1. (Again) Right click on project name in the solution explorer and click on Add -> Existing Item and add only 'example1.cpp' which is located under the examples directory.
  2. Open the project property page (Right click on the project name in the solution explorer and select properties)
  3. In the opened properties dialog expand the Configuration Properties -> C/C++ tab and select Command Line. Copy the following line to the Additional Options text box:
    -D_CRT_SECURE_NO_DEPRECATE -wd4274 -DWIN32 /EHsc /GR -wd4290 -wd4267
Changed:
<
<
  1. Again in the same project properties dialog box expand Configuration Properties -> C/C++ tab and select General. Add the location of 'src' directory to the Additional Include Directories. (This is necessary because, unfortunately, some non-system header files in the source files were included using < >)
>
>
  1. Again in the same project properties dialog box expand Configuration Properties -> C/C++ tab and select General. Add the location of 'src' directory to the Additional Include Directories. (This is necessary because, unfortunately, some non-system header files in the source files were included using < >) Also, add the location of the regex library that you have installed. This should contain a file regex.h.
 
  1. That is all. Build the program (building takes some time) and run. You will see the output of example1 in the output window.

You can also build a GPSTk library in the same manner to add all the core functions to your custom programs (but this time select 'Static Library' under the 'Application Setting' in the 'Application Wizard' to build the project as a library and of course do not add any example to the project). \ No newline at end of file
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback